TerraForge3D
2.3.1
3D Terrain And Landscape Generator
◆
OnLink()
bool SNENode::OnLink
(
NodeEditorPin
*
pin
,
NodeEditorLink
*
link
)
virtual
Reimplemented from
NodeEditorNode
.
Definition at line
65
of file
ShaderNodeEditor.cpp
.
66
{
67
SNEPin
*selfPin =
static_cast<
SNEPin
*
>
(pin);
68
SNEPin
*otherPin =
nullptr
;
69
70
if
(selfPin->type == NodeEditorPinType::Input)
71
{
72
otherPin =
static_cast<
SNEPin
*
>
(link->to);
73
}
74
75
else
76
{
77
otherPin =
static_cast<
SNEPin
*
>
(link->from);
78
}
79
80
return
(selfPin->GetType() == otherPin->GetType());
81
}
SNEPin
Definition:
ShaderNodeEditor.h:43
SNENode
Generated on Thu Apr 7 2022 14:10:54 for TerraForge3D by
1.9.3