From 9ff6d55822647c87eef392147ea15641d0922d47 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Mon, 7 Jul 2014 17:44:21 -0300 Subject: 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 --- tools/editor/editor_node.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tools/editor/editor_node.cpp') 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