mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
code review
This commit is contained in:
parent
689fdfb35f
commit
51f6b5af78
3 changed files with 2 additions and 5 deletions
|
@ -308,7 +308,7 @@ void Rig::clearIKJointLimitHistory() {
|
|||
}
|
||||
}
|
||||
|
||||
int Rig::getJointParentIndex(int childIndex) {
|
||||
int Rig::getJointParentIndex(int childIndex) const {
|
||||
if (_animSkeleton && isIndexValid(childIndex)) {
|
||||
return _animSkeleton->getParentIndex(childIndex);
|
||||
}
|
||||
|
|
|
@ -105,7 +105,7 @@ public:
|
|||
|
||||
void clearIKJointLimitHistory();
|
||||
|
||||
int getJointParentIndex(int childIndex);
|
||||
int getJointParentIndex(int childIndex) const;
|
||||
|
||||
// geometry space
|
||||
void setJointState(int index, bool valid, const glm::quat& rotation, const glm::vec3& translation, float priority);
|
||||
|
|
|
@ -117,9 +117,6 @@ public:
|
|||
|
||||
virtual bool shouldBePhysical() const override;
|
||||
|
||||
// virtual glm::vec3 getJointPosition(int jointIndex) const { return glm::vec3(); }
|
||||
// virtual glm::quat getJointRotation(int jointIndex) const { return glm::quat(); }
|
||||
|
||||
virtual void setJointRotations(const QVector<glm::quat>& rotations);
|
||||
virtual void setJointRotationsSet(const QVector<bool>& rotationsSet);
|
||||
virtual void setJointTranslations(const QVector<glm::vec3>& translations);
|
||||
|
|
Loading…
Reference in a new issue