From 810256f5cb63ed1df5f2172a0c37c8056c0987a7 Mon Sep 17 00:00:00 2001 From: pullusb Date: Thu, 22 Feb 2024 11:09:26 +0100 Subject: [PATCH] fix crash after empty frame creation 3.0.1 - fixed: Crash when drawing directly after generating empty frames --- CHANGELOG.md | 4 ++++ GP_guided_colorize/OP_create_empty_frames.py | 1 + __init__.py | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f1d5509..27120ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/GP_guided_colorize/OP_create_empty_frames.py b/GP_guided_colorize/OP_create_empty_frames.py index b8529e4..79aa9b8 100644 --- a/GP_guided_colorize/OP_create_empty_frames.py +++ b/GP_guided_colorize/OP_create_empty_frames.py @@ -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: diff --git a/__init__.py b/__init__.py index 97268fa..3dc2017 100755 --- a/__init__.py +++ b/__init__.py @@ -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": "",