Skip to content

Commit b5e8791

Browse files
fix issue when using in conjunction with splashsurf on mac
1 parent d04a0ee commit b5e8791

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bseq/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ def load_meshio_from_path(fileseq, filepath, obj = None):
6767
try:
6868
meshio_mesh = meshio.read(filepath)
6969
if obj is not None:
70-
obj.BSEQ.current_file = filepath
70+
try:
71+
obj.BSEQ.current_file = filepath
72+
except AttributeError:
73+
pass
7174
except Exception as e:
7275
show_message_box("Error when reading: " + filepath + ",\n" + traceback.format_exc(),
7376
"Meshio Loading Error" + str(e),

0 commit comments

Comments
 (0)