Bugfix: [#23472] mesh.uv_textures.new() creates a MeshColorLayer
This commit is contained in:
@@ -1715,7 +1715,7 @@ static void rna_def_uv_textures(BlenderRNA *brna, PropertyRNA *cprop)
|
||||
RNA_def_function_flag(func, FUNC_USE_CONTEXT);
|
||||
RNA_def_function_ui_description(func, "Add a UV texture layer to Mesh.");
|
||||
parm= RNA_def_string(func, "name", "UVTex", 0, "", "UV Texture name.");
|
||||
parm= RNA_def_pointer(func, "layer", "MeshColorLayer", "", "The newly created layer.");
|
||||
parm= RNA_def_pointer(func, "layer", "MeshTextureFaceLayer", "", "The newly created layer.");
|
||||
RNA_def_function_return(func, parm);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user