diff options
author | trollodel <33117082+trollodel@users.noreply.github.com> | 2022-01-27 10:36:51 +0100 |
---|---|---|
committer | trollodel <33117082+trollodel@users.noreply.github.com> | 2022-02-14 14:16:24 +0100 |
commit | 05b56f316ddc94c2bb55b62477ec3914fe81a220 (patch) | |
tree | 928404930fc4f99dfb45d64a6b510e66e2bcc357 /editor/plugins/skeleton_ik_3d_editor_plugin.cpp | |
parent | f5a27ee4fe45925cebfda11ea7d53ca8f39e0a13 (diff) | |
download | redot-engine-05b56f316ddc94c2bb55b62477ec3914fe81a220.tar.gz |
Remove most EditorNode constructor parameters and fields
Diffstat (limited to 'editor/plugins/skeleton_ik_3d_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/skeleton_ik_3d_editor_plugin.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/editor/plugins/skeleton_ik_3d_editor_plugin.cpp b/editor/plugins/skeleton_ik_3d_editor_plugin.cpp index dbb1be9665..7dc34a0874 100644 --- a/editor/plugins/skeleton_ik_3d_editor_plugin.cpp +++ b/editor/plugins/skeleton_ik_3d_editor_plugin.cpp @@ -81,10 +81,9 @@ void SkeletonIK3DEditorPlugin::make_visible(bool p_visible) { void SkeletonIK3DEditorPlugin::_bind_methods() { } -SkeletonIK3DEditorPlugin::SkeletonIK3DEditorPlugin(EditorNode *p_node) { - editor = p_node; +SkeletonIK3DEditorPlugin::SkeletonIK3DEditorPlugin() { play_btn = memnew(Button); - play_btn->set_icon(editor->get_gui_base()->get_theme_icon(SNAME("Play"), SNAME("EditorIcons"))); + play_btn->set_icon(EditorNode::get_singleton()->get_gui_base()->get_theme_icon(SNAME("Play"), SNAME("EditorIcons"))); play_btn->set_text(TTR("Play IK")); play_btn->set_toggle_mode(true); play_btn->hide(); |