[Bf-blender-cvs] [2b7f36300e0] blender2.8: RNA cleanup: Argument names + tooltip for scene_collection.collections.remove()
Dalai Felinto
noreply at git.blender.org
Thu Dec 28 16:02:58 CET 2017
Commit: 2b7f36300e0cbf1eede46f61404f799944aea975
Author: Dalai Felinto
Date: Thu Dec 28 12:53:52 2017 -0200
Branches: blender2.8
https://developer.blender.org/rB2b7f36300e0cbf1eede46f61404f799944aea975
RNA cleanup: Argument names + tooltip for scene_collection.collections.remove()
===================================================================
M source/blender/makesrna/intern/rna_layer.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_layer.c b/source/blender/makesrna/intern/rna_layer.c
index c8c6c371a4d..bcf8f36d7ce 100644
--- a/source/blender/makesrna/intern/rna_layer.c
+++ b/source/blender/makesrna/intern/rna_layer.c
@@ -996,9 +996,9 @@ static void rna_def_scene_collections(BlenderRNA *brna, PropertyRNA *cprop)
RNA_def_function_return(func, parm);
func = RNA_def_function(srna, "remove", "rna_SceneCollection_remove");
- RNA_def_function_ui_description(func, "Remove a collection layer");
+ RNA_def_function_ui_description(func, "Remove a collection and move its objects to the master collection");
RNA_def_function_flag(func, FUNC_USE_SELF_ID | FUNC_USE_MAIN | FUNC_USE_REPORTS);
- parm = RNA_def_pointer(func, "layer", "SceneCollection", "", "Collection to remove");
+ parm = RNA_def_pointer(func, "collection", "SceneCollection", "", "Collection to remove");
RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR);
RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0);
}
More information about the Bf-blender-cvs
mailing list