-
Notifications
You must be signed in to change notification settings - Fork 177
Small optimisations and tidying related to MyAvatar #1047
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…g. No behaviour should change. * Removed the deprecated MyAvatar.setToggleHips script function and the "Toggle Hips Following" option from the Developer menu. They had no effect on any code. * In CharacterController::applyMotor, prevented unnecessary calls to btVector3::rotate() when the motor has no rotation. This change also improves readability through the use of clearly-named lambdas. * In AvatarData::getFauxJointIndex, prevented unnecessary string comparisons when the named joint is a real joint rather than a faux one. * In Avatar::getJointIndex, removed an unnecessary call to QHash<QString, int>::contains(), by supplying a default index for QHash<QString, int>::value(). * Removed unnecessary condition "forwardLeanAmount < 0" in MyAvatar::FollowHelper::shouldActivateHorizontal_userSitting. * Corrected the return type of MyAvatar::getSitStandStateChange from float to bool. * Added a missing 'f' suffix to a float literal in PreferencesDialog.cpp.
The following links are available:
build (windows-latest, full) |
We should follow a deprecation process for API items such as Suggestion: Over the course of three releases ...
For The process could be tracked in an issue. E.g., for this method I've created: #1061 |
Re-add deprecated MyAvatar.setToggleHips and have it do nothing but output a log warning.
The following links are available:
build (macOS-latest, full) build (windows-latest, full) |
Android build failed with the qt not having been entirely downloaded for some reason. I checked the CDN and everything looks good on there, so I just made it do another build. |
The following links are available:
build (macOS-latest, full) build (windows-latest, full) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It appears to work alright on desktop. :)
Testing PR1047-4360ceb in VR Assuming that that is not supposed to be any functional change it seems to work 👍 no new bugs detected. |
This PR consists of small optimisations and tidying of things that were noticed in passing, related to
MyAvatar
. No behaviour should change.MyAvatar.setToggleHips
script function, which had no effect on any code, now ouptuts a log warning indicating that it's deprecated.CharacterController::applyMotor
, prevented unnecessary calls tobtVector3::rotate()
when the motor has no rotation. This change also improves readability through the use of clearly-named lambdas.AvatarData::getFauxJointIndex
, prevented unnecessary string comparisons when the named joint is a real joint rather than a faux one.Avatar::getJointIndex
, removed an unnecessary call toQHash<QString, int>::contains()
, by supplying a default index forQHash<QString, int>::value()
.forwardLeanAmount < 0
" inMyAvatar::FollowHelper::shouldActivateHorizontal_userSitting
.MyAvatar::getSitStandStateChange
from float to bool.