mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 20:13:40 +02:00
AnimTests: now compile and pass again.
This commit is contained in:
parent
9b9bd7fe26
commit
8e7e94c501
1 changed files with 8 additions and 8 deletions
|
@ -30,8 +30,8 @@ void AnimTests::cleanupTestCase() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void AnimTests::testClipInternalState() {
|
void AnimTests::testClipInternalState() {
|
||||||
std::string id = "my anim clip";
|
QString id = "my anim clip";
|
||||||
std::string url = "https://hifi-public.s3.amazonaws.com/ozan/support/FightClubBotTest1/Animations/standard_idle.fbx";
|
QString url = "https://hifi-public.s3.amazonaws.com/ozan/support/FightClubBotTest1/Animations/standard_idle.fbx";
|
||||||
float startFrame = 2.0f;
|
float startFrame = 2.0f;
|
||||||
float endFrame = 20.0f;
|
float endFrame = 20.0f;
|
||||||
float timeScale = 1.1f;
|
float timeScale = 1.1f;
|
||||||
|
@ -55,8 +55,8 @@ static float framesToSec(float secs) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void AnimTests::testClipEvaulate() {
|
void AnimTests::testClipEvaulate() {
|
||||||
std::string id = "myClipNode";
|
QString id = "myClipNode";
|
||||||
std::string url = "https://hifi-public.s3.amazonaws.com/ozan/support/FightClubBotTest1/Animations/standard_idle.fbx";
|
QString url = "https://hifi-public.s3.amazonaws.com/ozan/support/FightClubBotTest1/Animations/standard_idle.fbx";
|
||||||
float startFrame = 2.0f;
|
float startFrame = 2.0f;
|
||||||
float endFrame = 22.0f;
|
float endFrame = 22.0f;
|
||||||
float timeScale = 1.0f;
|
float timeScale = 1.0f;
|
||||||
|
@ -90,8 +90,8 @@ void AnimTests::testClipEvaulate() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void AnimTests::testClipEvaulateWithVars() {
|
void AnimTests::testClipEvaulateWithVars() {
|
||||||
std::string id = "myClipNode";
|
QString id = "myClipNode";
|
||||||
std::string url = "https://hifi-public.s3.amazonaws.com/ozan/support/FightClubBotTest1/Animations/standard_idle.fbx";
|
QString url = "https://hifi-public.s3.amazonaws.com/ozan/support/FightClubBotTest1/Animations/standard_idle.fbx";
|
||||||
float startFrame = 2.0f;
|
float startFrame = 2.0f;
|
||||||
float endFrame = 22.0f;
|
float endFrame = 22.0f;
|
||||||
float timeScale = 1.0f;
|
float timeScale = 1.0f;
|
||||||
|
@ -126,9 +126,9 @@ void AnimTests::testClipEvaulateWithVars() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void AnimTests::testLoader() {
|
void AnimTests::testLoader() {
|
||||||
auto url = QUrl("https://gist.githubusercontent.com/hyperlogic/857129fe04567cbe670f/raw/8ba57a8f0a76f88b39a11f77f8d9df04af9cec95/test.json");
|
auto url = QUrl("https://gist.githubusercontent.com/hyperlogic/857129fe04567cbe670f/raw/0c54500f480fd7314a5aeb147c45a8a707edcc2e/test.json");
|
||||||
// NOTE: This will warn about missing "test01.fbx", "test02.fbx", etc. if the resource loading code doesn't handle relative pathnames!
|
// NOTE: This will warn about missing "test01.fbx", "test02.fbx", etc. if the resource loading code doesn't handle relative pathnames!
|
||||||
// However, the test will proceed.
|
// However, the test will proceed.
|
||||||
AnimNodeLoader loader(url);
|
AnimNodeLoader loader(url);
|
||||||
|
|
||||||
const int timeout = 1000;
|
const int timeout = 1000;
|
||||||
|
|
Loading…
Reference in a new issue