mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-08 06:32:35 +02:00
removed unnecessary getFauxJointIndex call, this is handled in getJointIndex
This commit is contained in:
parent
72264203db
commit
9afbf76ec1
1 changed files with 0 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue