From e33ebf8ec7cb0a3504dd59ac715c297b3619b726 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Wed, 1 Sep 2010 15:15:55 +0200 Subject: [PATCH] Changed: #964 Some more rules for batched max convert paths. --- .../3d/plugin_max/scripts/nel_assets_png_batched.ms | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/code/nel/tools/3d/plugin_max/scripts/nel_assets_png_batched.ms b/code/nel/tools/3d/plugin_max/scripts/nel_assets_png_batched.ms index df0de20b5..fa107376b 100644 --- a/code/nel/tools/3d/plugin_max/scripts/nel_assets_png_batched.ms +++ b/code/nel/tools/3d/plugin_max/scripts/nel_assets_png_batched.ms @@ -118,6 +118,19 @@ fn getFixedTexturePath t = return testDestination ) ) + if (not (doesFileExist absoluteDestination)) and ((findString t "\\sky_V2\\textures\\textures") != undefined) then + ( + testDestination = ("W:\\database\\sky_V2\\textures\\textures\\nodds\\" + (getFilenameFile (filenameFromPath t)) + ".png") + if (doesFileExist testDestination) then (return testDestination) + testDestination = ("W:\\database\\sky_V2\\textures\\textures\\desert\\" + (getFilenameFile (filenameFromPath t)) + ".png") + if (doesFileExist testDestination) then (return testDestination) + testDestination = ("W:\\database\\sky_V2\\textures\\textures\\forest\\" + (getFilenameFile (filenameFromPath t)) + ".png") + if (doesFileExist testDestination) then (return testDestination) + testDestination = ("W:\\database\\sky_V2\\textures\\textures\\jungle\\" + (getFilenameFile (filenameFromPath t)) + ".png") + if (doesFileExist testDestination) then (return testDestination) + testDestination = ("W:\\database\\sky_V2\\textures\\textures\\lacustre\\" + (getFilenameFile (filenameFromPath t)) + ".png") + if (doesFileExist testDestination) then (return testDestination) + ) return absoluteDestination )