[Bf-blender-cvs] [59589457a56] blender-v2.82-release: Cleanup: Clarification of the `Particle.uv_on_emitter()` function docs
Sybren A. Stüvel
noreply at git.blender.org
Thu Jan 16 14:59:49 CET 2020
Commit: 59589457a56630e033748aa07579d8108f422d8d
Author: Sybren A. Stüvel
Date: Thu Jan 16 14:54:55 2020 +0100
Branches: blender-v2.82-release
https://developer.blender.org/rB59589457a56630e033748aa07579d8108f422d8d
Cleanup: Clarification of the `Particle.uv_on_emitter()` function docs
Just some rewording of the documentation of `Particle.uv_on_emitter()`,
so that it no longer refers to 'derived mesh' but 'evaluated mesh', and
document that it expects a modifier from an evaluated object.
No functional changes.
===================================================================
M source/blender/makesrna/intern/rna_particle.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_particle.c b/source/blender/makesrna/intern/rna_particle.c
index 0ed9678ae06..d1cb7ad0604 100644
--- a/source/blender/makesrna/intern/rna_particle.c
+++ b/source/blender/makesrna/intern/rna_particle.c
@@ -1768,9 +1768,14 @@ static void rna_def_particle(BlenderRNA *brna)
/* UVs */
func = RNA_def_function(srna, "uv_on_emitter", "rna_Particle_uv_on_emitter");
- RNA_def_function_ui_description(func, "Obtain uv for particle on derived mesh");
+ RNA_def_function_ui_description(func,
+ "Obtain UV coordinates for a particle on an evaluated mesh.");
RNA_def_function_flag(func, FUNC_USE_REPORTS);
- parm = RNA_def_pointer(func, "modifier", "ParticleSystemModifier", "", "Particle modifier");
+ parm = RNA_def_pointer(func,
+ "modifier",
+ "ParticleSystemModifier",
+ "",
+ "Particle modifier from an evaluated object");
RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED);
parm = RNA_def_property(func, "uv", PROP_FLOAT, PROP_COORDS);
RNA_def_property_array(parm, 2);
More information about the Bf-blender-cvs
mailing list