1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00

Don't change region_rect when setting texture

This commit is contained in:
kobewi
2023-01-26 00:44:29 +01:00
parent 63b5adf8a8
commit b5fda06f20
3 changed files with 4 additions and 5 deletions

View File

@@ -740,6 +740,9 @@ void TextureRegionEditor::_update_rect() {
}
} else if (obj_styleBox.is_valid()) {
rect = obj_styleBox->get_region_rect();
if (rect == Rect2()) {
rect = Rect2(Vector2(), obj_styleBox->get_texture()->get_size());
}
}
}