fixed lineanimation for arb

This commit is contained in:
Zeno Rogue 2020-01-15 18:19:59 +01:00
parent 19769feaaf
commit 7b3c835429
2 changed files with 7 additions and 4 deletions

View File

@ -205,11 +205,12 @@ EX namespace history {
on = true;
if(!quotient) try {
path_for_lineanimation = build_shortest_path(start, target);
if(!quotient && !arb::in()) try {
auto p = build_shortest_path(start, target);
path_for_lineanimation = p;
}
catch(hr_shortest_path_exception&) {
addMessage("Error: could not build a path");
addMessage("Could not build a path");
return;
}
@ -282,6 +283,8 @@ EX namespace history {
}
View = inverse(v[ph]->at);
if(arb::in() && v[ph]->base->master->emeraldval) View = Mirror * View;
hyperpoint now = v[ph]->at * C0;

View File

@ -197,7 +197,7 @@ EX namespace models {
}
if(centerover && !history::on)
if(isize(history::path_for_lineanimation) == 0 || (quotient && history::path_for_lineanimation.back() != centerover)) {
if(isize(history::path_for_lineanimation) == 0 || ((quotient || arb::in()) && history::path_for_lineanimation.back() != centerover)) {
history::path_for_lineanimation.push_back(centerover);
}