mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-28 18:29:49 +02:00
fix selecting another element turning off find tool
This commit is contained in:
@@ -705,7 +705,7 @@ void GameView::NotifyActiveToolsChanged(GameModel * sender)
|
|||||||
if (sender->GetRenderer()->findingElement)
|
if (sender->GetRenderer()->findingElement)
|
||||||
{
|
{
|
||||||
Tool *active = sender->GetActiveTool(0);
|
Tool *active = sender->GetActiveTool(0);
|
||||||
if (active->GetIdentifier().Contains("_PT_"))
|
if (!active->GetIdentifier().Contains("_PT_"))
|
||||||
ren->findingElement = 0;
|
ren->findingElement = 0;
|
||||||
else
|
else
|
||||||
ren->findingElement = sender->GetActiveTool(0)->GetToolID()%256;
|
ren->findingElement = sender->GetActiveTool(0)->GetToolID()%256;
|
||||||
|
Reference in New Issue
Block a user