From dd68e74e2b55f95c60fb99757f087f79452d46f4 Mon Sep 17 00:00:00 2001 From: Pullusb Date: Thu, 9 Sep 2021 12:23:14 +0200 Subject: [PATCH] fix: disable multi-selection layer renaming 1.6.4 - fix: disable multi-selection for layer naming manager - the dopesheet selection sometimes still consider layer as selected --- CHANGELOG.md | 5 +++++ OP_layer_manager.py | 11 ++++++++--- __init__.py | 2 +- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e822d2f..239a0a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +1.6.4 + +- fix: disable multi-selection for layer naming manager + - the dopesheet selection sometimes still consider layer as selected + 1.6.3 diff --git a/OP_layer_manager.py b/OP_layer_manager.py index c023fc5..9438be2 100644 --- a/OP_layer_manager.py +++ b/OP_layer_manager.py @@ -133,9 +133,14 @@ class GPTB_OT_layer_name_build(Operator): self.report({'ERROR'}, 'no layer active') return {"CANCELLED"} - for l in gpl: - if l.select or l == act: - layer_name_build(l, prefix=self.prefix, desc=self.desc, suffix=self.suffix) + layer_name_build(act, prefix=self.prefix, desc=self.desc, suffix=self.suffix) + + ## Deactivate multi-selection on layer ! + ## somethimes it affect a random layer that is still considered selected + # for l in gpl: + # if l.select or l == act: + # layer_name_build(l, prefix=self.prefix, desc=self.desc, suffix=self.suffix) + return {"FINISHED"} diff --git a/__init__.py b/__init__.py index 7c27027..7e5033d 100755 --- 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, Christophe Seux", -"version": (1, 6, 3), +"version": (1, 6, 4), "blender": (2, 91, 0), "location": "Sidebar (N menu) > Gpencil > Toolbox / Gpencil properties", "warning": "",