mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 16:55:07 +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) {
|
||||
_numFlexCoefficients = std::min(numFlexCoefficientsIn, MAX_FLEX_COEFFICIENTS);
|
||||
_numFlexCoefficients = std::min(numFlexCoefficientsIn, (size_t)MAX_FLEX_COEFFICIENTS);
|
||||
for (size_t i = 0; i < _numFlexCoefficients; i++) {
|
||||
_flexCoefficients[i] = flexCoefficientsIn[i];
|
||||
}
|
||||
|
|
|
@ -41,7 +41,8 @@ public:
|
|||
void setWeight(float weight) { _weight = weight; }
|
||||
float getWeight() const { return _weight; }
|
||||
|
||||
static const size_t MAX_FLEX_COEFFICIENTS = 10;
|
||||
enum FlexCoefficients { MAX_FLEX_COEFFICIENTS = 10 };
|
||||
|
||||
private:
|
||||
AnimPose _pose;
|
||||
int _index{-1};
|
||||
|
|
Loading…
Reference in a new issue