Skip to content

Commit

Permalink
Fixed issue #125
Browse files Browse the repository at this point in the history
  • Loading branch information
Shikyo Kira committed Jan 11, 2020
1 parent aa04180 commit 11c4535
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions add animation/nodejoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1316,24 +1316,6 @@ void processing2(string& line, string format, string filename, int& nextFunction
}
}

pos = change.find("{main_anim_event}", 0);

if (pos != NOT_FOUND)
{
change.replace(pos, 17, subFunctionIDs->grouplist[groupMulti]->singlelist[animMulti]->format["main_anim_event"]);
isChange = true;
}
else
{
pos = change.find("main_anim_event", 0);

if (pos != NOT_FOUND)
{
change.replace(pos, 15, subFunctionIDs->grouplist[groupMulti]->singlelist[animMulti]->format["main_anim_event"]);
isChange = true;
}
}

if (error) throw nemesis::exception();
}

Expand Down Expand Up @@ -1390,6 +1372,24 @@ void processing2(string& line, string format, string filename, int& nextFunction
string tempchange = change;
pos = change.find("[");

pos = change.find("{main_anim_event}", 0);

if (pos != NOT_FOUND)
{
change.replace(pos, 17, subFunctionIDs->grouplist[groupMulti]->singlelist[animMulti]->format["main_anim_event"]);
isChange = true;
}
else
{
pos = change.find("main_anim_event", 0);

if (pos != NOT_FOUND)
{
change.replace(pos, 15, subFunctionIDs->grouplist[groupMulti]->singlelist[animMulti]->format["main_anim_event"]);
isChange = true;
}
}

if (pos != NOT_FOUND && change.find("]", pos) != NOT_FOUND)
{
formatGroupReplace(change, change, 0, filename, format, subFunctionIDs, groupAnimInfo, linecount, groupMulti, optionMulti, animMulti, multiOption, innerError);
Expand Down

0 comments on commit 11c4535

Please sign in to comment.