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
3111 3111
3112 if (!_aboutToQuit) {3112 if (!_aboutToQuit) {
3113 getOverlays().mousePressEvent(&mappedEvent);3113 getOverlays().mousePressEvent(&mappedEvent);
3114 getEntities()->mousePressEvent(&mappedEvent);3114
3115 if (!_controllerScriptingInterface->areEntityClicksCaptured()) {
3116 getEntities()->mousePressEvent(&mappedEvent);
3117 }
3115 }3118 }
3116 3119
3117 _controllerScriptingInterface->emitMousePressEvent(&mappedEvent); // send events to any registered scripts3120 _controllerScriptingInterface->emitMousePressEvent(&mappedEvent); // send events to any registered scripts