mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 17:35:45 +02:00
Merge pull request #6341 from howard-stearns/for-sam
Make life easier for Sam.
This commit is contained in:
commit
07fb3a0532
2 changed files with 6 additions and 1 deletions
|
@ -300,6 +300,8 @@ void Rig::setJointAnimatinoPriority(int index, float newPriority) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Deprecated.
|
||||||
|
// WARNING: this is not symmetric with getJointRotation. It's historical. Use the appropriate specific variation.
|
||||||
void Rig::setJointRotation(int index, bool valid, const glm::quat& rotation, float priority) {
|
void Rig::setJointRotation(int index, bool valid, const glm::quat& rotation, float priority) {
|
||||||
if (index != -1 && index < _jointStates.size()) {
|
if (index != -1 && index < _jointStates.size()) {
|
||||||
JointState& state = _jointStates[index];
|
JointState& state = _jointStates[index];
|
||||||
|
@ -350,6 +352,8 @@ bool Rig::getJointRotationInWorldFrame(int jointIndex, glm::quat& result, const
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Deprecated.
|
||||||
|
// WARNING: this is not symmetric with setJointRotation. It's historical. Use the appropriate specific variation.
|
||||||
bool Rig::getJointRotation(int jointIndex, glm::quat& rotation) const {
|
bool Rig::getJointRotation(int jointIndex, glm::quat& rotation) const {
|
||||||
if (jointIndex == -1 || jointIndex >= _jointStates.size()) {
|
if (jointIndex == -1 || jointIndex >= _jointStates.size()) {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -240,7 +240,8 @@ public:
|
||||||
Q_INVOKABLE void setHandState(char s) { _handState = s; }
|
Q_INVOKABLE void setHandState(char s) { _handState = s; }
|
||||||
Q_INVOKABLE char getHandState() const { return _handState; }
|
Q_INVOKABLE char getHandState() const { return _handState; }
|
||||||
|
|
||||||
const QVector<JointData>& getJointData() const { return _jointData; }
|
const QVector<JointData>& getRawJointData() const { return _jointData; }
|
||||||
|
void setRawJointData(QVector<JointData> data) { _jointData = data; }
|
||||||
|
|
||||||
Q_INVOKABLE virtual void setJointData(int index, const glm::quat& rotation, const glm::vec3& translation);
|
Q_INVOKABLE virtual void setJointData(int index, const glm::quat& rotation, const glm::vec3& translation);
|
||||||
Q_INVOKABLE virtual void setJointRotation(int index, const glm::quat& rotation);
|
Q_INVOKABLE virtual void setJointRotation(int index, const glm::quat& rotation);
|
||||||
|
|
Loading…
Reference in a new issue