[Bf-blender-cvs] [99098b0] temp_custom_loop_normals: Don't reference NULL in RNA docs

Campbell Barton noreply at git.blender.org
Wed Feb 4 17:12:13 CET 2015


Commit: 99098b042a7eb33133794dd5df4a077abc65b49c
Author: Campbell Barton
Date:   Thu Feb 5 03:11:58 2015 +1100
Branches: temp_custom_loop_normals
https://developer.blender.org/rB99098b042a7eb33133794dd5df4a077abc65b49c

Don't reference NULL in RNA docs

===================================================================

M	source/blender/makesrna/intern/rna_mesh_api.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_mesh_api.c b/source/blender/makesrna/intern/rna_mesh_api.c
index 62e20e1..8c5bcaf 100644
--- a/source/blender/makesrna/intern/rna_mesh_api.c
+++ b/source/blender/makesrna/intern/rna_mesh_api.c
@@ -283,7 +283,8 @@ void RNA_api_mesh(StructRNA *srna)
 
 	func = RNA_def_function(srna, "normals_split_custom_set", "rna_Mesh_normals_split_custom_set");
 	RNA_def_function_ui_description(func,
-	                                "Define custom split normals of this mesh (use NULL vectors to keep auto ones)");
+	                                "Define custom split normals of this mesh "
+	                                "(ommit normals to keep auto ones)");
 	RNA_def_function_flag(func, FUNC_USE_REPORTS);
 	/* TODO, see how array size of 0 works, this shouldnt be used */
 	parm = RNA_def_float_array(func, "normals", 1, NULL, -1.0f, 1.0f, "", "Normals", 0.0f, 0.0f);
@@ -294,7 +295,7 @@ void RNA_api_mesh(StructRNA *srna)
 	                        "rna_Mesh_normals_split_custom_set_from_vertices");
 	RNA_def_function_ui_description(func,
 	                                "Define custom split normals of this mesh, from vertices' normals "
-	                                "(use NULL vectors to keep auto ones)");
+	                                "(ommit normals to keep auto ones)");
 	RNA_def_function_flag(func, FUNC_USE_REPORTS);
 	/* TODO, see how array size of 0 works, this shouldnt be used */
 	parm = RNA_def_float_array(func, "normals", 1, NULL, -1.0f, 1.0f, "", "Normals", 0.0f, 0.0f);




More information about the Bf-blender-cvs mailing list