mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 01:03:57 +02:00
make IKTarget::setType() a one-liner
This commit is contained in:
parent
17e3e9394f
commit
59da684eb9
2 changed files with 2 additions and 7 deletions
|
@ -141,6 +141,7 @@ QByteArray MyAvatar::toByteArray(bool cullSmallChanges, bool sendAll) {
|
|||
}
|
||||
|
||||
void MyAvatar::reset() {
|
||||
_skeletonModel.reset();
|
||||
getHead()->reset();
|
||||
|
||||
_targetVelocity = glm::vec3(0.0f);
|
||||
|
|
|
@ -47,13 +47,7 @@ protected:
|
|||
int rootIndex;
|
||||
Type type = Type::RotationAndPosition;
|
||||
|
||||
void setType(const QString& typeVar) {
|
||||
if (typeVar == "RotationOnly") {
|
||||
type = Type::RotationOnly;
|
||||
} else {
|
||||
type = Type::RotationAndPosition;
|
||||
}
|
||||
}
|
||||
void setType(const QString& typeVar) { type = ((typeVar == "RotationOnly") ? Type::RotationOnly : Type::RotationAndPosition); }
|
||||
};
|
||||
|
||||
void computeTargets(const AnimVariantMap& animVars, std::vector<IKTarget>& targets);
|
||||
|
|
Loading…
Reference in a new issue