mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-23 19:01:06 +00:00
Fix the incorrectly rotated textures.
map uses degrees, blender uses radians. oops.
This commit is contained in:
parent
7feec96b8d
commit
af37ae438e
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
# vim:ts=4:et
|
||||
|
||||
from mathutils import Vector, Quaternion
|
||||
from math import pi
|
||||
|
||||
from .script import Script
|
||||
|
||||
|
@ -16,7 +17,7 @@ class Texinfo:
|
|||
def __init__(self, name, s_vec, t_vec, s_offs, t_offs, rotate, scale):
|
||||
self.name = name
|
||||
norm = s_vec.cross(t_vec)
|
||||
q = Quaternion(norm, rotate)
|
||||
q = Quaternion(norm, rotate * pi / 180)
|
||||
self.vecs = [None] * 2
|
||||
self.vecs[0] = (q * s_vec / scale[0], s_offs)
|
||||
self.vecs[1] = (q * t_vec / scale[1], t_offs)
|
||||
|
|
Loading…
Reference in a new issue