summaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorMax Hilbrunner <mhilbrunner@users.noreply.github.com>2018-07-03 17:37:01 +0200
committerGitHub <noreply@github.com>2018-07-03 17:37:01 +0200
commitdeb005c96656d95c5853d3c7956fca2672892be0 (patch)
treecc6b703b96eae817c559cebd561e21fe860ad932 /editor/plugins
parent1d57d03ea05e253bc97d1bb63a243642a3bd530d (diff)
parent4ea8c6b1e16d12d95f83bce0aeb9505b7131ec87 (diff)
Merge pull request #19156 from volzhs/fix-remove-split
Fix unable to remove split on Polygon 2D editor after restarting editor
Diffstat (limited to 'editor/plugins')
-rw-r--r--editor/plugins/polygon_2d_editor_plugin.cpp1
1 files changed, 1 insertions, 0 deletions
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<InputEvent> &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;