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
This commit is contained in:
@@ -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) );
|
||||
|
||||
Reference in New Issue
Block a user