1 -- Function to reload bitmaps in a texture
\r
2 fn reload_material mat =
\r
4 if classof mat == Multimaterial then
\r
6 for submat = 1 to mat.count do
\r
8 reload_material mat[submat]
\r
11 else if classof mat == Standard then
\r
14 if mat.DiffuseMap != undefined then
\r
16 -- Is it a bitmaptex ?
\r
17 if classof mat.DiffuseMap == bitmapTex then
\r
19 NelReloadTexture mat.DiffuseMap
\r
25 -- For each material in the material editor
\r
26 for mate in meditMaterials do
\r
28 reload_material mate
\r
29 forceCompleteRedraw ()
\r