# FAdvancedPreviewScene profile load bug? 

**URL:** <https://forums.unrealengine.com/t/fadvancedpreviewscene-profile-load-bug/2723270>\
**Category:** Pipeline & Plugins\
**Tags:** Epic-Pro-Support, unreal-engine, question\
**Created:** [April 11, 2026, 5:54am UTC](https://forums.unrealengine.com/t/fadvancedpreviewscene-profile-load-bug/2723270 "2026-04-11T05:54:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [April 11, 2026, 5:54am UTC](https://forums.unrealengine.com/t/fadvancedpreviewscene-profile-load-bug/2723270/1 "2026-04-11T05:54:21Z")

</div>

I’m seeing an issue reloading the preview scene profile for a custom subclass of FAdvancedPreviewScene and I noticed a suspicious line in its constructor (line 37 of AdvancedPreviewScene.cpp):

```auto
CurrentProfileIndex = DefaultSettings->Profiles.IsValidIndex(CurrentProfileIndex) ? GetDefault<UEditorPerProjectUserSettings>()->AssetViewerProfileIndex : 0;

```

CurrentProfile is not initialized before this line, so it seems to me that this is effectively testing a garbage value in the call to IsValidIndex. It seems like the intent here is to assign CurrentProfileIndex to `GetDefault\<UEditorPerProjectUserSettings\>()-\>AssetViewerProfileIndex` and _then_ test if that saved index is valid, falling back to 0 if not. Am I missing something?

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [April 16, 2026, 5:51pm UTC](https://forums.unrealengine.com/t/fadvancedpreviewscene-profile-load-bug/2723270/2 "2026-04-16T17:51:22Z")

</div>

Looks like this has actually been fixed already on y’all’s main branch. Nice!

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![Yohann](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yohann](https://forums.unrealengine.com/u/Yohann)\
**Post date:** [April 20, 2026, 6:05pm UTC](https://forums.unrealengine.com/t/fadvancedpreviewscene-profile-load-bug/2723270/3 "2026-04-20T18:05:15Z")

</div>

Hello,

Yes, it’s part of this change: [https://github.com/EpicGames/UnrealEngine/commit/04b96898982ef8330074daf6c5d9f2226fc0db0b](https://github.com/EpicGames/UnrealEngine/commit/04b96898982ef8330074daf6c5d9f2226fc0db0b)

Thanks for reporting it!

[Attachment Removed]
