summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorcosmic-linden <111533034+cosmic-linden@users.noreply.github.com>2022-12-02 09:23:39 -0800
committerGitHub <noreply@github.com>2022-12-02 09:23:39 -0800
commitba4f4aed704cfbe4d6bd4af6135710d1ec4c4870 (patch)
tree090256c28cb4cddacc794d89ded85f18c9897d5c /indra
parent1a8a40c94493ec3598010db53c4bf21108b6e272 (diff)
parent1d5332b23265f567e4b9ac5364c95f3837f63b71 (diff)
Merge pull request #23 from secondlife/SL-18741
SL-18448 When initing views and object has pbr, open pbr in texture tab
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/lldrawpoolwlsky.cpp5
-rw-r--r--indra/newview/llpanelface.cpp12
2 files changed, 16 insertions, 1 deletions
diff --git a/indra/newview/lldrawpoolwlsky.cpp b/indra/newview/lldrawpoolwlsky.cpp
index f09d1abe2d..c71d466830 100644
--- a/indra/newview/lldrawpoolwlsky.cpp
+++ b/indra/newview/lldrawpoolwlsky.cpp
@@ -283,6 +283,11 @@ void LLDrawPoolWLSky::renderStars(const LLVector3& camPosLocal) const
void LLDrawPoolWLSky::renderStarsDeferred(const LLVector3& camPosLocal) const
{
+ if (!gSky.mVOSkyp)
+ {
+ return;
+ }
+
LLGLSPipelineBlendSkyBox gls_sky(true, false);
gGL.setSceneBlendType(LLRender::BT_ADD_WITH_ALPHA);
diff --git a/indra/newview/llpanelface.cpp b/indra/newview/llpanelface.cpp
index 92e92ac6a6..8848accab0 100644
--- a/indra/newview/llpanelface.cpp
+++ b/indra/newview/llpanelface.cpp
@@ -996,8 +996,18 @@ void LLPanelFace::updateUI(bool force_set_values /*false*/)
if (mComboMatMedia->getCurrentIndex() < MATMEDIA_MATERIAL)
{
- mComboMatMedia->selectNthItem(MATMEDIA_MATERIAL);
+ // When selecting an object with a pbr and UI combo is not set,
+ // set to pbr option, otherwise to a texture (material)
+ if (has_pbr_material)
+ {
+ mComboMatMedia->selectNthItem(MATMEDIA_PBR);
+ }
+ else
+ {
+ mComboMatMedia->selectNthItem(MATMEDIA_MATERIAL);
+ }
}
+
mComboMatMedia->setEnabled(editable);
LLRadioGroup* radio_mat_type = getChild<LLRadioGroup>("radio_material_type");