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:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-10-11 13:21:26 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-10-11 13:22:40 +0300
commit5ea729845d8b11ecd0d1f200fc7b23e6461b97bb (patch)
treea06c1c8debfb1c445d3dceb9e502ec1ac8569844 /intern/cycles/render
parent4fce3c7ac079923fb6d124e5c89590e0611b07b5 (diff)
Fix T53048: OSL Volume is broken in Blender 2.79
Was a mistake in optimization commit which was disconnecting closures and nodes which does not make sense for volume output. OSL script we can't ignore and can't currently know in advance if it's a proper volume shader or not. So we never disconnect OSL nodes from volume output. This is a good candidate for corrective release.
Diffstat (limited to 'intern/cycles/render')
-rw-r--r--intern/cycles/render/nodes.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/cycles/render/nodes.h b/intern/cycles/render/nodes.h
index ec4c7c7c50d..4ec485d521b 100644
--- a/intern/cycles/render/nodes.h
+++ b/intern/cycles/render/nodes.h
@@ -982,6 +982,8 @@ public:
/* ideally we could beter detect this, but we can't query this now */
bool has_spatial_varying() { return true; }
+ bool has_volume_support() { return true; }
+
virtual bool equals(const ShaderNode& /*other*/) { return false; }
string filepath;