Commit: 44e53c82d2e13146667dcb282e8285a6737d2801
Author: Campbell Barton
Date:   Tue Feb 25 18:31:50 2014 +1100
https://developer.blender.org/rB44e53c82d2e13146667dcb282e8285a6737d2801

Object disable negative object dimensions

these would become positive on update

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

M       source/blender/makesrna/intern/rna_object.c

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

diff --git a/source/blender/makesrna/intern/rna_object.c 
b/source/blender/makesrna/intern/rna_object.c
index 066b6f6..8a2d412 100644
--- a/source/blender/makesrna/intern/rna_object.c
+++ b/source/blender/makesrna/intern/rna_object.c
@@ -2310,7 +2310,7 @@ static void rna_def_object(BlenderRNA *brna)
        prop = RNA_def_property(srna, "dimensions", PROP_FLOAT, 
PROP_XYZ_LENGTH);
        RNA_def_property_array(prop, 3);
        RNA_def_property_float_funcs(prop, "rna_Object_dimensions_get", 
"rna_Object_dimensions_set", NULL);
-       RNA_def_property_ui_range(prop, -FLT_MAX, FLT_MAX, 1, 3);
+       RNA_def_property_ui_range(prop, 0.0f, FLT_MAX, 1, 3);
        RNA_def_property_ui_text(prop, "Dimensions", "Absolute bounding box 
dimensions of the object");
        RNA_def_property_update(prop, NC_OBJECT | ND_TRANSFORM, 
"rna_Object_internal_update");

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to