Tracerestrict: Fix GUI issue with picker button raise/lower states.
When a picker button was selected, clicking on a different picker button would cause both buttons to be raised, instead of just the previous.
This commit is contained in:
@@ -1645,6 +1645,9 @@ private:
|
|||||||
*/
|
*/
|
||||||
void SetObjectToPlaceAction(int widget, CursorID cursor)
|
void SetObjectToPlaceAction(int widget, CursorID cursor)
|
||||||
{
|
{
|
||||||
|
if (this->current_placement_widget != -1 && widget != this->current_placement_widget) {
|
||||||
|
ResetObjectToPlace();
|
||||||
|
}
|
||||||
this->ToggleWidgetLoweredState(widget);
|
this->ToggleWidgetLoweredState(widget);
|
||||||
this->SetWidgetDirty(widget);
|
this->SetWidgetDirty(widget);
|
||||||
if (this->IsWidgetLowered(widget)) {
|
if (this->IsWidgetLowered(widget)) {
|
||||||
|
Reference in New Issue
Block a user