Fix TileSet editor workspace breaking

(cherry picked from commit f3d5ef6f7b)
This commit is contained in:
kobewi 2021-11-17 17:35:16 +01:00 committed by Rémi Verschelde
parent cce91ce6e0
commit 0a519fed25
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -3336,9 +3336,10 @@ void TileSetEditor::update_workspace_minsize() {
}
}
workspace->set_custom_minimum_size(workspace_min_size + WORKSPACE_MARGIN * 2);
workspace_container->set_custom_minimum_size(workspace_min_size * workspace->get_scale() + WORKSPACE_MARGIN * 2);
workspace_overlay->set_custom_minimum_size(workspace_min_size * workspace->get_scale() + WORKSPACE_MARGIN * 2);
// Make sure workspace size is initialized last (otherwise it might be incorrect).
workspace->call_deferred("set_custom_minimum_size", workspace_min_size + WORKSPACE_MARGIN * 2);
}
void TileSetEditor::update_edited_region(const Vector2 &end_point) {