mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +02:00
macosx warning fix
This commit is contained in:
parent
be7a9a2383
commit
78dd30f656
2 changed files with 3 additions and 2 deletions
|
@ -15,7 +15,7 @@ void IKTarget::setPose(const glm::quat& rotation, const glm::vec3& translation)
|
||||||
}
|
}
|
||||||
|
|
||||||
void IKTarget::setFlexCoefficients(size_t numFlexCoefficientsIn, const float* flexCoefficientsIn) {
|
void IKTarget::setFlexCoefficients(size_t numFlexCoefficientsIn, const float* flexCoefficientsIn) {
|
||||||
_numFlexCoefficients = std::min(numFlexCoefficientsIn, MAX_FLEX_COEFFICIENTS);
|
_numFlexCoefficients = std::min(numFlexCoefficientsIn, (size_t)MAX_FLEX_COEFFICIENTS);
|
||||||
for (size_t i = 0; i < _numFlexCoefficients; i++) {
|
for (size_t i = 0; i < _numFlexCoefficients; i++) {
|
||||||
_flexCoefficients[i] = flexCoefficientsIn[i];
|
_flexCoefficients[i] = flexCoefficientsIn[i];
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,8 @@ public:
|
||||||
void setWeight(float weight) { _weight = weight; }
|
void setWeight(float weight) { _weight = weight; }
|
||||||
float getWeight() const { return _weight; }
|
float getWeight() const { return _weight; }
|
||||||
|
|
||||||
static const size_t MAX_FLEX_COEFFICIENTS = 10;
|
enum FlexCoefficients { MAX_FLEX_COEFFICIENTS = 10 };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
AnimPose _pose;
|
AnimPose _pose;
|
||||||
int _index{-1};
|
int _index{-1};
|
||||||
|
|
Loading…
Reference in a new issue