diff --git a/indra/newview/llfloaternewfeaturenotification.cpp b/indra/newview/llfloaternewfeaturenotification.cpp index 3a2035b9b91ce7ca00053da7743b1e4cf866a81d..1e5002496744298a6afdda57d09e95bf958886ae 100644 --- a/indra/newview/llfloaternewfeaturenotification.cpp +++ b/indra/newview/llfloaternewfeaturenotification.cpp @@ -50,6 +50,13 @@ BOOL LLFloaterNewFeatureNotification::postBuild() getChild<LLUICtrl>(title_txt)->setValue(getString(title_txt + feature)); getChild<LLUICtrl>(dsc_txt)->setValue(getString(dsc_txt + feature)); + if (getKey().asString() == "gltf") + { + LLRect rect = getRect(); + // make automatic? + reshape(rect.getWidth() + 90, rect.getHeight() + 45); + } + return TRUE; } diff --git a/indra/newview/llpanelface.cpp b/indra/newview/llpanelface.cpp index 8f09136ccfd73967f210152e99a30f5a11b729bf..b502fa3546d9a73935472525abc6a3ca6c153f61 100644 --- a/indra/newview/llpanelface.cpp +++ b/indra/newview/llpanelface.cpp @@ -492,6 +492,15 @@ LLPanelFace::~LLPanelFace() unloadMedia(); } +void LLPanelFace::onVisibilityChange(BOOL new_visibility) +{ + if (new_visibility) + { + gAgent.showLatestFeatureNotification("gltf"); + } + LLPanel::onVisibilityChange(new_visibility); +} + void LLPanelFace::draw() { updateCopyTexButton(); diff --git a/indra/newview/llpanelface.h b/indra/newview/llpanelface.h index d07be2e4b45e0d823313624cfb8b20b0bdee05b0..d36662c11bb46d969f6daa524342416d17c46881 100644 --- a/indra/newview/llpanelface.h +++ b/indra/newview/llpanelface.h @@ -109,6 +109,7 @@ class LLPanelFace : public LLPanel static void onMaterialOverrideReceived(const LLUUID& object_id, S32 side); + /*virtual*/ void onVisibilityChange(BOOL new_visibility); /*virtual*/ void draw(); LLMaterialPtr createDefaultMaterial(LLMaterialPtr current_material) diff --git a/indra/newview/skins/default/xui/en/floater_new_feature_notification.xml b/indra/newview/skins/default/xui/en/floater_new_feature_notification.xml index 5f0eeab71c42cb6fc9b21a8c2fda652e8e1fe1ec..c8726d36b44d2b8e81590561ba4bf31bdfd4594d 100644 --- a/indra/newview/skins/default/xui/en/floater_new_feature_notification.xml +++ b/indra/newview/skins/default/xui/en/floater_new_feature_notification.xml @@ -20,6 +20,15 @@ New inventory features You can now add preview images to inventory items and view a folder in its own window. Learn more in this [https://community.secondlife.com/blogs/entry/13637-new-features-inventory-item-preview-and-single-folder-view/ blogpost] </floater.string> + <floater.string name="title_txt_gltf"> +New GLTF PBR materials support + </floater.string> + <floater.string name="description_txt_gltf"> +You can now use expanded material support with the ability to import and edit GLTF Physically Based Rendering (PBR) Materials. +In order to support the addition of the GLTF format, some areas in the viewer may appear darker than usual. + +Learn more about [https://wiki.secondlife.com/wiki/PBR_Materials Physically Based Rendering (PBR)] + </floater.string> <text type="string" length="1" @@ -37,7 +46,7 @@ New feature <text type="string" length="1" - follows="top|left|right" + follows="top|left|right|bottom" text_color="White" layout="topleft" left="10"