diff options
| author | Juan Linietsky | 2014-07-07 17:44:21 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2014-07-07 17:44:21 -0300 |
| commit | 9ff6d55822647c87eef392147ea15641d0922d47 (patch) | |
| tree | 4a132cccc1ecb9f7de27a94475363fcf527986c6 /tools/editor/editor_node.cpp | |
| parent | 3d68949a1cc41b4865618bddde23122f66764ee1 (diff) | |
| download | godot-9ff6d55822647c87eef392147ea15641d0922d47.tar.gz godot-9ff6d55822647c87eef392147ea15641d0922d47.tar.zst godot-9ff6d55822647c87eef392147ea15641d0922d47.zip | |
Polygon2D
-=-=-=-=-
Another gift for those who make 2D games:
-Edit polygons, concave or convex, color them, texture them and uv-map them
-Corresponding editor
-Can have a custom pivot, so they are compatible with bones and IK
Diffstat (limited to 'tools/editor/editor_node.cpp')
| -rw-r--r-- | tools/editor/editor_node.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp index a86cdbfeb..a6243df69 100644 --- a/tools/editor/editor_node.cpp +++ b/tools/editor/editor_node.cpp @@ -86,6 +86,7 @@ #include "plugins/tile_set_editor_plugin.h" #include "plugins/animation_player_editor_plugin.h" #include "plugins/baked_light_editor_plugin.h" +#include "plugins/polygon_2d_editor_plugin.h" // end #include "tools/editor/io_plugins/editor_texture_import_plugin.h" #include "tools/editor/io_plugins/editor_scene_import_plugin.h" @@ -1323,6 +1324,7 @@ void EditorNode::_edit_current() { /* Take care of PLUGIN EDITOR */ + EditorPlugin *main_plugin = editor_data.get_editor(current_obj); if (main_plugin) { @@ -2759,7 +2761,7 @@ Error EditorNode::load_scene(const String& p_scene) { top_pallete->set_current_tab(0); //always go to scene - //push_item(new_scene); + push_item(new_scene); return OK; } @@ -4088,6 +4090,7 @@ EditorNode::EditorNode() { add_editor_plugin( memnew( Path2DEditorPlugin(this) ) ); add_editor_plugin( memnew( PathEditorPlugin(this) ) ); add_editor_plugin( memnew( BakedLightEditorPlugin(this) ) ); + add_editor_plugin( memnew( Polygon2DEditorPlugin(this) ) ); for(int i=0;i<EditorPlugins::get_plugin_count();i++) add_editor_plugin( EditorPlugins::create(i,this) ); |
