Skip to content

Commit 15adb0d

Browse files
committed
Check object.mode instead of bpy.context.mode since it is always 'OBJECT' when rendering
1 parent 725f509 commit 15adb0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BlenderMalt/MaltMeshes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def load_mesh(object, name):
1919
from . import CBlenderMalt
2020

2121
m = object.data
22-
if object.type != 'MESH' or bpy.context.mode == 'EDIT_MESH':
22+
if object.type != 'MESH' or object.mode == 'EDIT':
2323
m = object.to_mesh()
2424

2525
if m is None or len(m.polygons) == 0:

0 commit comments

Comments
 (0)