mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-17 00:25:44 +00:00
Don't change region_rect when setting texture
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user