aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/editor_plugin.cpp
diff options
context:
space:
mode:
authorFranklin Sobrinho2015-10-04 08:29:19 -0300
committerFranklin Sobrinho2015-10-04 08:29:19 -0300
commita609a567ea033b99aaa7ad005313d39bec514172 (patch)
treeecffadf909a326a6ca6d6313f95099054c951b6f /tools/editor/editor_plugin.cpp
parent5ddbef135134720b52ee8c07db5f8460980ae6fe (diff)
downloadgodot-a609a567ea033b99aaa7ad005313d39bec514172.tar.gz
godot-a609a567ea033b99aaa7ad005313d39bec514172.tar.zst
godot-a609a567ea033b99aaa7ad005313d39bec514172.zip
Fix bug in EditorPlugin::add_custom_control, fixes #2567
Diffstat (limited to 'tools/editor/editor_plugin.cpp')
-rw-r--r--tools/editor/editor_plugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/editor/editor_plugin.cpp b/tools/editor/editor_plugin.cpp
index 04c34d9a8..7417d707b 100644
--- a/tools/editor/editor_plugin.cpp
+++ b/tools/editor/editor_plugin.cpp
@@ -74,6 +74,7 @@ void EditorPlugin::add_custom_control(CustomControlContainer p_location,Control
case CONTAINER_CANVAS_EDITOR_SIDE: {
CanvasItemEditor::get_singleton()->get_palette_split()->add_child(p_control);
+ CanvasItemEditor::get_singleton()->get_palette_split()->move_child(p_control,0);
} break;
case CONTAINER_CANVAS_EDITOR_BOTTOM: {