feat: skip update in sculpt mode by default

This commit is contained in:
Swann 2021-01-15 23:14:45 +01:00
parent c5e20085f0
commit a4ef8a6344
No known key found for this signature in database
GPG Key ID: E1D3641A7C43AACB

View File

@ -126,7 +126,7 @@ class BlMesh(BlDatablock):
def _dump_implementation(self, data, instance=None):
assert(instance)
if instance.is_editmode and not self.preferences.sync_flags.sync_during_editmode:
if (instance.is_editmode or bpy.context.mode == "SCULPT") and not self.preferences.sync_flags.sync_during_editmode:
raise ContextError("Mesh is in edit mode")
mesh = instance