Polygon2DEditorPlugin::Polygon2DEditorPlugin(EditorNode *p_node) { editor = p_node; collision_polygon_editor = memnew(Polygon2DEditor(p_node)); CanvasItemEditor::get_singleton()->add_control_to_menu_panel(collision_polygon_editor); collision_polygon_editor->hide(); }
Polygon2DEditorPlugin::Polygon2DEditorPlugin(EditorNode *p_node) : AbstractPolygon2DEditorPlugin(p_node, memnew(Polygon2DEditor(p_node)), "Polygon2D") { }