Merge pull request #55059 from KoBeWi/call_deferred_to_the_rescue

This commit is contained in:
Rémi Verschelde 2021-11-17 18:17:55 +01:00 committed by GitHub
commit d3659ee0ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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) {