mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 11:37:58 +02:00
remove crash mode in invokable methods
This commit is contained in:
parent
227bd1487e
commit
6331395a89
1 changed files with 10 additions and 4 deletions
|
@ -105,9 +105,11 @@ QStringList Animation::getJointNames() const {
|
|||
return result;
|
||||
}
|
||||
QStringList names;
|
||||
if (_geometry) {
|
||||
foreach (const FBXJoint& joint, _geometry->joints) {
|
||||
names.append(joint.name);
|
||||
}
|
||||
}
|
||||
return names;
|
||||
}
|
||||
|
||||
|
@ -118,7 +120,11 @@ QVector<FBXAnimationFrame> Animation::getFrames() const {
|
|||
Q_RETURN_ARG(QVector<FBXAnimationFrame>, result));
|
||||
return result;
|
||||
}
|
||||
if (_geometry) {
|
||||
return _geometry->animationFrames;
|
||||
} else {
|
||||
return QVector<FBXAnimationFrame>();
|
||||
}
|
||||
}
|
||||
|
||||
const QVector<FBXAnimationFrame>& Animation::getFramesReference() const {
|
||||
|
|
Loading…
Reference in a new issue