TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ ValidateLink()

bool NodeEditorPin::ValidateLink ( NodeEditorLink link)

Definition at line 85 of file NodeEditor.cpp.

86{
87 if (link)
88 {
89 return false;
90 }
91
92 if (lnk->from->parent->id == lnk->to->parent->id)
93 {
94 return false;
95 }
96
97 if (lnk->from->type == lnk->to->type)
98 {
99 return false;
100 }
101
102 return parent->OnLink(this, lnk);
103}