mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 21:56:22 +00:00
Core/Misc: update g3dlite lib (#2904)
* Core/Misc: update g3dlite lib * update Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
This commit is contained in:
6
deps/g3dlite/source/SplineBase.cpp
vendored
6
deps/g3dlite/source/SplineBase.cpp
vendored
@@ -4,7 +4,7 @@
|
||||
namespace G3D {
|
||||
|
||||
float SplineBase::getFinalInterval() const {
|
||||
if (! cyclic) {
|
||||
if (extrapolationMode != SplineExtrapolationMode::CYCLIC) {
|
||||
return 0;
|
||||
} else if (finalInterval <= 0) {
|
||||
int N = time.size();
|
||||
@@ -97,7 +97,7 @@ void SplineBase::computeIndex(float s, int& i, float& u) const {
|
||||
// No control points to work with
|
||||
i = 0;
|
||||
u = 0.0;
|
||||
} else if (cyclic) {
|
||||
} else if (extrapolationMode == SplineExtrapolationMode::CYCLIC) {
|
||||
float fi = getFinalInterval();
|
||||
|
||||
// Cyclic spline
|
||||
@@ -156,7 +156,7 @@ void SplineBase::computeIndex(float s, int& i, float& u) const {
|
||||
computeIndexInBounds(s, i, u);
|
||||
|
||||
} // if in bounds
|
||||
} // if cyclic
|
||||
} // extrapolation Mode
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user