Manually clamp controller time (#7523)

qt6_macos
Alexei Kotov 1 year ago
parent 78459314bf
commit 04b714198a

@ -57,7 +57,13 @@ namespace NifOsg
} }
case Nif::NiTimeController::ExtrapolationMode::Constant: case Nif::NiTimeController::ExtrapolationMode::Constant:
default: default:
return std::clamp(time, mStartTime, mStopTime); {
if (time < mStartTime)
return mStartTime;
if (time > mStopTime)
return mStopTime;
return time;
}
} }
} }

Loading…
Cancel
Save