Fix T84588: Set parameter as required for uv_on_emitter

This commit fixes T84588's second issue. The `particle` parameter was
declared optional in the Python API of `bpy.types.ParticleSystem.uv_on_emitter`
due to a typo in the RNA definition. This commit marks it as required.

Reviewed By: JacquesLucke

Differential Revision: https://developer.blender.org/D10127
This commit is contained in:
Robert Guetzkow 2021-01-29 13:09:29 +01:00 committed by Robert Guetzkow
parent 1b32679284
commit 821df20797
Notes: blender-bot 2023-02-14 08:07:50 +01:00
Referenced by issue #84588, uv_on_emitter crash
1 changed files with 1 additions and 1 deletions

View File

@ -4016,7 +4016,7 @@ static void rna_def_particle_system(BlenderRNA *brna)
RNA_def_function_flag(func, FUNC_USE_REPORTS);
parm = RNA_def_pointer(func, "modifier", "ParticleSystemModifier", "", "Particle modifier");
RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED);
prop = RNA_def_pointer(func, "particle", "Particle", "", "Particle");
parm = RNA_def_pointer(func, "particle", "Particle", "", "Particle");
RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED);
RNA_def_int(func, "particle_no", 0, INT_MIN, INT_MAX, "Particle no", "", INT_MIN, INT_MAX);
RNA_def_int(func, "uv_no", 0, INT_MIN, INT_MAX, "UV no", "", INT_MIN, INT_MAX);