fix send all gp ops

0.6.2

- fix: problem sending all visible GP
This commit is contained in:
Pullusb
2021-10-27 16:31:31 +02:00
parent 50c0b0b1a9
commit e64575b60f
4 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ class GPEXP_OT_add_objects_to_render(bpy.types.Operator):
# if not scn:
# self.report({'ERROR'}, 'Could not found default scene')
# return {"CANCELLED"}
export_gp_objects([o for o in scn.objects if o.type == 'GPENCIL' and not o.hide_get()], exclude_list=excludes, scene=scn)
export_gp_objects([o for o in context.scene.objects if o.type == 'GPENCIL' and not o.hide_get()], exclude_list=excludes, scene=scn)
return {"FINISHED"}