History

Add entity clicks capture capabilities

Atlante45 committed 9 years ago

Commit 512bb471 parent f4ff5cf6 files · +29 −3Browse files

Showing the changes to interface/src/Application.cpp (1 of 6 files). Show all

Unified · Split

interface/src/Application.cpp+4−1
@@ -3111,7 +3111,10 @@ void Application::mousePressEvent(QMouseEvent* event) { · 3110 unmodified lines
31113111
31123112 if (!_aboutToQuit) {
31133113 getOverlays().mousePressEvent(&mappedEvent);
3114− getEntities()->mousePressEvent(&mappedEvent);
3114+
3115+ if (!_controllerScriptingInterface->areEntityClicksCaptured()) {
3116+ getEntities()->mousePressEvent(&mappedEvent);
3117+ }
31153118 }
31163119
31173120 _controllerScriptingInterface->emitMousePressEvent(&mappedEvent); // send events to any registered scripts