Skip to content

Commit 026178b

Browse files
committed
view roll fix
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
1 parent 5f50198 commit 026178b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lua/pac3/editor/client/parts.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3237,7 +3237,7 @@ function pace.AddQuickSetupsToPartMenu(menu, obj)
32373237
end)
32383238
end
32393239
end
3240-
3240+
32413241
return jig
32423242
end
32433243

@@ -4276,6 +4276,7 @@ function pace.addPartMenuComponent(menu, obj, option_name)
42764276
pace.viewlock = root_owner
42774277
end
42784278
if mode == "disable" then
4279+
pace.ViewAngles.r = 0
42794280
pace.viewlock = nil
42804281
return
42814282
end
@@ -4305,6 +4306,7 @@ function pace.addPartMenuComponent(menu, obj, option_name)
43054306
pace.viewlock = obj
43064307
end
43074308
if mode == "disable" then
4309+
pace.ViewAngles.r = 0
43084310
pace.viewlock = nil
43094311
return
43104312
end

0 commit comments

Comments
 (0)