mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-08 15:43:17 +02:00
Merge pull request #16352 from hyperlogic/bug-fix/legacy-sit-script
Bugfix for legacy sit scripts
This commit is contained in:
commit
bebb21fa9e
2 changed files with 4 additions and 1 deletions
|
@ -55,6 +55,8 @@ public:
|
|||
float getFrame() const { return _frame; }
|
||||
void loadURL(const QString& url);
|
||||
|
||||
AnimBlendType getBlendType() const { return _blendType; };
|
||||
|
||||
protected:
|
||||
|
||||
virtual void setCurrentFrameInternal(float frame) override;
|
||||
|
|
|
@ -545,7 +545,8 @@ QStringList Rig::getAnimationRoles() const {
|
|||
auto clipNode = std::dynamic_pointer_cast<AnimClip>(node);
|
||||
if (clipNode) {
|
||||
// filter out the userAnims, they are for internal use only.
|
||||
if (!clipNode->getID().startsWith("userAnim")) {
|
||||
// also don't return additive blend node clips as valid roles.
|
||||
if (!clipNode->getID().startsWith("userAnim") && clipNode->getBlendType() == AnimBlendType_Normal) {
|
||||
list.append(node->getID());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue