Fix #21122: color sliders behaving weirdly.

This commit is contained in:
2010-03-12 14:18:14 +00:00
parent 9395efc02f
commit 812be2053a

View File

@@ -648,10 +648,6 @@ void uiEndBlock(const bContext *C, uiBlock *block)
CTX_store_set((bContext*)C, NULL);
}
/* only update soft range while not editing */
if(but->rnaprop && !(but->editval || but->editstr || but->editvec))
ui_set_but_soft_range(but, ui_get_but_val(but));
ui_but_anim_flag(but, (scene)? scene->r.cfra: 0.0f);
}
@@ -1940,6 +1936,10 @@ void ui_check_but(uiBut *but)
// if(but->type==TEX || but->type==IDPOIN) transopts= 0;
/* only update soft range while not editing */
if(but->rnaprop && !(but->editval || but->editstr || but->editvec))
ui_set_but_soft_range(but, ui_get_but_val(but));
/* test for min and max, icon sliders, etc */
switch( but->type ) {
case NUM: