Fixed mesh loading bugs introduced by code cleanup

This commit is contained in:
Graham Pentheny
2025-06-03 00:42:02 -04:00
parent 69ceb7cad5
commit f3d2e4828d
2 changed files with 6 additions and 6 deletions

View File

@@ -98,10 +98,10 @@ Sample::~Sample()
}
}
void Sample::setTool(SampleTool* tool)
void Sample::setTool(SampleTool* newTool)
{
delete tool;
tool = tool;
tool = newTool;
if (tool)
{
tool->init(this);