EverNewJoy / VictoryPlugin

Rama's Victory BP Plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WidgetGetParentOfClass fails if immediate parent is UserWidget

rcywongaa opened this issue · comments

Steps to reproduce:
Create a UserWidget called MyWidget
Create another UserWidget called MyWidget2
Remove the default canvas panel from MyWidget2 and add MyWidget to it
Inside Graph of MyWidget2, use WidgetGetParentOfClass(MyWidget2, UserWidget)

Expected results: WidgetGetParentOfClass should return MyWidget
Actual results: WidgetGetParentOfClass returns null

Cause: On line 5109, ChildWidget->GetParent() returns null since the parent is a UserWidget hence the loop on line 5113 is never entered hence never using GetOuter() to reach MyWidget

Suggested fix has been submited with pull request can be found at #10

commented

author fixed this in recent pull request far as I know <3 Rama