summaryrefslogtreecommitdiff
path: root/editor/plugins/abstract_polygon_2d_editor.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2019-02-13 13:11:39 -0300
committerJuan Linietsky <reduzio@gmail.com>2019-02-13 13:11:39 -0300
commit419fb45a3eea68516828fe4541a62f8641cf13ef (patch)
tree921a86a3dd4cb4ea3b6c5fc2c9ae693aa3411b1e /editor/plugins/abstract_polygon_2d_editor.h
parent7f69da488e971b035fbdf044536db1ce9a100d50 (diff)
Disallow polygon2D editing if internal vertices exists, as suggested in #24853
Diffstat (limited to 'editor/plugins/abstract_polygon_2d_editor.h')
-rw-r--r--editor/plugins/abstract_polygon_2d_editor.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/abstract_polygon_2d_editor.h b/editor/plugins/abstract_polygon_2d_editor.h
index 289c2785b1..f10af4ee6e 100644
--- a/editor/plugins/abstract_polygon_2d_editor.h
+++ b/editor/plugins/abstract_polygon_2d_editor.h
@@ -134,6 +134,8 @@ protected:
virtual bool _has_resource() const;
virtual void _create_resource();
+ virtual String _why_cant_edit_polygon() const { return String(); }
+
public:
bool forward_gui_input(const Ref<InputEvent> &p_event);
void forward_canvas_draw_over_viewport(Control *p_overlay);