little fix in custom passepartout

1.4.1

- fix: custom passepartout size limit when dezooming in camera
gpv2
Pullusb 2021-06-06 21:30:46 +02:00
parent d8f71e3356
commit f10f572bdc
4 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,10 @@
# Changelog
1.4.1
- fix: custom passepartout size limit when dezooming in camera
1.4.0
- feat: Passepartout displayed in main cam (permanent draw handler)

View File

@ -121,7 +121,7 @@ class GPTB_PT_sidebar_panel(bpy.types.Panel):
## Straight line ops from official greasepencil_tools addon if enabled.
# if any(x in context.preferences.addons.keys() for x in ('greasepencil_tools', 'greasepencil-addon')): # check enabled addons
if hasattr(bpy.types, bpy.ops.gp.straight_stroke.idname()): # check if operator exists
if hasattr(bpy.types, 'GP_OT_straight_stroke'): # check if operator exists : bpy.ops.gp.straight_stroke.idname()
layout.operator('gp.straight_stroke', icon ="CURVE_PATH")
## Options

View File

@ -15,7 +15,7 @@ bl_info = {
"name": "GP toolbox",
"description": "Set of tools for Grease Pencil in animation production",
"author": "Samuel Bernou",
"version": (1, 4, 0),
"version": (1, 4, 1),
"blender": (2, 91, 0),
"location": "Sidebar (N menu) > Gpencil > Toolbox / Gpencil properties",
"warning": "",

View File

@ -63,7 +63,7 @@ def draw_cam_frame_callback_2d():
c = frame_point[2]
d = frame_point[3]
ext = 1000
ext = 10000
rup = extrapolate_points_by_length(b,a, ext)
rdn = extrapolate_points_by_length(a,b, ext)
rupext = rup + ((a-d).normalized() * ext)