diff options
author | Markus Sauermann <6299227+Sauermann@users.noreply.github.com> | 2022-03-28 11:01:29 +0200 |
---|---|---|
committer | Markus Sauermann <6299227+Sauermann@users.noreply.github.com> | 2022-03-28 11:59:40 +0200 |
commit | ffe42171a52ad83a20e7c048cf92bcc84251c669 (patch) | |
tree | fe6118764f5946913329fe346425bc90ddd62482 /scene/main/viewport.h | |
parent | 795304e34f3f8ab5ee47bfc2ce09ef94cac0a113 (diff) |
Fix using Viewport::warp_mouse within Viewports
Diffstat (limited to 'scene/main/viewport.h')
-rw-r--r-- | scene/main/viewport.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/main/viewport.h b/scene/main/viewport.h index d5fca1b881..80be53fab8 100644 --- a/scene/main/viewport.h +++ b/scene/main/viewport.h @@ -609,6 +609,8 @@ public: void pass_mouse_focus_to(Viewport *p_viewport, Control *p_control); + virtual Transform2D get_screen_transform() const; + #ifndef _3D_DISABLED bool use_xr = false; friend class AudioListener3D; @@ -732,6 +734,8 @@ public: void set_clear_mode(ClearMode p_mode); ClearMode get_clear_mode() const; + virtual Transform2D get_screen_transform() const override; + SubViewport(); ~SubViewport(); }; |