fix [#34104] vertex color: color select bug
authorCampbell Barton <ideasman42@gmail.com>
Mon, 4 Feb 2013 12:32:24 +0000 (12:32 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 4 Feb 2013 12:32:24 +0000 (12:32 +0000)
changing the hue in a color picker on a panel when black/white was selected would fail because the hue from the previous state wasnt stored.

source/blender/editors/interface/interface.c

index 589ff3e..2fc942d 100644 (file)
@@ -927,6 +927,8 @@ void uiEndBlock(const bContext *C, uiBlock *block)
                block->auto_open = block->oldblock->auto_open;
                block->auto_open_last = block->oldblock->auto_open_last;
                block->tooltipdisabled = block->oldblock->tooltipdisabled;
+               copy_v3_v3(ui_block_hsv_get(block),
+                          ui_block_hsv_get(block->oldblock));
 
                block->oldblock = NULL;
        }