mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Ensure the texture scaling is never 0.
This commit is contained in:
parent
73cdd66c52
commit
0c2818c038
1 changed files with 4 additions and 0 deletions
|
@ -48,6 +48,10 @@ class Texinfo:
|
|||
scale = [0, 0]
|
||||
scale[0] = float(script.getToken())
|
||||
scale[1] = float(script.getToken())
|
||||
if not scale[0]:
|
||||
scale[0] = 1
|
||||
if not scale[1]:
|
||||
scale[1] = 1
|
||||
tx = cls(name, s_vec, t_vec, s_offs, t_offs, rotate, scale)
|
||||
for t in texdefs:
|
||||
if t == tx:
|
||||
|
|
Loading…
Reference in a new issue