mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Bugfix for legacy sit scripts
Don't return additive clip nodes as valid "roles" for users to override.
This commit is contained in:
parent
f7862a0556
commit
14e5962675
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