From 4ea8c6b1e16d12d95f83bce0aeb9505b7131ec87 Mon Sep 17 00:00:00 2001 From: volzhs Date: Fri, 25 May 2018 12:37:49 +0900 Subject: Fix unable to remove split on Polygon 2D editor after restarting editor --- editor/plugins/polygon_2d_editor_plugin.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'editor/plugins') diff --git a/editor/plugins/polygon_2d_editor_plugin.cpp b/editor/plugins/polygon_2d_editor_plugin.cpp index ed41e1931e..4840b1899d 100644 --- a/editor/plugins/polygon_2d_editor_plugin.cpp +++ b/editor/plugins/polygon_2d_editor_plugin.cpp @@ -563,6 +563,7 @@ void Polygon2DEditor::_uv_input(const Ref &p_input) { if (uv_move_current == UV_MODE_REMOVE_SPLIT) { + splits_prev = node->get_splits(); for (int i = 0; i < splits_prev.size(); i += 2) { if (splits_prev[i] < 0 || splits_prev[i] >= points_prev.size()) continue; -- cgit v1.2.3