Skip to content

Commit

Permalink
Fix ToolInit
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdawson committed May 16, 2024
1 parent 4f6d9b0 commit 81693e9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gdext/src/ImGuiGD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,9 @@ bool ImGuiGD::ToolInit()

Node* plugin = Object::cast_to<Node>(Engine::get_singleton()->get_singleton("ImGuiPlugin"));
ERR_FAIL_COND_V(!plugin, false);
if (!plugin->get_node_or_null("ImGuiLayer"))
if (!plugin->get_node_or_null("ImGuiController"))
{
ImGuiLayer* igl = memnew(ImGuiLayer);
plugin->add_child(igl);
igl->set_visible(true);
plugin->add_child(memnew(ImGuiController));
}
return true;
#else
Expand Down

0 comments on commit 81693e9

Please sign in to comment.