From 01956ac587402b6dd7f54b0de3a4107434024264 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sun, 3 Jul 2016 19:42:53 +0200 Subject: [PATCH] Allow version 4 schematics (closes #1) --- mt2obj.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mt2obj.py b/mt2obj.py index 624b023..527b579 100755 --- a/mt2obj.py +++ b/mt2obj.py @@ -157,8 +157,8 @@ else: print("This file does not look like an MTS schematic..") exit(1) v = struct.unpack("!H", sch.read(2))[0] - if v != 3: - print("Wrong file version: got %d, expected %d" % (v, 3)) + if v != 4: + print("Wrong file version: got %d, expected %d" % (v, 4)) exit(1) width, height, depth = struct.unpack("!HHH", sch.read(6)) sch.seek(height, 1)