restore state on selected gp
parent
85a42939ca
commit
2f8efed73b
|
@ -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']:
|
||||
|
|
Loading…
Reference in New Issue