mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 04:08:13 +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; }
|
float getFrame() const { return _frame; }
|
||||||
void loadURL(const QString& url);
|
void loadURL(const QString& url);
|
||||||
|
|
||||||
|
AnimBlendType getBlendType() const { return _blendType; };
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
virtual void setCurrentFrameInternal(float frame) override;
|
virtual void setCurrentFrameInternal(float frame) override;
|
||||||
|
|
|
@ -545,7 +545,8 @@ QStringList Rig::getAnimationRoles() const {
|
||||||
auto clipNode = std::dynamic_pointer_cast<AnimClip>(node);
|
auto clipNode = std::dynamic_pointer_cast<AnimClip>(node);
|
||||||
if (clipNode) {
|
if (clipNode) {
|
||||||
// filter out the userAnims, they are for internal use only.
|
// 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());
|
list.append(node->getID());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue