branch | pyrit |
changeset 65 | 242839c6d27d |
parent 59 | 64e456ab823d |
child 69 | 303583d2fb97 |
64:5785cca4cdb9 | 65:242839c6d27d |
---|---|
40 def read_lwo(filename): |
40 def read_lwo(filename): |
41 points = [] |
41 points = [] |
42 faces = [] |
42 faces = [] |
43 tags = [] |
43 tags = [] |
44 surfaces = [] |
44 surfaces = [] |
45 f = file(filename) |
45 f = file(filename, 'rb') |
46 (ID,size) = read_chunk(f) |
46 (ID,size) = read_chunk(f) |
47 form = f.read(4) |
47 form = f.read(4) |
48 if (ID != 'FORM' or form != 'LWOB'): |
48 if (ID != 'FORM' or form != 'LWOB'): |
49 print 'not lwo file' |
49 print 'not lwo file' |
50 return |
50 return |