Showing the changes to interface/src/Application.cpp (1 of 6 files). Show all
Unified · Split
| @@ -3111,7 +3111,10 @@ void Application::mousePressEvent(QMouseEvent* event) { · 3110 unmodified lines | ||
| 3111 | 3111 | |
| 3112 | 3112 | if (!_aboutToQuit) { |
| 3113 | 3113 | getOverlays().mousePressEvent(&mappedEvent); |
| 3114 | − getEntities()->mousePressEvent(&mappedEvent); | |
| 3114 | + | |
| 3115 | + if (!_controllerScriptingInterface->areEntityClicksCaptured()) { | |
| 3116 | + getEntities()->mousePressEvent(&mappedEvent); | |
| 3117 | + } | |
| 3115 | 3118 | } |
| 3116 | 3119 | |
| 3117 | 3120 | _controllerScriptingInterface->emitMousePressEvent(&mappedEvent); // send events to any registered scripts |