mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 01:00:44 +02:00
Apply suggestions from code review:
Re-add deprecated MyAvatar.setToggleHips and have it do nothing but output a log warning.
This commit is contained in:
parent
72725e783a
commit
fd4abbb539
2 changed files with 13 additions and 0 deletions
|
@ -1392,6 +1392,12 @@ float loadSetting(Settings& settings, const QString& name, float defaultValue) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MyAvatar::setToggleHips(bool followHead) {
|
||||||
|
Q_UNUSED(followHead);
|
||||||
|
qCDebug(interfaceapp) << "MyAvatar.setToggleHips is deprecated; it no longer does anything; it will soon be removed from the API; "
|
||||||
|
"please update your script";
|
||||||
|
}
|
||||||
|
|
||||||
void MyAvatar::setEnableDebugDrawBaseOfSupport(bool isEnabled) {
|
void MyAvatar::setEnableDebugDrawBaseOfSupport(bool isEnabled) {
|
||||||
_enableDebugDrawBaseOfSupport = isEnabled;
|
_enableDebugDrawBaseOfSupport = isEnabled;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2181,6 +2181,13 @@ public slots:
|
||||||
*/
|
*/
|
||||||
Q_INVOKABLE void updateMotionBehaviorFromMenu();
|
Q_INVOKABLE void updateMotionBehaviorFromMenu();
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function MyAvatar.setToggleHips
|
||||||
|
* @param {boolean} enabled - Enabled.
|
||||||
|
* @deprecated This function is deprecated and will be removed.
|
||||||
|
*/
|
||||||
|
void setToggleHips(bool followHead);
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
* Displays the base of support area debug graphics if in HMD mode. If your head goes outside this area your avatar's hips
|
* Displays the base of support area debug graphics if in HMD mode. If your head goes outside this area your avatar's hips
|
||||||
* are moved to counterbalance your avatar, and if your head moves too far then your avatar's position is moved (i.e., a
|
* are moved to counterbalance your avatar, and if your head moves too far then your avatar's position is moved (i.e., a
|
||||||
|
|
Loading…
Reference in a new issue