mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 03:27:48 +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) {
|
if (!skeleton) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int rightHandIndex = -1;
|
|
||||||
auto flowPrefix = FLOW_JOINT_PREFIX.toUpper();
|
auto flowPrefix = FLOW_JOINT_PREFIX.toUpper();
|
||||||
auto simPrefix = SIM_JOINT_PREFIX.toUpper();
|
auto simPrefix = SIM_JOINT_PREFIX.toUpper();
|
||||||
std::vector<int> handsIndices;
|
std::vector<int> handsIndices;
|
||||||
|
|
||||||
for (int i = 0; i < skeleton->getNumJoints(); i++) {
|
for (int i = 0; i < skeleton->getNumJoints(); i++) {
|
||||||
auto name = skeleton->getJointName(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()) {
|
if (std::find(HAND_COLLISION_JOINTS.begin(), HAND_COLLISION_JOINTS.end(), name) != HAND_COLLISION_JOINTS.end()) {
|
||||||
handsIndices.push_back(i);
|
handsIndices.push_back(i);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1910,13 +1910,6 @@ void Rig::initAnimGraph(const QUrl& url) {
|
||||||
connect(_networkLoader.get(), &AnimNodeLoader::error, [networkUrl](int error, QString str) {
|
connect(_networkLoader.get(), &AnimNodeLoader::error, [networkUrl](int error, QString str) {
|
||||||
qCritical(animation) << "Error loading: code = " << error << "str =" << 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);
|
resource->setLoadPriority(this, _loadingPriority);
|
||||||
_renderWatcher.setResource(resource);
|
_renderWatcher.setResource(resource);
|
||||||
}
|
}
|
||||||
|
_rig.initFlow(false);
|
||||||
onInvalidate();
|
onInvalidate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue