Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-12-11 04:01:04 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-12-11 04:01:04 +0400
commit3998e2878bf1a762cd191235d23a7c48dcad8b54 (patch)
tree57d7b1d945992e011572df8222d1ae634c0d2714 /source
parentab6c81021234b22fc0ad8d8bc729d5c4301759e7 (diff)
delta scale default was still left at 0.0
Diffstat (limited to 'source')
-rw-r--r--source/blender/makesrna/intern/rna_object.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_object.c b/source/blender/makesrna/intern/rna_object.c
index f7df7c3928e..f920cfb5aec 100644
--- a/source/blender/makesrna/intern/rna_object.c
+++ b/source/blender/makesrna/intern/rna_object.c
@@ -2072,6 +2072,8 @@ static void rna_def_object(BlenderRNA *brna)
prop= RNA_def_property(srna, "delta_scale", PROP_FLOAT, PROP_XYZ);
RNA_def_property_float_sdna(prop, NULL, "dscale");
+ RNA_def_property_ui_range(prop, -FLT_MAX, FLT_MAX, 1, 3);
+ RNA_def_property_float_array_default(prop, default_scale);
RNA_def_property_ui_text(prop, "Delta Scale", "Extra scaling added to the scale of the object");
RNA_def_property_update(prop, NC_OBJECT|ND_TRANSFORM, "rna_Object_internal_update");