Validate input in (CPU)Particles set_emission_shape()

Fixes #29777.

Co-authored-by: Cameron Reikes <cameronreikes@gmail.com>
This commit is contained in:
Rémi Verschelde
2020-01-16 10:59:01 +01:00
parent 3af0400a32
commit 1de633205f
11 changed files with 34 additions and 7 deletions

View File

@ -360,5 +360,8 @@
<constant name="EMISSION_SHAPE_DIRECTED_POINTS" value="4" enum="EmissionShape">
Particles will be emitted at a position chosen randomly among [member emission_points]. Particle velocity and rotation will be set based on [member emission_normals]. Particle color will be modulated by [member emission_colors].
</constant>
<constant name="EMISSION_SHAPE_MAX" value="5" enum="EmissionShape">
Represents the size of the [enum EmissionShape] enum.
</constant>
</constants>
</class>