Fix cycles OSL volume render crash with multiple closures.
This commit is contained in:
parent
bb0a0315e2
commit
ca7060662d
|
@ -197,7 +197,7 @@ public:
|
|||
|
||||
CVolumeClosure(int scattering) : CClosurePrimitive(Volume),
|
||||
m_scattering_label(scattering), m_shaderdata_flag(0)
|
||||
{ memset(&sc, 0, sizeof(sc)); }
|
||||
{}
|
||||
~CVolumeClosure() { }
|
||||
|
||||
int scattering() const { return m_scattering_label; }
|
||||
|
|
Loading…
Reference in New Issue