Skip to content

Commit

Permalink
view roll fix
Browse files Browse the repository at this point in the history
when doing lock on, using a "frame of reference" mode, it overrides pace.ViewAngles roll, but exiting these modes didn't reset it, so reset it
  • Loading branch information
pingu7867 committed Feb 2, 2025
1 parent 5f50198 commit 026178b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/pac3/editor/client/parts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3237,7 +3237,7 @@ function pace.AddQuickSetupsToPartMenu(menu, obj)
end)
end
end

return jig
end

Expand Down Expand Up @@ -4276,6 +4276,7 @@ function pace.addPartMenuComponent(menu, obj, option_name)
pace.viewlock = root_owner
end
if mode == "disable" then
pace.ViewAngles.r = 0
pace.viewlock = nil
return
end
Expand Down Expand Up @@ -4305,6 +4306,7 @@ function pace.addPartMenuComponent(menu, obj, option_name)
pace.viewlock = obj
end
if mode == "disable" then
pace.ViewAngles.r = 0
pace.viewlock = nil
return
end
Expand Down

0 comments on commit 026178b

Please sign in to comment.