mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
7469 Mouse Pointer Depth is Incorrect in HMD Mode
This commit is contained in:
parent
54deef8f32
commit
deee6aab1a
1 changed files with 1 additions and 0 deletions
|
@ -761,6 +761,7 @@ QScriptValue rayPickResultToScriptValue(QScriptEngine* engine, const RayPickResu
|
|||
obj.setProperty("distance", rayPickResult.distance);
|
||||
QScriptValue intersection = vec3toScriptValue(engine, rayPickResult.intersection);
|
||||
obj.setProperty("intersection", intersection);
|
||||
obj.setProperty("intersects", rayPickResult.type != NONE);
|
||||
QScriptValue surfaceNormal = vec3toScriptValue(engine, rayPickResult.surfaceNormal);
|
||||
obj.setProperty("surfaceNormal", surfaceNormal);
|
||||
return obj;
|
||||
|
|
Loading…
Reference in a new issue