fix crash after empty frame creation

3.0.1

- fixed: Crash when drawing directly after generating empty frames
gpv2
pullusb 2024-02-22 11:09:26 +01:00
parent cf2ba8448a
commit 810256f5cb
3 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,9 @@
# Changelog
3.0.1
- fixed: Crash after generating empty frames
3.0.0
- Update for Blender 4.0 (Breaking release, removed bgl to use gpu)

View File

@ -166,6 +166,7 @@ class GP_OT_create_empty_frames(bpy.types.Operator):
gpl.active.frames.new(num, active=False)
fct += 1
gpl.update()
if fct:
self.report({'INFO'}, f"{fct} frame created on layer {gpl.active.info}")
else:

View File

@ -4,7 +4,7 @@ bl_info = {
"name": "GP toolbox",
"description": "Tool set for Grease Pencil in animation production",
"author": "Samuel Bernou, Christophe Seux",
"version": (3, 0, 0),
"version": (3, 0, 1),
"blender": (4, 0, 0),
"location": "Sidebar (N menu) > Gpencil > Toolbox / Gpencil properties",
"warning": "",