Use blend_data.is_dirty, seems to be more reliable than is_saved

This commit is contained in:
Sybren A. Stüvel 2016-06-17 13:11:34 +02:00
parent 791b3f480c
commit ef822208c8

View File

@ -226,7 +226,7 @@ class BlenderCloudBrowser(async_loop.AsyncModalOperatorMixin, bpy.types.Operator
def invoke(self, context, event):
# Refuse to start if the file hasn't been saved.
if not context.blend_data.is_saved:
if context.blend_data.is_dirty:
self.report({'ERROR'}, 'Please save your Blend file before using '
'the Blender Cloud addon.')
return {'CANCELLED'}