Showing the changes to libraries/script-engine/src/ScriptValueUtils.cpp (1 of 14 files). Show all
Unified · Split
| @@ -459,6 +459,9 @@ ScriptValue quatToScriptValue(ScriptEngine* engine, const glm::quat& quat) { · 458 unmodified lines | |||
| 459 | 459 | ||
| 460 | // V8TODO: add similar check to other conversions | 460 | // V8TODO: add similar check to other conversions |
| 461 | bool quatFromScriptValue(const ScriptValue& object, glm::quat& quat) { | 461 | bool quatFromScriptValue(const ScriptValue& object, glm::quat& quat) { |
| 462 | if (!object.isValid()) { | ||
| 463 | return false; | ||
| 464 | } | ||
| 462 | if (!object.isObject()) { | 465 | if (!object.isObject()) { |
| 463 | return false; | 466 | return false; |
| 464 | } | 467 | } |