aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/spatial_editor_plugin.cpp
diff options
context:
space:
mode:
authorPedro J. Estébanez2017-10-29 20:32:09 +0100
committerPedro J. Estébanez2017-11-24 21:24:15 +0100
commit3f31925b180dd0bfd2601c20d7200b9b152b12ef (patch)
tree831e4c714d45d7b6d789421b4ba99acd395130bc /editor/plugins/spatial_editor_plugin.cpp
parent2e5dfbdb4beb52d021e89058ab64eac1a95d77b2 (diff)
downloadgodot-3f31925b180dd0bfd2601c20d7200b9b152b12ef.tar.gz
godot-3f31925b180dd0bfd2601c20d7200b9b152b12ef.tar.zst
godot-3f31925b180dd0bfd2601c20d7200b9b152b12ef.zip
Diffstat (limited to 'editor/plugins/spatial_editor_plugin.cpp')
-rw-r--r--editor/plugins/spatial_editor_plugin.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp
index 20dda8b69..c8a7ad45a 100644
--- a/editor/plugins/spatial_editor_plugin.cpp
+++ b/editor/plugins/spatial_editor_plugin.cpp
@@ -2332,6 +2332,16 @@ static void draw_indicator_bar(Control &surface, real_t fill, Ref<Texture> icon)
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);
+ }
+
+ 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);
+ }
+
if (surface->has_focus()) {
Size2 size = surface->get_size();
Rect2 r = Rect2(Point2(), size);