Skip to content

Commit

Permalink
#5767: Fix crash at shutdown due to PatchInspector placing itself as …
Browse files Browse the repository at this point in the history
…observer on selected patches even though it's not visible.

Remove the TexTool and PatchInspector update callouts from SurfaceInspector, they should listen to changes on their own.
  • Loading branch information
codereader committed Oct 1, 2021
1 parent 9e9a81f commit 5e8956b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions radiant/ui/patch/PatchInspector.cpp
Expand Up @@ -52,9 +52,6 @@ PatchInspector::PatchInspector() :
// Create all the widgets and pack them into the window
populateWindow();

// Update the widget status
rescanSelection();

InitialiseWindowPosition(410, 480, RKEY_WINDOW_STATE);
}

Expand Down
4 changes: 0 additions & 4 deletions radiant/ui/surfaceinspector/SurfaceInspector.cpp
Expand Up @@ -624,10 +624,6 @@ void SurfaceInspector::doUpdate()
{
updateTexDef();
}

// Update the TexTool instance as well
ui::TexTool::Instance().draw();
ui::PatchInspector::Instance().queueUpdate();
}

void SurfaceInspector::fitTexture(Axis axis)
Expand Down

0 comments on commit 5e8956b

Please sign in to comment.