From 5ea729845d8b11ecd0d1f200fc7b23e6461b97bb Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 11 Oct 2017 15:21:26 +0500 Subject: 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. --- intern/cycles/render/nodes.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'intern/cycles/render') 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; -- cgit v1.2.3