Merge pull request #19156 from volzhs/fix-remove-split

Fix unable to remove split on Polygon 2D editor after restarting editor
This commit is contained in:
Max Hilbrunner 2018-07-03 17:37:01 +02:00 committed by GitHub
commit deb005c966
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;