From f10f572bdcdb44f1c655a1d8831954c7f4e5d7a4 Mon Sep 17 00:00:00 2001 From: Pullusb Date: Sun, 6 Jun 2021 21:30:46 +0200 Subject: [PATCH] little fix in custom passepartout 1.4.1 - fix: custom passepartout size limit when dezooming in camera --- CHANGELOG.md | 4 ++++ UI_tools.py | 2 +- __init__.py | 2 +- handler_draw_cam.py | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c693f3d..bb30828 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/UI_tools.py b/UI_tools.py index f06ab16..2636773 100644 --- a/UI_tools.py +++ b/UI_tools.py @@ -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 diff --git a/__init__.py b/__init__.py index c30a766..b3ac276 100644 --- a/__init__.py +++ b/__init__.py @@ -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": "", diff --git a/handler_draw_cam.py b/handler_draw_cam.py index 6ff7ea0..1088c20 100644 --- a/handler_draw_cam.py +++ b/handler_draw_cam.py @@ -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)