mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 18:16:45 +02:00
Merge pull request #11339 from ElderOrb/case7469
7469 Mouse Pointer Depth is Incorrect in HMD Mode
This commit is contained in:
commit
50b94887fa
1 changed files with 1 additions and 0 deletions
|
@ -761,6 +761,7 @@ QScriptValue rayPickResultToScriptValue(QScriptEngine* engine, const RayPickResu
|
||||||
obj.setProperty("distance", rayPickResult.distance);
|
obj.setProperty("distance", rayPickResult.distance);
|
||||||
QScriptValue intersection = vec3toScriptValue(engine, rayPickResult.intersection);
|
QScriptValue intersection = vec3toScriptValue(engine, rayPickResult.intersection);
|
||||||
obj.setProperty("intersection", intersection);
|
obj.setProperty("intersection", intersection);
|
||||||
|
obj.setProperty("intersects", rayPickResult.type != NONE);
|
||||||
QScriptValue surfaceNormal = vec3toScriptValue(engine, rayPickResult.surfaceNormal);
|
QScriptValue surfaceNormal = vec3toScriptValue(engine, rayPickResult.surfaceNormal);
|
||||||
obj.setProperty("surfaceNormal", surfaceNormal);
|
obj.setProperty("surfaceNormal", surfaceNormal);
|
||||||
return obj;
|
return obj;
|
||||||
|
|
Loading…
Reference in a new issue