mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 15:09:24 +02:00
CR feedback
This commit is contained in:
parent
46d96c22fa
commit
f6b8a51074
1 changed files with 4 additions and 1 deletions
|
@ -319,6 +319,7 @@ QScriptValue RayToOverlayIntersectionResultToScriptValue(QScriptEngine* engine,
|
||||||
case MAX_Z_FACE:
|
case MAX_Z_FACE:
|
||||||
faceName = "MAX_Z_FACE";
|
faceName = "MAX_Z_FACE";
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
case UNKNOWN_FACE:
|
case UNKNOWN_FACE:
|
||||||
faceName = "UNKNOWN_FACE";
|
faceName = "UNKNOWN_FACE";
|
||||||
break;
|
break;
|
||||||
|
@ -345,8 +346,10 @@ void RayToOverlayIntersectionResultFromScriptValue(const QScriptValue& object, R
|
||||||
value.face = MAX_Y_FACE;
|
value.face = MAX_Y_FACE;
|
||||||
} else if (faceName == "MIN_Z_FACE") {
|
} else if (faceName == "MIN_Z_FACE") {
|
||||||
value.face = MIN_Z_FACE;
|
value.face = MIN_Z_FACE;
|
||||||
} else {
|
} else if (faceName == "MAX_Z_FACE") {
|
||||||
value.face = MAX_Z_FACE;
|
value.face = MAX_Z_FACE;
|
||||||
|
} else {
|
||||||
|
value.face = UNKNOWN_FACE;
|
||||||
};
|
};
|
||||||
QScriptValue intersection = object.property("intersection");
|
QScriptValue intersection = object.property("intersection");
|
||||||
if (intersection.isValid()) {
|
if (intersection.isValid()) {
|
||||||
|
|
Loading…
Reference in a new issue