[Bf-blender-cvs] [bb9b2b556fb] geometry-nodes-simulation: Cleanup: remove unused active name set callback functions
Campbell Barton
noreply at git.blender.org
Mon Dec 19 19:05:23 CET 2022
Commit: bb9b2b556fb2761f63c9148f2918582f4359a41b
Author: Campbell Barton
Date: Fri Dec 16 10:50:18 2022 +1100
Branches: geometry-nodes-simulation
https://developer.blender.org/rBbb9b2b556fb2761f63c9148f2918582f4359a41b
Cleanup: remove unused active name set callback functions
===================================================================
M source/blender/makesrna/intern/rna_attribute.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_attribute.c b/source/blender/makesrna/intern/rna_attribute.c
index 1fd7ce85125..efa87523204 100644
--- a/source/blender/makesrna/intern/rna_attribute.c
+++ b/source/blender/makesrna/intern/rna_attribute.c
@@ -677,18 +677,6 @@ static int rna_AttributeGroup_default_color_name_length(PointerRNA *ptr)
return name ? strlen(name) : 0;
}
-static void rna_AttributeGroup_default_color_name_set(PointerRNA *ptr, const char *value)
-{
- ID *id = ptr->owner_id;
- if (GS(id->name) == ID_ME) {
- Mesh *mesh = (Mesh *)id;
- MEM_SAFE_FREE(mesh->default_color_attribute);
- if (value[0]) {
- mesh->default_color_attribute = BLI_strdup(value);
- }
- }
-}
-
static void rna_AttributeGroup_active_color_name_get(PointerRNA *ptr, char *value)
{
const ID *id = ptr->owner_id;
@@ -707,18 +695,6 @@ static int rna_AttributeGroup_active_color_name_length(PointerRNA *ptr)
return name ? strlen(name) : 0;
}
-static void rna_AttributeGroup_active_color_name_set(PointerRNA *ptr, const char *value)
-{
- ID *id = ptr->owner_id;
- if (GS(id->name) == ID_ME) {
- Mesh *mesh = (Mesh *)id;
- MEM_SAFE_FREE(mesh->default_color_attribute);
- if (value[0]) {
- mesh->default_color_attribute = BLI_strdup(value);
- }
- }
-}
-
#else
static void rna_def_attribute_float(BlenderRNA *brna)
@@ -1185,7 +1161,7 @@ static void rna_def_attribute_group(BlenderRNA *brna)
RNA_def_property_string_funcs(prop,
"rna_AttributeGroup_default_color_name_get",
"rna_AttributeGroup_default_color_name_length",
- "rna_AttributeGroup_default_color_name_set");
+ NULL);
RNA_def_property_ui_text(
prop,
"Default Color Attribute",
@@ -1197,7 +1173,7 @@ static void rna_def_attribute_group(BlenderRNA *brna)
RNA_def_property_string_funcs(prop,
"rna_AttributeGroup_active_color_name_get",
"rna_AttributeGroup_active_color_name_length",
- "rna_AttributeGroup_active_color_name_set");
+ NULL);
RNA_def_property_ui_text(prop,
"Active Color Attribute",
"The name of the active color attribute for display and editing");
More information about the Bf-blender-cvs
mailing list