[Bf-blender-cvs] [7bfe8c5] temp_custom_loop_normals: minor tweaks

Campbell Barton noreply at git.blender.org
Mon Feb 2 16:20:20 CET 2015


Commit: 7bfe8c52cdf80527cfe3ed367cf405138a21b729
Author: Campbell Barton
Date:   Tue Feb 3 02:19:22 2015 +1100
Branches: temp_custom_loop_normals
https://developer.blender.org/rB7bfe8c52cdf80527cfe3ed367cf405138a21b729

minor tweaks

- shorten text for message (no need to be toooo polite :) )
- use_center_bounds (matches Poly.calc_center_bounds)

===================================================================

M	release/scripts/startup/bl_ui/properties_data_modifier.py
M	source/blender/makesrna/intern/rna_modifier.c
M	source/blender/modifiers/intern/MOD_setsplitnormal.c

===================================================================

diff --git a/release/scripts/startup/bl_ui/properties_data_modifier.py b/release/scripts/startup/bl_ui/properties_data_modifier.py
index f68c8fe..0339fbf 100644
--- a/release/scripts/startup/bl_ui/properties_data_modifier.py
+++ b/release/scripts/startup/bl_ui/properties_data_modifier.py
@@ -1354,7 +1354,7 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
         col.prop(md, "target", text="")
         sub = col.row()
         sub.active = needs_object_bbox_center
-        sub.prop(md, "use_bbox_center")
+        sub.prop(md, "use_center_bounds")
 
         col = split.column()
         row = col.row(align=True)
diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c
index 6a3be38..75f46d7 100644
--- a/source/blender/makesrna/intern/rna_modifier.c
+++ b/source/blender/makesrna/intern/rna_modifier.c
@@ -4407,9 +4407,9 @@ static void rna_def_modifier_setsplitnormal(BlenderRNA *brna)
 	RNA_def_property_flag(prop, PROP_EDITABLE | PROP_ID_SELF_CHECK);
 	RNA_def_property_update(prop, 0, "rna_Modifier_dependency_update");
 
-	prop = RNA_def_property(srna, "use_bbox_center", PROP_BOOLEAN, PROP_NONE);
+	prop = RNA_def_property(srna, "use_center_bounds", PROP_BOOLEAN, PROP_NONE);
 	RNA_def_property_boolean_sdna(prop, NULL, "flags", MOD_SETSPLITNORMAL_CENTER_BBOX);
-	RNA_def_property_ui_text(prop, "BoundingBox Center",
+	RNA_def_property_ui_text(prop, "Center Bounds",
 	                         "Use bounding box center instead of own object center as origin");
 	RNA_def_property_update(prop, 0, "rna_Modifier_update");
 
diff --git a/source/blender/modifiers/intern/MOD_setsplitnormal.c b/source/blender/modifiers/intern/MOD_setsplitnormal.c
index 2be93b7..59fb8fd 100644
--- a/source/blender/modifiers/intern/MOD_setsplitnormal.c
+++ b/source/blender/modifiers/intern/MOD_setsplitnormal.c
@@ -383,7 +383,7 @@ static void setSplitNormalModifier_do(SetSplitNormalModifierData *smd, Object *o
 	}
 
 	if (!(me->flag & ME_AUTOSMOOTH)) {
-		modifier_setError((ModifierData *)smd, "Please enable 'Auto Smooth' option in mesh settings");
+		modifier_setError((ModifierData *)smd, "Enable 'Auto Smooth' option in mesh settings");
 		return;
 	}




More information about the Bf-blender-cvs mailing list