mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 07:52:55 +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 {
|
T readLockWithNamedJointIndex(const QString& name, const T& defaultValue, F f) const {
|
||||||
QReadLocker readLock(&_jointDataLock);
|
QReadLocker readLock(&_jointDataLock);
|
||||||
int index = getJointIndex(name);
|
int index = getJointIndex(name);
|
||||||
if (index == -1) {
|
|
||||||
index = getFauxJointIndex(name);
|
|
||||||
}
|
|
||||||
if (index == -1) {
|
if (index == -1) {
|
||||||
return defaultValue;
|
return defaultValue;
|
||||||
}
|
}
|
||||||
|
@ -1770,9 +1767,6 @@ protected:
|
||||||
void writeLockWithNamedJointIndex(const QString& name, F f) {
|
void writeLockWithNamedJointIndex(const QString& name, F f) {
|
||||||
QWriteLocker writeLock(&_jointDataLock);
|
QWriteLocker writeLock(&_jointDataLock);
|
||||||
int index = getJointIndex(name);
|
int index = getJointIndex(name);
|
||||||
if (index == -1) {
|
|
||||||
index = getFauxJointIndex(name);
|
|
||||||
}
|
|
||||||
if (index == -1) {
|
if (index == -1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue