Fix #295 - Cope with broken texture references in mod/respack models
This commit is contained in:
parent
2adc7c3491
commit
b5d0553129
@ -339,9 +339,7 @@ cdef class BlockModels(object):
|
|||||||
|
|
||||||
textureVars = {}
|
textureVars = {}
|
||||||
for k, v in rawTextureVars.iteritems():
|
for k, v in rawTextureVars.iteritems():
|
||||||
if v is None:
|
while v is not None and v.startswith("#"):
|
||||||
continue
|
|
||||||
while v.startswith("#"):
|
|
||||||
v = rawTextureVars.get(v[1:])
|
v = rawTextureVars.get(v[1:])
|
||||||
if v:
|
if v:
|
||||||
textureVars[k] = v
|
textureVars[k] = v
|
||||||
|
Reference in New Issue
Block a user