mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 20:15:15 +02:00
Fix crash due to incorrect assert
This commit is contained in:
parent
2de0934598
commit
25a9716642
1 changed files with 1 additions and 4 deletions
|
@ -666,14 +666,11 @@ void avatarDataFromScriptValue(const QScriptValue& object, ScriptAvatarData*& ou
|
|||
}
|
||||
|
||||
QScriptValue externalResourceBucketToScriptValue(QScriptEngine* engine, ExternalResource::Bucket const& in) {
|
||||
//return engine->newQObject(in, QScriptEngine::ScriptOwnership, DEFAULT_QOBJECT_WRAP_OPTIONS);
|
||||
return QScriptValue((int)in);
|
||||
}
|
||||
|
||||
void externalResourceBucketFromScriptValue(const QScriptValue& object, ExternalResource::Bucket& out) {
|
||||
// This is not implemented because there are no slots/properties that take an AvatarSharedPointer from a script
|
||||
assert(false);
|
||||
out = ExternalResource::Bucket::Assets;
|
||||
out = static_cast<ExternalResource::Bucket>(object.toInt32());
|
||||
}
|
||||
|
||||
void ScriptEngine::resetModuleCache(bool deleteScriptCache) {
|
||||
|
|
Loading…
Reference in a new issue