Fix T82428: Cycles crashes when building volume meshes
The Volume Node did not have all of the sockets from its Mesh base class which are now required due to the recent socket API change.
This commit is contained in:
@@ -36,11 +36,7 @@ CCL_NAMESPACE_BEGIN
|
|||||||
|
|
||||||
NODE_DEFINE(Volume)
|
NODE_DEFINE(Volume)
|
||||||
{
|
{
|
||||||
NodeType *type = NodeType::add("volume", create, NodeType::NONE, Geometry::node_base_type);
|
NodeType *type = NodeType::add("volume", create, NodeType::NONE, Mesh::node_type);
|
||||||
|
|
||||||
SOCKET_INT_ARRAY(triangles, "Triangles", array<int>());
|
|
||||||
SOCKET_POINT_ARRAY(verts, "Vertices", array<float3>());
|
|
||||||
SOCKET_INT_ARRAY(shader, "Shader", array<int>());
|
|
||||||
|
|
||||||
SOCKET_FLOAT(clipping, "Clipping", 0.001f);
|
SOCKET_FLOAT(clipping, "Clipping", 0.001f);
|
||||||
SOCKET_FLOAT(step_size, "Step Size", 0.0f);
|
SOCKET_FLOAT(step_size, "Step Size", 0.0f);
|
||||||
|
Reference in New Issue
Block a user