Skip to content
Snippets Groups Projects
Commit 50bd9905 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Merge branch 'master' of https://git.alchemyviewer.org/alchemy/alchemy-next into master

parents 00e1701d 6f08ee11
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ default:
interruptible: true
variables:
AUTOBUILD_BUILD_ID: $CI_PIPELINE_ID
VIEWER_USE_CRASHPAD: "FALSE"
VIEWER_CRASHPAD_URL: $SENTRY_DSN
......@@ -176,7 +177,7 @@ build:release:windows64:
Authorization = "Basic $([System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes("$env:AUTOBUILD_HTTP_USER`:$env:AUTOBUILD_HTTP_PASS")))"; };
Verbose = $true; };
Push-Location .\build-linux-64\newview\Release\
Push-Location .\build-linux-64\newview\
$FileNameLnx64 = Get-ChildItem -Path . -Name -Include Alchemy_*.tar.bz2
Invoke-WebRequest @UploadParams -InFile .\$FileNameLnx64 -Uri "${UploadDestURL}/${FileNameLnx64}"
Pop-Location
......
......@@ -1741,6 +1741,12 @@ void ALAOEngine::parseNotecard(std::unique_ptr<char[]>&& buffer)
std::string stateName = line.substr(1, endTag - 1);
LLStringUtil::trim(stateName);
// Recognized but not currently implemented. Handled here to avoid misleading "state not found" notification.
if ("Standing mode 2" == stateName || "Standing Calm" == stateName)
{
continue;
}
ALAOSet::AOState* newState = mImportSet->getStateByName(stateName);
if (!newState)
{
......@@ -1770,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)
......@@ -1824,6 +1837,16 @@ void ALAOEngine::processImport(bool aFromTimer)
ALAOSet::AOState* state = mImportSet->getState(index);
if (!state->mAnimations.empty())
{
if (state->mCycleTime)
{
const std::string oldName = state->mName;
state->mName = llformat("%s%d",oldName + ":CT",state->mCycleTime);
}
if (state->mCycle)
{
const std::string oldName = state->mName;
state->mName = llformat("%s%s", oldName, ":CY");
}
allComplete = false;
LL_DEBUGS("AOEngine") << "state " << state->mName << " still has animations to link." << LL_ENDL;
......
......@@ -48,7 +48,7 @@ ALAOSet::ALAOSet(const LLUUID& inventoryID)
// ZHAO names first, alternate names following, separated by | characters
// keep number and order in sync with the enum in the declaration
static const std::array<std::string, AOSTATES_MAX> sStateNames {{
"Standing|Stand.1|Stand.2|Stand.3",
"Standing|Standing mode 1|Stand.1|Stand.2|Stand.3",
"Walking|Walk.N",
"Running",
"Sitting|Sit.N",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment