[Bf-blender-cvs] [3f3d9e0c570] refactor-mesh-uv-map-generic: Limit UV subattribute naming to meshes
Hans Goudey
noreply at git.blender.org
Mon Jan 2 00:37:31 CET 2023
Commit: 3f3d9e0c57002d164966e2757dfd7187456d2bdd
Author: Hans Goudey
Date: Sun Jan 1 17:38:20 2023 -0500
Branches: refactor-mesh-uv-map-generic
https://developer.blender.org/rB3f3d9e0c57002d164966e2757dfd7187456d2bdd
Limit UV subattribute naming to meshes
No need to enter this block for curves or point clouds
===================================================================
M source/blender/blenkernel/intern/attribute.cc
===================================================================
diff --git a/source/blender/blenkernel/intern/attribute.cc b/source/blender/blenkernel/intern/attribute.cc
index b6cce7b8fde..869503e9a3b 100644
--- a/source/blender/blenkernel/intern/attribute.cc
+++ b/source/blender/blenkernel/intern/attribute.cc
@@ -168,7 +168,7 @@ bool BKE_id_attribute_rename(ID *id,
char result_name[MAX_CUSTOMDATA_LAYER_NAME];
BKE_id_attribute_calc_unique_name(id, new_name, result_name);
- if (layer->type == CD_PROP_FLOAT2) {
+ if (layer->type == CD_PROP_FLOAT2 && GS(id->name) == ID_ME) {
/* Rename UV sub-attributes. */
char buffer_src[MAX_CUSTOMDATA_LAYER_NAME];
char buffer_dst[MAX_CUSTOMDATA_LAYER_NAME];
More information about the Bf-blender-cvs
mailing list