[Bf-blender-cvs] [5ea729845d8] master: Fix T53048: OSL Volume is broken in Blender 2.79

Sergey Sharybin noreply at git.blender.org
Wed Oct 11 12:22:58 CEST 2017


Commit: 5ea729845d8b11ecd0d1f200fc7b23e6461b97bb
Author: Sergey Sharybin
Date:   Wed Oct 11 15:21:26 2017 +0500
Branches: master
https://developer.blender.org/rB5ea729845d8b11ecd0d1f200fc7b23e6461b97bb

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.

===================================================================

M	intern/cycles/render/nodes.h

===================================================================

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;



More information about the Bf-blender-cvs mailing list