diff --git a/CHANGELOG.md b/CHANGELOG.md index b4a8f26..857e28d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,10 @@ Activate / deactivate layer opaticty according to prefix Activate / deactivate all masks using MA layers --> +0.9.6 + +- added: `Check layers` disable multiframe-edit in all gp data. Seemed to cause artifacts on some renders (tested on 2.93.5) + 0.9.5 - added: `check for problems` button also propose to run GP toolbox's file checker (if addon is enabled) to perform generic file checks diff --git a/OP_setup_layers.py b/OP_setup_layers.py index 4eb24ac..815b754 100644 --- a/OP_setup_layers.py +++ b/OP_setup_layers.py @@ -294,6 +294,18 @@ class GPEXP_OT_layers_state(bpy.types.Operator): if changes: changes.append('') + ## disable multiframe editing on all GP (can cause artifacts on render) + gp_mu_edit_ct = 0 + for gp in bpy.data.grease_pencils: + if gp.use_multiedit: + print(f'Disabling multi-edit on GP {gp.name}') + gp.use_multiedit = False + gp_mu_edit_ct += 1 + + if gp_mu_edit_ct: + changes.append(f'{gp_mu_edit_ct} multiframe-edit mode disabled') + + fn.show_message_box(_message=changes, _title="Layers Check Report", _icon='INFO') # render = bpy.data.scenes.get('Render') diff --git a/__init__.py b/__init__.py index 4b10822..19086bb 100644 --- a/__init__.py +++ b/__init__.py @@ -2,7 +2,7 @@ bl_info = { "name": "GP Render", "description": "Organise export of gp layers through compositor output", "author": "Samuel Bernou", - "version": (0, 9, 5), + "version": (0, 9, 6), "blender": (2, 93, 0), "location": "View3D", "warning": "",