Prevent 2D editor plugins from breaking editor

This commit is contained in:
kobewi 2021-07-26 01:30:35 +02:00
parent 4a2c2170b4
commit 59d02d37db

View File

@ -3779,6 +3779,9 @@ void CanvasItemEditor::_draw_viewport() {
force_over_plugin_list->forward_canvas_force_draw_over_viewport(viewport);
}
// Reset the transform in case some plugin changed it, potentially breaking the editor.
RenderingServer::get_singleton()->canvas_item_add_set_transform(ci, Transform2D());
if (show_rulers) {
_draw_rulers();
}