feat: prevent updates in sclupt mode

This commit is contained in:
Swann 2021-06-11 16:42:23 +02:00
parent e9b4afb440
commit 699cf578e2
No known key found for this signature in database
GPG Key ID: E1D3641A7C43AACB
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

@ -1 +1 @@
Subproject commit dd15f6eae0d0eb71e09bc76e837848c70c5357c0 Subproject commit f0745647e08406e46074d555e12a612e95c87aa1