Fix T48671: Cycles crash with OSL nodes and bump after recent refactoring.

This commit is contained in:
Brecht Van Lommel
2016-06-18 12:30:59 +02:00
parent 7ac126e728
commit d67c07ea49
2 changed files with 10 additions and 4 deletions

View File

@@ -4991,6 +4991,13 @@ OSLNode::~OSLNode()
delete type;
}
ShaderNode *OSLNode::clone() const
{
OSLNode *node = new OSLNode(*this);
node->type = new NodeType(*type);
return node;
}
OSLNode* OSLNode::create(size_t num_inputs)
{
/* allocate space for the node itself and parameters, aligned to 16 bytes