Merge pull request #11452 from SamGondelman/pos3D

Fix pointer event properties
This commit is contained in:
Sam Gateau 2017-09-25 11:49:54 -07:00 committed by GitHub
commit 191066a111

View file

@ -77,13 +77,13 @@ QScriptValue PointerEvent::toScriptValue(QScriptEngine* engine, const PointerEve
normal.setProperty("x", event._normal.x);
normal.setProperty("y", event._normal.y);
normal.setProperty("z", event._normal.z);
obj.setProperty("pos3D", normal);
obj.setProperty("normal", normal);
QScriptValue direction = engine->newObject();
direction.setProperty("x", event._direction.x);
direction.setProperty("y", event._direction.y);
direction.setProperty("z", event._direction.z);
obj.setProperty("pos3D", direction);
obj.setProperty("direction", direction);
bool isPrimaryButton = false;
bool isSecondaryButton = false;