1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Rename Sprite.region_enabled getter and setter to match properties

Also renames Sprite2D.region_filter_clip property and its setter to
region_filter_clip_enabled and set_region_filter_clip_enabled.
This commit is contained in:
Marcel Admiraal
2021-03-14 13:43:43 +00:00
parent 6edb0a75ab
commit 3dcdb84660
9 changed files with 56 additions and 56 deletions

View File

@@ -179,7 +179,7 @@ void Sprite2DEditor::_update_mesh_data() {
}
Rect2 rect;
if (node->is_region()) {
if (node->is_region_enabled()) {
rect = node->get_region_rect();
} else {
rect.size = Size2(image->get_width(), image->get_height());