little fix in custom passepartout
1.4.1 - fix: custom passepartout size limit when dezooming in cameragpv2
parent
d8f71e3356
commit
f10f572bdc
|
@ -1,6 +1,10 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
|
||||||
|
1.4.1
|
||||||
|
|
||||||
|
- fix: custom passepartout size limit when dezooming in camera
|
||||||
|
|
||||||
1.4.0
|
1.4.0
|
||||||
|
|
||||||
- feat: Passepartout displayed in main cam (permanent draw handler)
|
- feat: Passepartout displayed in main cam (permanent draw handler)
|
||||||
|
|
|
@ -121,7 +121,7 @@ class GPTB_PT_sidebar_panel(bpy.types.Panel):
|
||||||
|
|
||||||
## Straight line ops from official greasepencil_tools addon if enabled.
|
## 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 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")
|
layout.operator('gp.straight_stroke', icon ="CURVE_PATH")
|
||||||
|
|
||||||
## Options
|
## Options
|
||||||
|
|
|
@ -15,7 +15,7 @@ bl_info = {
|
||||||
"name": "GP toolbox",
|
"name": "GP toolbox",
|
||||||
"description": "Set of tools for Grease Pencil in animation production",
|
"description": "Set of tools for Grease Pencil in animation production",
|
||||||
"author": "Samuel Bernou",
|
"author": "Samuel Bernou",
|
||||||
"version": (1, 4, 0),
|
"version": (1, 4, 1),
|
||||||
"blender": (2, 91, 0),
|
"blender": (2, 91, 0),
|
||||||
"location": "Sidebar (N menu) > Gpencil > Toolbox / Gpencil properties",
|
"location": "Sidebar (N menu) > Gpencil > Toolbox / Gpencil properties",
|
||||||
"warning": "",
|
"warning": "",
|
||||||
|
|
|
@ -63,7 +63,7 @@ def draw_cam_frame_callback_2d():
|
||||||
c = frame_point[2]
|
c = frame_point[2]
|
||||||
d = frame_point[3]
|
d = frame_point[3]
|
||||||
|
|
||||||
ext = 1000
|
ext = 10000
|
||||||
rup = extrapolate_points_by_length(b,a, ext)
|
rup = extrapolate_points_by_length(b,a, ext)
|
||||||
rdn = extrapolate_points_by_length(a,b, ext)
|
rdn = extrapolate_points_by_length(a,b, ext)
|
||||||
rupext = rup + ((a-d).normalized() * ext)
|
rupext = rup + ((a-d).normalized() * ext)
|
||||||
|
|
Loading…
Reference in New Issue