Cleanup: variable naming for texture/material SocketPropertyType
Copy-Pasting error in rB3025c348253a Maniphest Tasks: T88701 Differential Revision: https://developer.blender.org/D11755
This commit is contained in:
@@ -584,7 +584,7 @@ static const SocketPropertyType *get_socket_property_type(const bNodeSocket &bso
|
||||
return &collection_type;
|
||||
}
|
||||
case SOCK_TEXTURE: {
|
||||
static const SocketPropertyType collection_type = {
|
||||
static const SocketPropertyType texture_type = {
|
||||
[](const bNodeSocket &socket, const char *name) {
|
||||
bNodeSocketValueTexture *value = (bNodeSocketValueTexture *)socket.default_value;
|
||||
IDPropertyTemplate idprop = {0};
|
||||
@@ -602,10 +602,10 @@ static const SocketPropertyType *get_socket_property_type(const bNodeSocket &bso
|
||||
*(Tex **)r_value = texture;
|
||||
},
|
||||
};
|
||||
return &collection_type;
|
||||
return &texture_type;
|
||||
}
|
||||
case SOCK_MATERIAL: {
|
||||
static const SocketPropertyType collection_type = {
|
||||
static const SocketPropertyType material_type = {
|
||||
[](const bNodeSocket &socket, const char *name) {
|
||||
bNodeSocketValueMaterial *value = (bNodeSocketValueMaterial *)socket.default_value;
|
||||
IDPropertyTemplate idprop = {0};
|
||||
@@ -623,7 +623,7 @@ static const SocketPropertyType *get_socket_property_type(const bNodeSocket &bso
|
||||
*(Material **)r_value = material;
|
||||
},
|
||||
};
|
||||
return &collection_type;
|
||||
return &material_type;
|
||||
}
|
||||
default: {
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user