feat: experimental edit mode update

Related to #107
This commit is contained in:
Swann
2020-09-08 22:37:58 +02:00
parent f5232ccea0
commit 79ccac915f
6 changed files with 45 additions and 26 deletions

View File

@ -631,7 +631,7 @@ def depsgraph_evaluation(scene):
context = bpy.context
blender_depsgraph = bpy.context.view_layer.depsgraph
dependency_updates = [u for u in blender_depsgraph.updates]
session_infos = utils.get_preferences()
settings = utils.get_preferences()
# NOTE: maybe we don't need to check each update but only the first
@ -647,7 +647,8 @@ def depsgraph_evaluation(scene):
# - if its to someone else, ignore the update (go deeper ?)
if node and node.owner in [client.id, RP_COMMON] and node.state == UP:
# Avoid slow geometry update
if 'EDIT' in context.mode:
if 'EDIT' in context.mode and \
not settings.enable_editmode_updates:
break
client.stash(node.uuid)