From 6ec17f90b2c3a5a113dc839c32e9200a17a8aa21 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Fri, 6 May 2016 16:34:12 -0400 Subject: fixed up model_c2rs so hide works --- model_c2rs.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'model_c2rs.py') diff --git a/model_c2rs.py b/model_c2rs.py index ee2e0df..bd0ba82 100755 --- a/model_c2rs.py +++ b/model_c2rs.py @@ -17,10 +17,11 @@ def main(): if line.count(",") != 6: continue nums = line.strip().split(",")[:-1] + nums = [n.find(".") != -1 and n or n+".0" for n in nums] #print(nums) assert(len(nums) == 6) - vertices.append(nums[:3]) - normals.append(nums[3:]) + normals.append(nums[:3]) + vertices.append(nums[3:]) infile.close() outfile.write(""" -- cgit v1.2.3