Hello!
If the scale property for an object is reset to its default value, it
becomes zero and disappears. It should probably become 1 when reset. I
attached a patch with a suggested fix.
Regards,
Fredrik Axelsson
Index: source/blender/makesrna/intern/rna_object.c
===================================================================
--- source/blender/makesrna/intern/rna_object.c (revision 27090)
+++ source/blender/makesrna/intern/rna_object.c (working copy)
@@ -1443,6 +1443,7 @@
static float default_quat[4] = {1,0,0,0}; /* default quaternion
values */
static float default_axisAngle[4] = {0,0,1,0}; /* default axis-angle
rotation values */
+ static float default_scale[3] = {1,1,1};
int matrix_dimsize[]= {4, 4};
int boundbox_dimsize[]= {8, 3};
@@ -1605,6 +1606,7 @@
RNA_def_property_editable_array_func(prop, "rna_Object_scale_editable");
RNA_def_property_ui_text(prop, "Scale", "Scaling of the object");
RNA_def_property_update(prop, NC_OBJECT|ND_TRANSFORM,
"rna_Object_update");
+ RNA_def_property_float_array_default(prop, default_scale);
prop= RNA_def_property(srna, "dimensions", PROP_FLOAT,
PROP_XYZ|PROP_UNIT_LENGTH);
RNA_def_property_array(prop, 3);
_______________________________________________
Bf-committers mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-committers