Explorar o código

Fix unable to remove split on Polygon 2D editor after restarting editor

volzhs %!s(int64=7) %!d(string=hai) anos
pai
achega
4ea8c6b1e1
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      editor/plugins/polygon_2d_editor_plugin.cpp

+ 1 - 0
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;