forked from bartvdbraak/blender
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:
parent
1b32679284
commit
821df20797
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user