Fix shift export

0.6.9

- fix: shift correction error
main
Pullusb 2021-11-17 15:15:44 +01:00
parent e3f97e7e61
commit 75a26fa4b6
3 changed files with 8 additions and 3 deletions

View File

@ -14,6 +14,11 @@ Activate / deactivate layer opaticty according to prefix
Activate / deactivate all masks using MA layers
-->
0.6.9
- fix: shift correction error
0.6.8
- feat: New multi-scene viewlayer inspection button

View File

@ -163,7 +163,7 @@ class GPEXP_OT_fix_overscan_shift(bpy.types.Operator):
if fn.has_keyframe(cam, 'shift_x'):
fcu = cam.animation_data.action.fcurves.find('shift_x')
for k in fcu.keyframe_points:
k.y = k.y * ratio_x
k.co.y = k.co.y * ratio_x
else:
if cam.shift_x != 1:
cam.shift_x = cam.shift_x * ratio_x
@ -172,7 +172,7 @@ class GPEXP_OT_fix_overscan_shift(bpy.types.Operator):
if fn.has_keyframe(cam, 'shift_y'):
fcu = cam.animation_data.action.fcurves.find('shift_y')
for k in fcu.keyframe_points:
k.y = k.y * ratio_y
k.co.y = k.co.y * ratio_y
else:
if cam.shift_y != 1:
cam.shift_y = cam.shift_y * ratio_y

View File

@ -2,7 +2,7 @@ bl_info = {
"name": "GP Render",
"description": "Organise export of gp layers through compositor output",
"author": "Samuel Bernou",
"version": (0, 6, 8),
"version": (0, 6, 9),
"blender": (2, 93, 0),
"location": "View3D",
"warning": "",