From dc40928087e9b1183a6df2b38bb6a9a610e4ed13 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 7 Jul 2014 12:37:45 +0600 Subject: Cycles: Fix crash with environment maps and packed images --- intern/cycles/render/nodes.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'intern/cycles/render') diff --git a/intern/cycles/render/nodes.cpp b/intern/cycles/render/nodes.cpp index 251afe9a0a2..e8476bfac4c 100644 --- a/intern/cycles/render/nodes.cpp +++ b/intern/cycles/render/nodes.cpp @@ -488,6 +488,7 @@ void EnvironmentTextureNode::compile(OSLCompiler& compiler) /* See comments in ImageTextureNode::compile about support * of builtin images. */ + image_manager = compiler.image_manager; if(is_float == -1) { if(builtin_data == NULL) { is_float = (int)image_manager->is_float_image(filename, NULL, is_linear); -- cgit v1.2.3