You've already forked godot
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:
@@ -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