fix: grease pencil layer and material update

This commit is contained in:
Swann Martinez
2019-05-10 12:05:32 +02:00
parent ec9ff2f97b
commit 8a8dff3aa4
2 changed files with 26 additions and 13 deletions

View File

@ -560,8 +560,9 @@ 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:
logger.info(update.id.bl_rna.__class__.__name__)
data_ref.is_dirty= True
# elif update.id.id != username:
# history.put("undo")