Skip to content
Snippets Groups Projects

Viewer ao improvements

Merged Ghost User requested to merge viewer-ao into master
1 file
+ 19
0
Compare changes
  • Side-by-side
  • Inline
@@ -1776,6 +1776,13 @@ void ALAOEngine::parseNotecard(std::unique_ptr<char[]>&& buffer)
newState->mAnimations.push_back(animation);
isValid = true;
}
if ("Standing mode 1" == stateName)
{
newState->mCycle = true;
newState->mCycleTime = 30.0f;
newState->mDirty = true;
}
}
if (!isValid)
@@ -1830,6 +1837,18 @@ void ALAOEngine::processImport(bool aFromTimer)
ALAOSet::AOState* state = mImportSet->getState(index);
if (!state->mAnimations.empty())
{
if (state->mCycleTime)
{
const std::string oldName = state->mName;
std::string newName = llformat("%s%d",state->mName + ":CT",state->mCycleTime);
state->mName = newName;
}
if (state->mCycle)
{
const std::string oldName = state->mName;
std::string newName = state->mName + ":CY";
state->mName = newName;
}
allComplete = false;
LL_DEBUGS("AOEngine") << "state " << state->mName << " still has animations to link." << LL_ENDL;
Loading