Fix #21122: color sliders behaving weirdly.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user