FIRE-35931 Guard against empty "new feature" popup, plus comment out the bogus call with "gltf" param that was overwriting value 4 with 0

master
Dragon 2025-09-15 08:59:33 +02:00
parent 64adbe60af
commit 7879863c4f
2 changed files with 9 additions and 2 deletions

View File

@ -1122,10 +1122,10 @@ LLMaterialPtr FSPanelFace::createDefaultMaterial(LLMaterialPtr current_material)
void FSPanelFace::onVisibilityChange(bool new_visibility)
{
if (new_visibility)
/* if (new_visibility)
{
gAgent.showLatestFeatureNotification("gltf");
}
} */
LLPanel::onVisibilityChange(new_visibility);
// Since we allow both PBR and BP textures to be applied at the same time,

View File

@ -719,6 +719,13 @@ void LLAgent::showLatestFeatureNotification(const std::string key)
flag = 4;
}
// <FS:PP> FIRE-35931 Guard against empty "new feature" popup
if (flag == 0)
{
return;
}
// </FS:PP>
if ((flags & flag) == 0)
{
// Need to open on top even if called from onOpen,