diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-02-27 00:32:00 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-02-27 00:32:51 -0300 |
commit | 2a7fdb23b3381900c3dd087f567e50d2d738c43a (patch) | |
tree | c184282a7e5540d67c3fd3797af101d440770dc4 /tools/editor/plugins/shader_editor_plugin.cpp | |
parent | 7d8b7df19d2ee8f6f6c09c3bbb92224eedf8115f (diff) |
First attempt at making a more useful EditorPlugin API. Still undocumented, but feedback welcome!
Diffstat (limited to 'tools/editor/plugins/shader_editor_plugin.cpp')
-rw-r--r-- | tools/editor/plugins/shader_editor_plugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/editor/plugins/shader_editor_plugin.cpp b/tools/editor/plugins/shader_editor_plugin.cpp index 18d8f5efc0..7161033111 100644 --- a/tools/editor/plugins/shader_editor_plugin.cpp +++ b/tools/editor/plugins/shader_editor_plugin.cpp @@ -578,9 +578,9 @@ ShaderEditorPlugin::ShaderEditorPlugin(EditorNode *p_node, bool p_2d) { shader_editor = memnew( ShaderEditor ); _2d=p_2d; if (p_2d) - add_custom_control(CONTAINER_CANVAS_EDITOR_BOTTOM,shader_editor); + add_control_to_container(CONTAINER_CANVAS_EDITOR_BOTTOM,shader_editor); else - add_custom_control(CONTAINER_SPATIAL_EDITOR_BOTTOM,shader_editor); + add_control_to_container(CONTAINER_SPATIAL_EDITOR_BOTTOM,shader_editor); // editor->get_viewport()->add_child(shader_editor); // shader_editor->set_area_as_parent_rect(); |