Просмотр исходного кода

Registered setUseNlerp() / getUseNlerp() to script.
Documentation update.

Lasse Öörni 15 лет назад
Родитель
Сommit
665790609c
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      Engine/Engine/RegisterRenderer.cpp

+ 2 - 0
Engine/Engine/RegisterRenderer.cpp

@@ -636,6 +636,7 @@ static void registerAnimatedModel(asIScriptEngine* engine)
     engine->RegisterObjectMethod("AnimationState", "void addWeight(float)", asMETHOD(AnimationState, addWeight), asCALL_THISCALL);
     engine->RegisterObjectMethod("AnimationState", "void addTime(float)", asMETHOD(AnimationState, addTime), asCALL_THISCALL);
     engine->RegisterObjectMethod("AnimationState", "void setPriority(int)", asMETHOD(AnimationState, setPriority), asCALL_THISCALL);
+    engine->RegisterObjectMethod("AnimationState", "void setUseNlerp(bool)", asMETHOD(AnimationState, setUseNlerp), asCALL_THISCALL);
     engine->RegisterObjectMethod("AnimationState", "Animation@+ getAnimation() const", asMETHOD(AnimationState, getAnimation), asCALL_THISCALL);
     engine->RegisterObjectMethod("AnimationState", "Bone@+ getStartBone() const", asMETHOD(AnimationState, getStartBone), asCALL_THISCALL);
     engine->RegisterObjectMethod("AnimationState", "bool isEnabled() const", asMETHOD(AnimationState, isEnabled), asCALL_THISCALL);
@@ -643,6 +644,7 @@ static void registerAnimatedModel(asIScriptEngine* engine)
     engine->RegisterObjectMethod("AnimationState", "float getWeight() const", asMETHOD(AnimationState, getWeight), asCALL_THISCALL);
     engine->RegisterObjectMethod("AnimationState", "float getTime() const", asMETHOD(AnimationState, getTime), asCALL_THISCALL);
     engine->RegisterObjectMethod("AnimationState", "int getPriority() const", asMETHOD(AnimationState, getPriority), asCALL_THISCALL);
+    engine->RegisterObjectMethod("AnimationState", "bool getUseNlerp() const", asMETHOD(AnimationState, getUseNlerp), asCALL_THISCALL);
     
     registerGeometryNode<AnimatedModel>(engine, "AnimatedModel");
     engine->RegisterObjectMethod("AnimatedModel", "bool setModel(Model@+)", asMETHOD(AnimatedModel, setModel), asCALL_THISCALL);