fix: crash on object dumping

This commit is contained in:
Swann Martinez
2019-05-10 10:17:52 +02:00
parent 035afa7eb5
commit ec9ff2f97b
2 changed files with 6 additions and 9 deletions

View File

@ -560,11 +560,11 @@ def depsgraph_update(scene):
if update.id.id == username or update.id.id == 'Common' or update.id.id == 'None':
# TODO: handle errors
data_ref = get_datablock(update,context)
logger.info(update.id.name)
if data_ref:
data_ref.is_dirty= True
elif update.id.id != username:
history.put("undo")
# elif update.id.id != username:
# history.put("undo")
def register():