forked from bartvdbraak/blender
bisplay shapekeys as sliders in the dope sheet editor
This commit is contained in:
parent
4957d50b79
commit
99ec29193a
@ -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()
|
||||
|
@ -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
|
||||
|
@ -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.");
|
||||
|
Loading…
Reference in New Issue
Block a user