@@ -108,7 +108,7 @@ pace.camera_roll_drag_bind = CreateClientConVar("pac_editor_camera_roll_bind", "
108
108
pace .roll_snapping = CreateClientConVar (" pac_camera_roll_snap" , " 0" , true )
109
109
110
110
pace .camera_orthographic_cvar = CreateClientConVar (" pac_camera_orthographic" , " 0" , true )
111
- pace .camera_orthographic = false
111
+ pace .camera_orthographic = pace . camera_orthographic_cvar : GetBool ()
112
112
pace .viewlock_mode = " "
113
113
114
114
function pace .OrthographicView (b )
@@ -502,6 +502,7 @@ pace.view_reversed = 1
502
502
pace .viewlock_distance = 75
503
503
504
504
function pace .CalcView (ply , pos , ang , fov )
505
+ if not pace .IsActive () then pace .EnableView (false ) return end
505
506
if pace .editing_viewmodel or pace .editing_hands then
506
507
pace .ViewPos = pos
507
508
pace .ViewAngles = ang
@@ -658,8 +659,7 @@ function pace.CalcView(ply, pos, ang, fov)
658
659
pace .ViewAngles_postRoll :RotateAroundAxis (pace .ViewAngles :Forward (), pace .view_roll )
659
660
viewang_final = pace .ViewAngles_postRoll
660
661
end
661
-
662
- local orthoborder = pace .Editor .zoomslider :GetValue () / 1000
662
+
663
663
if not pace .camera_orthographic then
664
664
return
665
665
{
@@ -668,6 +668,7 @@ function pace.CalcView(ply, pos, ang, fov)
668
668
fov = pace .ViewFOV
669
669
}
670
670
else
671
+ local orthoborder = pace .Editor .zoomslider :GetValue () / 1000
671
672
return
672
673
{
673
674
origin = pace .ViewPos ,
0 commit comments