1111from model_resolver .utils import (
1212 PackGetterV2 ,
1313 resolve_key ,
14+ log ,
1415)
1516from model_resolver .minecraft_model import (
1617 MinecraftModel ,
@@ -141,6 +142,7 @@ def load_textures(
141142 value = self .get_real_key (key , model .textures )
142143 if value is None :
143144 res [key ] = (Image .new ("RGBA" , (16 , 16 ), (0 , 0 , 0 , 0 )), "empty" )
145+ log .warning (f"Texture { key } not found in model" )
144146 elif isinstance (value , Image .Image ):
145147 res [key ] = (value , "dynamic" )
146148 elif isinstance (value , tuple ):
@@ -156,6 +158,8 @@ def load_textures(
156158 img = texture .image
157159 else :
158160 img = Image .new ("RGBA" , (16 , 16 ), (0 , 0 , 0 , 0 ))
161+ log .warning (f"Texture { key } not found at { path } " )
162+
159163 img = img .convert ("RGBA" )
160164 textures .append ((img , tint ))
161165 res [key ] = (tuple (textures ), key )
@@ -169,6 +173,7 @@ def load_textures(
169173 img = texture .image
170174 else :
171175 img = Image .new ("RGBA" , (16 , 16 ), (0 , 0 , 0 , 0 ))
176+ log .warning (f"Texture { key } not found at { path } " )
172177 img = img .convert ("RGBA" )
173178 res [key ] = (img , path )
174179 return res
0 commit comments