Skip to content

Commit 923bcca

Browse files
removed panic, now all example objects convert correctly.
1 parent 275728e commit 923bcca

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

gcode2obj/src/obj.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,7 @@ impl FromIterator<String> for Obj {
279279
obj_line_store.push(complete_line);
280280
} else {
281281
// Otherwise create a new entry in the lines_store.
282-
// obj.lines_store.insert(id, vec![complete_line]);
283-
panic!("failed to get line buffer for object id {id}");
282+
obj.lines_store.insert(id, vec![complete_line]);
284283
}
285284

286285
// The first entry in the new line buffer is current position.

0 commit comments

Comments
 (0)