diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2018-09-20 21:45:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-20 21:45:16 +0200 |
| commit | 76ca46d1f4ab42c9ea11b651a07274f4a471ab64 (patch) | |
| tree | 3f2963b120517b9f4218cd1ffd5eeabb3db68c69 /editor/plugins/spatial_editor_plugin.cpp | |
| parent | f93a69cb6e7175174cb8ab7d1122a87e74b42d96 (diff) | |
| parent | 5172642c32900f97a6a81640dd6fcb518a254148 (diff) | |
| download | redot-engine-76ca46d1f4ab42c9ea11b651a07274f4a471ab64.tar.gz | |
Merge pull request #22225 from groud/fix_draw_on_viewport
Fixes drawing of the 2D plugins on the 3D view
Diffstat (limited to 'editor/plugins/spatial_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/spatial_editor_plugin.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index d5e5589de9..3e6a0ae81a 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -2312,12 +2312,12 @@ void SpatialEditorViewport::_draw() { EditorPluginList *over_plugin_list = EditorNode::get_singleton()->get_editor_plugins_over(); if (!over_plugin_list->empty()) { - over_plugin_list->forward_draw_over_viewport(surface); + over_plugin_list->forward_spatial_draw_over_viewport(surface); } EditorPluginList *force_over_plugin_list = editor->get_editor_plugins_force_over(); if (!force_over_plugin_list->empty()) { - force_over_plugin_list->forward_force_draw_over_viewport(surface); + force_over_plugin_list->forward_spatial_force_draw_over_viewport(surface); } if (surface->has_focus()) { @@ -2346,7 +2346,6 @@ void SpatialEditorViewport::_draw() { Point2 center = _point_to_screen(_edit.center); VisualServer::get_singleton()->canvas_item_add_line(ci, _edit.mouse_pos, center, Color(0.4, 0.7, 1.0, 0.8)); } - if (previewing) { Size2 ss = Size2(ProjectSettings::get_singleton()->get("display/window/size/width"), ProjectSettings::get_singleton()->get("display/window/size/height")); |
