Showing the changes to interface/src/raypick/PickScriptingInterface.cpp (1 of 63 files). Show all
Unified · Split
| @@ -451,8 +451,9 @@ ScriptValue pickTypesToScriptValue(ScriptEngine* engine, const PickQuery::PickTy · 450 unmodified lines | |||
| 451 | return engine->newValue(pickType); | 451 | return engine->newValue(pickType); |
| 452 | } | 452 | } |
| 453 | 453 | ||
| 454 | void pickTypesFromScriptValue(const ScriptValue& object, PickQuery::PickType& pickType) { | 454 | bool pickTypesFromScriptValue(const ScriptValue& object, PickQuery::PickType& pickType) { |
| 455 | pickType = static_cast<PickQuery::PickType>(object.toUInt16()); | 455 | pickType = static_cast<PickQuery::PickType>(object.toUInt16()); |
| 456 | return true; | ||
| 456 | } | 457 | } |
| 457 | 458 | ||
| 458 | void PickScriptingInterface::registerMetaTypes(ScriptEngine* engine) { | 459 | void PickScriptingInterface::registerMetaTypes(ScriptEngine* engine) { |