mirror of
https://github.com/godotengine/godot.git
synced 2024-10-22 21:21:53 +00:00
Prevent 2D editor plugins from breaking editor
This commit is contained in:
parent
4a2c2170b4
commit
59d02d37db
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user