fix unskip pdf muted output

0.4.1

- fix: pdf output not skiiping muted nodes
main
Pullusb 2021-09-28 11:01:49 +02:00
parent 257fb557ac
commit 6e5cb51646
2 changed files with 10 additions and 4 deletions

View File

@ -219,6 +219,12 @@ class GPEXP_OT_export_as_pdf(bpy.types.Operator):
messages.append(mess) messages.append(mess)
continue continue
if fo_node.mute:
mess = f'Skip {vl_name}: output is muted {fo_node.name}'
print(mess)
messages.append(mess)
continue
# fo_socket.name isn't right # fo_socket.name isn't right
idx = [i for i in fo_node.inputs].index(fo_socket) idx = [i for i in fo_node.inputs].index(fo_socket)
@ -253,9 +259,9 @@ class GPEXP_OT_export_as_pdf(bpy.types.Operator):
# for oviz in obj_vis: # for oviz in obj_vis:
# oviz[0].hide_viewport = oviz[1] # oviz[0].hide_viewport = oviz[1]
print(f'Done ({time()-t0:.1f}s)')
self.report({'INFO'}, f'Done ({time()-t0:.1f}s)') # self.report({'INFO'}, f'Done ({time()-t0:.1f}s)')
fn.show_message_box(_message=messages, _title='PDF render report') fn.show_message_box(_message=messages, _title=f'PDF render report ({time()-t0:.1f}s)')
return {"FINISHED"} return {"FINISHED"}

View File

@ -2,7 +2,7 @@ bl_info = {
"name": "GP Render", "name": "GP Render",
"description": "Organise export of gp layers through compositor output", "description": "Organise export of gp layers through compositor output",
"author": "Samuel Bernou", "author": "Samuel Bernou",
"version": (0, 4, 0), "version": (0, 4, 1),
"blender": (2, 93, 0), "blender": (2, 93, 0),
"location": "View3D", "location": "View3D",
"warning": "", "warning": "",