diff options
author | Joshua Leung <aligorith@gmail.com> | 2010-02-23 08:02:00 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2010-02-23 08:02:00 +0300 |
commit | 3fbd42e0145db11d3a32057b5dec8302f121f398 (patch) | |
tree | 39f800260caab08d701ede1d9413c6419ad4c786 /source/blender/makesrna/intern/rna_pose.c | |
parent | 01939f84720f705ecba9eccd207ab624961bd3f8 (diff) |
Various RNA defaults for more consistency when updating settings (scene changes), and incorrect default values for scale settings.
Diffstat (limited to 'source/blender/makesrna/intern/rna_pose.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_pose.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_pose.c b/source/blender/makesrna/intern/rna_pose.c index 44bf85679c4..240d02f7f9e 100644 --- a/source/blender/makesrna/intern/rna_pose.c +++ b/source/blender/makesrna/intern/rna_pose.c @@ -663,6 +663,7 @@ static void rna_def_pose_channel(BlenderRNA *brna) 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}; /* default scale values */ StructRNA *srna; PropertyRNA *prop; @@ -722,6 +723,7 @@ static void rna_def_pose_channel(BlenderRNA *brna) prop= RNA_def_property(srna, "scale", PROP_FLOAT, PROP_XYZ); RNA_def_property_float_sdna(prop, NULL, "size"); RNA_def_property_editable_array_func(prop, "rna_PoseChannel_scale_editable"); + RNA_def_property_float_array_default(prop, default_scale); RNA_def_property_ui_text(prop, "Scale", ""); RNA_def_property_editable_func(prop, "rna_PoseChannel_proxy_editable"); // XXX... disabled, since proxy-locked layers are currently used for ensuring proxy-syncing too RNA_def_property_update(prop, NC_OBJECT|ND_POSE, "rna_Pose_update"); |