Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Guetzkow <rjg>2021-01-29 15:09:29 +0300
committerRobert Guetzkow <gitcommit@outlook.de>2021-01-29 15:10:54 +0300
commit821df20797be514b8aee81b8ae73d3efe486bd29 (patch)
tree44081ff75d8d0ad2ccffefb2055a598b6bc25bc8 /source/blender/makesrna/intern/rna_particle.c
parent1b32679284628339c181de9f93d8904288cf4816 (diff)
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
Diffstat (limited to 'source/blender/makesrna/intern/rna_particle.c')
-rw-r--r--source/blender/makesrna/intern/rna_particle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_particle.c b/source/blender/makesrna/intern/rna_particle.c
index c42d891c389..ab8c1b0bb3f 100644
--- a/source/blender/makesrna/intern/rna_particle.c
+++ b/source/blender/makesrna/intern/rna_particle.c
@@ -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);