From 821df20797be514b8aee81b8ae73d3efe486bd29 Mon Sep 17 00:00:00 2001 From: Robert Guetzkow Date: Fri, 29 Jan 2021 13:09:29 +0100 Subject: [PATCH] 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 --- source/blender/makesrna/intern/rna_particle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);