From 6ac6b8e2996e5982ce945a8e5e4ca82dadab85c2 Mon Sep 17 00:00:00 2001 From: Martijn Berger Date: Fri, 17 Jul 2015 17:01:33 +0200 Subject: [PATCH] Fix texture problem with ST / STQ coordinates --- sketchup.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sketchup.pyx b/sketchup.pyx index c7f8a1a..0e606bf 100644 --- a/sketchup.pyx +++ b/sketchup.pyx @@ -514,7 +514,7 @@ cdef class Face: for i in range(got_vertex_count): vertices_list.append((m(vertices[i].x), m(vertices[i].y), m(vertices[i].z))) for i in range(got_stq_count): - uv_list.append((stq[i].x, stq[i].y)) + uv_list.append((stq[i].x / stq[i].z, stq[i].y / stq[i].z)) triangles_list = [] for ii in range(index_count / 3): i = ii * 3