fixed an issue in optimizeview for crystal334

This commit is contained in:
Zeno Rogue committed 2019-10-12 13:14:38 +02:00
1 parent 8ebeb60bcb
commit 94857cad86
2 files changed
+17

No files matched your search

+14
View File
@@ -1459,6 +1459,20 @@ EX void optimizeview() {
ld best = INF;
transmatrix TB = Id;
if(WDIM == 3 && (cgflags & qIDEAL)) {
if(gmatrix.count(centerover.at)) {
ld last = hdist0(tC0(Viewbase));
transmatrix V = gmatrix[centerover.at];
ld next = hdist0(tC0(V));
if(next < last) {
View = View * inverse(Viewbase) * V;
fixmatrix(View);
viewctr.at = centerover.at->master;
viewctr.spin = 0;
}
}
}
if(false) ;