fpwong / BlueprintAssistWiki

47 stars 2 forks source link

”FBAUtils::GetBlueprintEditorForGraph“ function has some problem #142

Closed MossisPaul closed 1 year ago

MossisPaul commented 1 year ago

Hi,I found a question in "FBAUtils::GetBlueprintEditorForGraph" Function,because I can not use "convert get to set "and "generated getter and setter",now I fix the problem with a simple function,maybe you have a great Solution old code: { if (UBlueprint Blueprint = Cast(Graph->GetOuter())) { ...... } } new code: { UBlueprint Blueprint = nullptr; UObject* temp = Graph->GetOuter(); // while (Blueprint == nullptr) { Blueprint = Cast(temp); temp = temp->GetOuter(); } if (Blueprint) { ...... } }

fpwong commented 1 year ago

Hi @MossisPaul, thanks for letting me know about this bug and the solution.

I will add this in the next update 👍

fpwong commented 1 year ago

Added in 4.2.4