mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 02:48:12 +02:00
More warning fixes
This commit is contained in:
parent
79fdb2e882
commit
5300963183
4 changed files with 6 additions and 6 deletions
|
@ -39,8 +39,8 @@ int AnimSkeleton::nameToJointIndex(const QString& jointName) const {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t AnimSkeleton::getNumJoints() const {
|
int AnimSkeleton::getNumJoints() const {
|
||||||
return _joints.size();
|
return (int)_joints.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
const AnimPose& AnimSkeleton::getAbsoluteBindPose(int jointIndex) const {
|
const AnimPose& AnimSkeleton::getAbsoluteBindPose(int jointIndex) const {
|
||||||
|
|
|
@ -27,7 +27,7 @@ public:
|
||||||
AnimSkeleton(const std::vector<FBXJoint>& joints);
|
AnimSkeleton(const std::vector<FBXJoint>& joints);
|
||||||
int nameToJointIndex(const QString& jointName) const;
|
int nameToJointIndex(const QString& jointName) const;
|
||||||
const QString& getJointName(int jointIndex) const;
|
const QString& getJointName(int jointIndex) const;
|
||||||
size_t getNumJoints() const;
|
int getNumJoints() const;
|
||||||
|
|
||||||
// absolute pose, not relative to parent
|
// absolute pose, not relative to parent
|
||||||
const AnimPose& getAbsoluteBindPose(int jointIndex) const;
|
const AnimPose& getAbsoluteBindPose(int jointIndex) const;
|
||||||
|
|
|
@ -233,8 +233,8 @@ bool Rig::jointStatesEmpty() {
|
||||||
return _internalPoseSet._relativePoses.empty();
|
return _internalPoseSet._relativePoses.empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t Rig::getJointStateCount() const {
|
int Rig::getJointStateCount() const {
|
||||||
return _internalPoseSet._relativePoses.size();
|
return (int)_internalPoseSet._relativePoses.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
int Rig::indexOfJoint(const QString& jointName) const {
|
int Rig::indexOfJoint(const QString& jointName) const {
|
||||||
|
|
|
@ -89,7 +89,7 @@ public:
|
||||||
void initJointStates(const FBXGeometry& geometry, const glm::mat4& modelOffset);
|
void initJointStates(const FBXGeometry& geometry, const glm::mat4& modelOffset);
|
||||||
void reset(const FBXGeometry& geometry);
|
void reset(const FBXGeometry& geometry);
|
||||||
bool jointStatesEmpty();
|
bool jointStatesEmpty();
|
||||||
size_t getJointStateCount() const;
|
int getJointStateCount() const;
|
||||||
int indexOfJoint(const QString& jointName) const;
|
int indexOfJoint(const QString& jointName) const;
|
||||||
|
|
||||||
void setModelOffset(const glm::mat4& modelOffsetMat);
|
void setModelOffset(const glm::mat4& modelOffsetMat);
|
||||||
|
|
Loading…
Reference in a new issue