Skip to content

Commit b721b36

Browse files
authored
Merge pull request #1422 from rsm-gh/master
Fix return type when as_compound = False and there is a single shape
2 parents 56be9cd + 9ae0aea commit b721b36

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Extend/DataExchange.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@ def read_step_file(
122122
raise AssertionError("No shape to transfer.")
123123

124124
if nb_shapes == 1:
125-
return step_reader.Shape(1)
125+
if as_compound:
126+
return step_reader.Shape(1)
127+
128+
return [step_reader.Shape(1)]
126129

127130
shapes = []
128131
for i in range(1, nb_shapes + 1):

0 commit comments

Comments
 (0)