RNA: scene_collection.collections.new() name optional
We already have a fallback naming system when no naming is given, we should use that.
This commit is contained in:
parent
8620dd7adf
commit
dfd7b0d07a
|
@ -991,8 +991,7 @@ static void rna_def_scene_collections(BlenderRNA *brna, PropertyRNA *cprop)
|
|||
func = RNA_def_function(srna, "new", "rna_SceneCollection_new");
|
||||
RNA_def_function_ui_description(func, "Add a collection to scene");
|
||||
RNA_def_function_flag(func, FUNC_USE_SELF_ID | FUNC_USE_MAIN);
|
||||
parm = RNA_def_string(func, "name", "SceneCollection", 0, "", "New name for the collection (not unique)");
|
||||
RNA_def_parameter_flags(parm, 0, PARM_REQUIRED);
|
||||
parm = RNA_def_string(func, "name", NULL, 0, "", "New name for the collection (not unique)");
|
||||
parm = RNA_def_pointer(func, "result", "SceneCollection", "", "Newly created collection");
|
||||
RNA_def_function_return(func, parm);
|
||||
|
||||
|
|
Loading…
Reference in New Issue