void UEdGraphNode::PostLoad() { Super::PostLoad(); // Create Guid if not present (and not CDO) if(!NodeGuid.IsValid() && !IsTemplate() && GetLinker() && GetLinker()->IsPersistent() && GetLinker()->IsLoading()) { UE_LOG(LogBlueprint, Warning, TEXT("Node '%s' missing NodeGuid."), *GetPathName()); // Generate new one CreateNewGuid(); } // Duplicating a Blueprint needs to have a new Node Guid generated, which was not occuring before this version if(GetLinkerUE4Version() < VER_UE4_POST_DUPLICATE_NODE_GUID) { // Generate new one CreateNewGuid(); } // Moving to the new style comments requires conversion to preserve previous state if(GetLinkerUE4Version() < VER_UE4_GRAPH_INTERACTIVE_COMMENTBUBBLES) { bCommentBubbleVisible = !NodeComment.IsEmpty(); } }
void UMaterialGraphNode::PostDuplicate(bool bDuplicateForPIE) { Super::PostDuplicate(bDuplicateForPIE); if (!bDuplicateForPIE) { CreateNewGuid(); } }
void USoundCueGraphNode::PostDuplicate(bool bDuplicateForPIE) { Super::PostDuplicate(bDuplicateForPIE); if (!bDuplicateForPIE) { CreateNewGuid(); } }