JetBrains / UnrealLink

Apache License 2.0
128 stars 24 forks source link

[Bug/Crash] BluePrintProvider::OpenBlueprint is passing the wrong variable to BringKismetToFocusAttentionOnObject. #233

Closed MT-Dev closed 1 year ago

MT-Dev commented 1 year ago

In BluePrintProvider::OpenBlueprint the following code is passing the wrong variable to BringKismetToFocusAttentionOnObject.

if(Object != nullptr) { FKismetEditorUtilities::BringKismetToFocusAttentionOnObject(Blueprint); }

It should instead be the following.

if(Object != nullptr) { FKismetEditorUtilities::BringKismetToFocusAttentionOnObject(Object); }

Without this change, the Unreal Editor will crash when passed a reference to a UDataAsset instead of a UBlueprint.

DecoyRS commented 1 year ago

Whelp, I've fixed it and forgot to cherry pick the fix >< The next bugfix build of Rider (eg 2023.1.1) will have this fixed