Browse Source

Fix SceneView3D "click-thru"

Josh Engebretson 10 years ago
parent
commit
d368d0b7bd
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Source/AtomicEditorWork/Editors/SceneEditor3D/SceneView3D.cpp

+ 3 - 0
Source/AtomicEditorWork/Editors/SceneEditor3D/SceneView3D.cpp

@@ -235,6 +235,9 @@ bool SceneView3D::MouseInView()
     if (!GetInternalWidget())
     if (!GetInternalWidget())
         return false;
         return false;
 
 
+    if (!TBWidget::hovered_widget || TBWidget::hovered_widget->GetDelegate() != this)
+        return false;
+
     Input* input = GetSubsystem<Input>();
     Input* input = GetSubsystem<Input>();
     IntVector2 pos = input->GetMousePosition();
     IntVector2 pos = input->GetMousePosition();