restore state on selected gp

main
christophe.seux 2024-09-09 11:06:02 +02:00
parent 85a42939ca
commit 2f8efed73b
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ class GPEXP_OT_restore_layers_state(bpy.types.Operator):
layers_info = json.loads(layers_info_path.read_text(encoding='utf-8'))
pool = [o for o in context.scene.objects if o.type == 'GPENCIL' and fn.is_valid_name(o.name)]
pool = [o for o in context.selected_objects if o.type == 'GPENCIL']
for gp in pool:
for layer_name, info in layers_info.items():
if gp.name == info['object']: