bisplay shapekeys as sliders in the dope sheet editor
authorCampbell Barton <ideasman42@gmail.com>
Fri, 16 Oct 2009 18:03:38 +0000 (18:03 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 16 Oct 2009 18:03:38 +0000 (18:03 +0000)
release/scripts/ui/buttons_data_mesh.py
source/blender/editors/animation/anim_channels_defines.c
source/blender/makesrna/intern/rna_key.c

index eeee15129783809a9ae52dc8957c9e1b190b9b37..35d0ecafdf1b5176af835d33c74ef0a1448c302c 100644 (file)
@@ -146,7 +146,7 @@ class DATA_PT_shape_keys(DataButtonsPanel):
                                        
                                        row = layout.row()
                                        row.enabled = ob.shape_key_lock == False
-                                       row.itemR(kb, "value", slider=True)
+                                       row.itemR(kb, "value")
                                        row.itemO("object.shape_key_clear", icon='ICON_X', text="")
                                        
                                        split = layout.split()
index 2cd41b0ffb7163dfb1b27ef59536067933a2ecaf..54a08cf4702979f0d4409f5c3840adcb177aec07 100644 (file)
@@ -2147,7 +2147,7 @@ void ANIM_channel_setting_set (bAnimContext *ac, bAnimListElem *ale, int setting
 // XXX hardcoded size of icons
 #define ICON_WIDTH             17
 // XXX hardcoded width of sliders
-#define SLIDER_WIDTH   70
+#define SLIDER_WIDTH   80
 
 /* Draw the given channel */
 // TODO: make this use UI controls for the buttons
index e1551404438fc1386ce348b26e926794c7098f06..230ed90c131b7a5f2d6b109b9f159f7782f36676 100644 (file)
@@ -363,7 +363,7 @@ static void rna_def_keyblock(BlenderRNA *brna)
        RNA_def_property_update(prop, 0, "rna_Key_update_data");
        
        /* for now, this is editable directly, as users can set this even if they're not animating them (to test results) */
-       prop= RNA_def_property(srna, "value", PROP_FLOAT, PROP_NONE);
+       prop= RNA_def_property(srna, "value", PROP_FLOAT, PROP_FACTOR);
        RNA_def_property_float_sdna(prop, NULL, "curval");
        RNA_def_property_float_funcs(prop, NULL, "rna_ShapeKey_value_set", "rna_ShapeKey_value_range");
        RNA_def_property_ui_text(prop, "Value", "Value of shape key at the current frame.");