Nodes: add boilerplate for texture and material sockets
The sockets are not exposed in any nodes yet. They work similar to the Object/Collection sockets, which also just reference a data block. This is part of D11222.
This commit is contained in:
@@ -1557,6 +1557,12 @@ void DepsgraphNodeBuilder::build_nodetree_socket(bNodeSocket *socket)
|
||||
else if (socket->type == SOCK_COLLECTION) {
|
||||
build_id((ID *)((bNodeSocketValueCollection *)socket->default_value)->value);
|
||||
}
|
||||
else if (socket->type == SOCK_TEXTURE) {
|
||||
build_id((ID *)((bNodeSocketValueTexture *)socket->default_value)->value);
|
||||
}
|
||||
else if (socket->type == SOCK_MATERIAL) {
|
||||
build_id((ID *)((bNodeSocketValueMaterial *)socket->default_value)->value);
|
||||
}
|
||||
}
|
||||
|
||||
void DepsgraphNodeBuilder::build_nodetree(bNodeTree *ntree)
|
||||
|
||||
Reference in New Issue
Block a user