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:
Phil Palmer 2021-03-03 23:37:21 -05:00
parent 72725e783a
commit fd4abbb539
2 changed files with 13 additions and 0 deletions

View file

@ -1392,6 +1392,12 @@ float loadSetting(Settings& settings, const QString& name, float defaultValue) {
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) {
_enableDebugDrawBaseOfSupport = isEnabled;
}

View file

@ -2181,6 +2181,13 @@ public slots:
*/
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
* 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