Skip to content

Commit

Permalink
fix pac camera when closing editor
Browse files Browse the repository at this point in the history
  • Loading branch information
pingu7867 authored Dec 9, 2023
1 parent 12eaac7 commit e0b3c4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/pac3/editor/client/view.lua
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ function pace.EnableView(b)
pace.SetTPose(false)
end

if not enable_editor_view:GetBool() then
if not enable_editor_view:GetBool() or not pace.Editor:IsValid() then
local ply = LocalPlayer()
pac.RemoveHook("CalcView", "editor")
pac.AddHook("CalcView", "camera_part", function(ply, pos, ang, fov, nearz, farz)
Expand Down

0 comments on commit e0b3c4b

Please sign in to comment.