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 selectedgpv2
parent
9d26ed4085
commit
dd68e74e2b
|
@ -1,5 +1,10 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
1.6.4
|
||||||
|
|
||||||
|
- fix: disable multi-selection for layer naming manager
|
||||||
|
- the dopesheet selection sometimes still consider layer as selected
|
||||||
|
|
||||||
1.6.3
|
1.6.3
|
||||||
|
|
||||||
<!-- - abort :: add checkbox to prevent from loading project environnement namespace -->
|
<!-- - abort :: add checkbox to prevent from loading project environnement namespace -->
|
||||||
|
|
|
@ -133,9 +133,14 @@ class GPTB_OT_layer_name_build(Operator):
|
||||||
self.report({'ERROR'}, 'no layer active')
|
self.report({'ERROR'}, 'no layer active')
|
||||||
return {"CANCELLED"}
|
return {"CANCELLED"}
|
||||||
|
|
||||||
for l in gpl:
|
layer_name_build(act, prefix=self.prefix, desc=self.desc, suffix=self.suffix)
|
||||||
if l.select or l == act:
|
|
||||||
layer_name_build(l, 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"}
|
return {"FINISHED"}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ bl_info = {
|
||||||
"name": "GP toolbox",
|
"name": "GP toolbox",
|
||||||
"description": "Set of tools for Grease Pencil in animation production",
|
"description": "Set of tools for Grease Pencil in animation production",
|
||||||
"author": "Samuel Bernou, Christophe Seux",
|
"author": "Samuel Bernou, Christophe Seux",
|
||||||
"version": (1, 6, 3),
|
"version": (1, 6, 4),
|
||||||
"blender": (2, 91, 0),
|
"blender": (2, 91, 0),
|
||||||
"location": "Sidebar (N menu) > Gpencil > Toolbox / Gpencil properties",
|
"location": "Sidebar (N menu) > Gpencil > Toolbox / Gpencil properties",
|
||||||
"warning": "",
|
"warning": "",
|
||||||
|
|
Loading…
Reference in New Issue