You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Construct values only when necessary.
This commit is contained in:
@@ -146,7 +146,7 @@ void TilesEditor::synchronize_atlas_view(Object *p_current) {
|
||||
ERR_FAIL_COND(!tile_atlas_view);
|
||||
|
||||
if (tile_atlas_view->is_visible_in_tree()) {
|
||||
tile_atlas_view->set_transform(atlas_view_zoom, Vector2(atlas_view_scroll.x, atlas_view_scroll.y));
|
||||
tile_atlas_view->set_transform(atlas_view_zoom, atlas_view_scroll);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user