Skip to content

Conversation

@moonbusstudio
Copy link

Fix a null reference in the editor, and fix a Tickable Subsystem ensure firing when exiting the editor.

Check validity of TargetScriptArray[0] before dereferencing it in FLGUICanvasCustomization::GetDrawcallInfo. Also check world.
Fix the following ensure firing when exiting the editor:

Ensure condition failed: !bInitialized [File:D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\Subsystems\WorldSubsystem.cpp] [Line: 115]
Tickable subsystem LGUIManagerWorldSubsystem None.LGUIPrefabManagerObject_0:LGUI_PreviewWorldForPrefabPackage_0.None was destroyed while still initialized! Check for missing Super call

Don't create the preview world for prefab package from calls to GetPreviewWorldForPrefabPackage that are just checking UWorld equality in order to skip the preview world.

Also don't create the FLGUIObjectCreateDeleteListener, since it has no purpose with ULGUIPrefabHelperObject::OnComponentCreateDelete disabled (not related to the ensure).

Also don't override ULGUIPrefabWorldSubsystem::Initialize and ULGUIPrefabWorldSubsystem::Deinitialize without calling Super (also not related to the ensure, but seems unwise).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant