removed unnecessary getFauxJointIndex call, this is handled in getJointIndex

This commit is contained in:
Angus Antley 2019-04-04 10:22:24 -07:00
parent 72264203db
commit 9afbf76ec1

View file

@ -1752,9 +1752,6 @@ protected:
T readLockWithNamedJointIndex(const QString& name, const T& defaultValue, F f) const {
QReadLocker readLock(&_jointDataLock);
int index = getJointIndex(name);
if (index == -1) {
index = getFauxJointIndex(name);
}
if (index == -1) {
return defaultValue;
}
@ -1770,9 +1767,6 @@ protected:
void writeLockWithNamedJointIndex(const QString& name, F f) {
QWriteLocker writeLock(&_jointDataLock);
int index = getJointIndex(name);
if (index == -1) {
index = getFauxJointIndex(name);
}
if (index == -1) {
return;
}