mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +00:00
First attempt at making a more useful EditorPlugin API. Still undocumented, but feedback welcome!
This commit is contained in:
parent
7d8b7df19d
commit
2a7fdb23b3
12 changed files with 167 additions and 15 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue