VRay has a habbit of making their paths be “” or undefined when not with anything in…
This bit needs adding into the General Sanity checks…
OR (vr.adv_irradmap_loadFileName == undefined)
fn CheckForVRayValidIMAPFile =
(
if renderers.current.classid as string == "#(1941615238, 2012806412)" then
(
vr = renderers.current
if vr.gi_on AND vr.adv_irradmap_mode == 2 then
(
if (vr.adv_irradmap_loadFileName == "") OR (vr.adv_irradmap_loadFileName == undefined) OR (not doesFileExist vr.adv_irradmap_loadFileName) then
(