Free memory from unused GUI elements, and make colorpicker not glitch on first appearance
This commit is contained in:
parent
1ec7c717b2
commit
9ceb4e1b8a
4 changed files with 15 additions and 3 deletions
|
|
@ -13,7 +13,7 @@ void CheckBox::update(UpdateInputData& io, bool newIsTicked, const std::function
|
|||
}) {
|
||||
selection.update(Clay_Hovered(), io.mouse.leftClick, io.mouse.leftHeld);
|
||||
if(isTicked != newIsTicked) {
|
||||
hoverAnimation2 = CHECKBOX_ANIMATION_TIME;
|
||||
hoverAnimation2 = selection.hovered ? CHECKBOX_ANIMATION_TIME : 0.0f;
|
||||
isTicked = newIsTicked;
|
||||
}
|
||||
if(elemUpdate)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue