feat: prevent updates in sclupt mode

This commit is contained in:
Swann
2021-06-11 16:42:23 +02:00
parent e9b4afb440
commit 699cf578e2
2 changed files with 2 additions and 2 deletions

View File

@ -193,7 +193,7 @@ class BlMesh(ReplicatedDatablock):
@staticmethod @staticmethod
def needs_update(datablock: object, data: dict) -> bool: def needs_update(datablock: object, data: dict) -> bool:
return 'EDIT' not in bpy.context.mode \ return ('EDIT' not in bpy.context.mode and bpy.context.mode != 'SCULPT') \
or get_preferences().sync_flags.sync_during_editmode or get_preferences().sync_flags.sync_during_editmode
_type = bpy.types.Mesh _type = bpy.types.Mesh