mirror of
https://github.com/lubosz/overte.git
synced 2025-04-19 08:58:02 +02:00
Fix linux warning and HMD breaks flow
This commit is contained in:
parent
ec4d069011
commit
dcbf57ee0b
3 changed files with 1 additions and 11 deletions
|
@ -460,16 +460,12 @@ void Flow::calculateConstraints(const std::shared_ptr<AnimSkeleton>& skeleton,
|
|||
if (!skeleton) {
|
||||
return;
|
||||
}
|
||||
int rightHandIndex = -1;
|
||||
auto flowPrefix = FLOW_JOINT_PREFIX.toUpper();
|
||||
auto simPrefix = SIM_JOINT_PREFIX.toUpper();
|
||||
std::vector<int> handsIndices;
|
||||
|
||||
for (int i = 0; i < skeleton->getNumJoints(); i++) {
|
||||
auto name = skeleton->getJointName(i);
|
||||
if (name == "RightHand") {
|
||||
rightHandIndex = i;
|
||||
}
|
||||
if (std::find(HAND_COLLISION_JOINTS.begin(), HAND_COLLISION_JOINTS.end(), name) != HAND_COLLISION_JOINTS.end()) {
|
||||
handsIndices.push_back(i);
|
||||
}
|
||||
|
|
|
@ -1910,13 +1910,6 @@ void Rig::initAnimGraph(const QUrl& url) {
|
|||
connect(_networkLoader.get(), &AnimNodeLoader::error, [networkUrl](int error, QString str) {
|
||||
qCritical(animation) << "Error loading: code = " << error << "str =" << str;
|
||||
});
|
||||
|
||||
connect(this, &Rig::onLoadComplete, [&]() {
|
||||
_internalFlow.setActive(false);
|
||||
_internalFlow.cleanUp();
|
||||
_networkFlow.setActive(false);
|
||||
_networkFlow.cleanUp();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1158,6 +1158,7 @@ void Model::setURL(const QUrl& url) {
|
|||
resource->setLoadPriority(this, _loadingPriority);
|
||||
_renderWatcher.setResource(resource);
|
||||
}
|
||||
_rig.initFlow(false);
|
||||
onInvalidate();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue