Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--intern/cycles/kernel/osl/osl_services.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/intern/cycles/kernel/osl/osl_services.cpp b/intern/cycles/kernel/osl/osl_services.cpp
index 9ac8a3eec82..23c441e28ef 100644
--- a/intern/cycles/kernel/osl/osl_services.cpp
+++ b/intern/cycles/kernel/osl/osl_services.cpp
@@ -858,8 +858,10 @@ bool OSLRenderServices::texture(ustring filename,
OSLThreadData *tdata = kg->osl_tdata;
OIIO::TextureSystem::Perthread *texture_thread_info =
tdata->oiio_thread_info;
- OIIO::TextureSystem::TextureHandle *texture_handle =
- ts->get_texture_handle(filename, texture_thread_info);
+ OIIO::TextureSystem::TextureHandle *texture_handle = NULL;
+ if(filename[0] != '@') {
+ texture_handle = ts->get_texture_handle(filename, texture_thread_info);
+ }
return texture(filename,
texture_handle,
texture_thread_info,
@@ -887,8 +889,10 @@ bool OSLRenderServices::texture3d(ustring filename,
OSLThreadData *tdata = kg->osl_tdata;
OIIO::TextureSystem::Perthread *texture_thread_info =
tdata->oiio_thread_info;
- OIIO::TextureSystem::TextureHandle *texture_handle =
- ts->get_texture_handle(filename, texture_thread_info);
+ OIIO::TextureSystem::TextureHandle *texture_handle = NULL;
+ if(filename[0] != '@') {
+ texture_handle = ts->get_texture_handle(filename, texture_thread_info);
+ }
return texture3d(filename,
texture_handle,
texture_thread_info,