0
0
Fork 0
mirror of https://git.code.sf.net/p/quake/quakeforge synced 2025-03-22 18:31:27 +00:00

Ensure the texture scaling is never 0.

This commit is contained in:
Bill Currie 2012-09-09 17:12:45 +09:00
parent 73cdd66c52
commit 0c2818c038

View file

@ -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: