local_perspective_used now known better

This commit is contained in:
Zeno Rogue 2023-02-05 10:31:58 +01:00
parent 6a1cb13c11
commit b89ba69fd9
2 changed files with 6 additions and 1 deletions

View File

@ -5063,8 +5063,12 @@ EX ld wall_radar(cell *c, transmatrix T, transmatrix LPe, ld max) {
/** if this is set to ON, just transform non-isotropic spaces according to View, and apply NLP to view */
EX bool nonisotropic_weird_transforms;
EX void make_actual_view() {
EX void decide_lpu() {
nisot::local_perspective_used = gproduct;
}
EX void make_actual_view() {
decide_lpu();
if(!nisot::local_perspective_used) NLP = Id;
sphereflip = Id;
sphere_flipped = flip_sphere();

View File

@ -2205,6 +2205,7 @@ void ballgeometry() {
EX void resetview() {
DEBBI(DF_GRAPH, ("reset view"));
// EUCLIDEAN
decide_lpu();
NLP = Id;
stretch::mstretch_matrix = Id;
auto& vo = get_view_orientation();