Skip to content

Commit

Permalink
Fix TileSet editor workspace breaking
Browse files Browse the repository at this point in the history
  • Loading branch information
KoBeWi committed Nov 17, 2021
1 parent 7e6bf27 commit f3d5ef6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion editor/plugins/tile_set_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f3d5ef6

Please sign in to comment.