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
gpv2
Pullusb 2021-09-09 12:23:14 +02:00
parent 9d26ed4085
commit dd68e74e2b
3 changed files with 14 additions and 4 deletions

View File

@ -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
<!-- - abort :: add checkbox to prevent from loading project environnement namespace -->

View File

@ -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"}

View File

@ -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": "",