You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Revert "Disallow polygon2D editing if internal vertices exists, as suggested in #24853"
This reverts commit 419fb45a3e.
This commit is contained in:
@@ -52,16 +52,6 @@ Vector2 Polygon2DEditor::_get_offset(int p_idx) const {
|
||||
return node->get_offset();
|
||||
}
|
||||
|
||||
String Polygon2DEditor::_why_cant_edit_polygon() const {
|
||||
|
||||
if (node->get_internal_vertex_count() > 0) {
|
||||
|
||||
return TTR("Polygon 2D has internal vertices, so it can no longer be edited in the viewport.");
|
||||
}
|
||||
|
||||
return String();
|
||||
}
|
||||
|
||||
int Polygon2DEditor::_get_polygon_count() const {
|
||||
if (node->get_internal_vertex_count() > 0) {
|
||||
return 0; //do not edit if internal vertices exist
|
||||
|
||||
Reference in New Issue
Block a user