Asset Pipeline v2 #145
@ -209,6 +209,8 @@ class ASSETPIPE_OT_sync_with_publish(bpy.types.Operator):
|
||||
)
|
||||
|
||||
if error_msg:
|
||||
bpy.ops.wm.open_mainfile(filepath=temp_file.__str__())
|
||||
bpy.ops.wm.save_as_mainfile(filepath=current_file.__str__())
|
||||
self.report({'ERROR'}, error_msg)
|
||||
return {'CANCELLED'}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user