diff options
author | Oz Linden <oz@lindenlab.com> | 2013-01-14 13:03:11 -0500 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2013-01-14 13:03:11 -0500 |
commit | 53d133cd557019515c7317d8626a1404551fb238 (patch) | |
tree | 1a3e54a73135d0ca2d45f6e09746d07d4b92fb50 | |
parent | 7d56fb04dfdf47768e2e81ec80d15737370af271 (diff) | |
parent | ca1f57307a76af2f7c381269e05af74307f9468a (diff) |
merge initial object fix
-rw-r--r-- | indra/newview/llpanelface.cpp | 36 |
1 files changed, 25 insertions, 11 deletions
diff --git a/indra/newview/llpanelface.cpp b/indra/newview/llpanelface.cpp index 0dedfae7da..51bda4141d 100644 --- a/indra/newview/llpanelface.cpp +++ b/indra/newview/llpanelface.cpp @@ -69,15 +69,15 @@ // Constant definitions for comboboxes // Must match the commbobox definitions in panel_tools_texture.xml // -const U32 MATMEDIA_MATERIAL = 0; // Material -const U32 MATMEDIA_MEDIA = 1; // Media -const U32 MATTYPE_DIFFUSE = 0; // Diffuse material texture -const U32 MATTYPE_NORMAL = 1; // Normal map -const U32 MATTYPE_SPECULAR = 2; // Specular map -const U32 ALPHAMODE_NONE = 0; // No alpha mask applied -const U32 ALPHAMODE_MASK = 2; // Alpha masking mode -const U32 BUMPY_TEXTURE = 18; // use supplied normal map -const U32 SHINY_TEXTURE = 4; // use supplied specular map +const S32 MATMEDIA_MATERIAL = 0; // Material +const S32 MATMEDIA_MEDIA = 1; // Media +const S32 MATTYPE_DIFFUSE = 0; // Diffuse material texture +const S32 MATTYPE_NORMAL = 1; // Normal map +const S32 MATTYPE_SPECULAR = 2; // Specular map +const S32 ALPHAMODE_NONE = 0; // No alpha mask applied +const S32 ALPHAMODE_MASK = 2; // Alpha masking mode +const S32 BUMPY_TEXTURE = 18; // use supplied normal map +const S32 SHINY_TEXTURE = 4; // use supplied specular map // // Methods @@ -85,8 +85,6 @@ const U32 SHINY_TEXTURE = 4; // use supplied specular map BOOL LLPanelFace::postBuild() { - childSetCommitCallback("combobox matmedia",&LLPanelFace::onCommitMaterialsMedia,this); - childSetCommitCallback("combobox mattype",&LLPanelFace::onCommitMaterialType,this); childSetCommitCallback("combobox shininess",&LLPanelFace::onCommitShiny,this); childSetCommitCallback("combobox bumpiness",&LLPanelFace::onCommitBump,this); childSetCommitCallback("combobox alphamode",&LLPanelFace::onCommitAlphaMode,this); @@ -104,6 +102,8 @@ BOOL LLPanelFace::postBuild() LLColorSwatchCtrl* mColorSwatch; LLComboBox* mComboTexGen; + LLComboBox* mComboMatMedia; + LLComboBox* mComboMatType; LLCheckBoxCtrl *mCheckFullbright; @@ -169,6 +169,20 @@ BOOL LLPanelFace::postBuild() mComboTexGen->setFollows(FOLLOWS_LEFT | FOLLOWS_TOP); } + mComboMatMedia = getChild<LLComboBox>("combobox matmedia"); + if(mComboMatMedia) + { + mComboMatMedia->setCommitCallback(LLPanelFace::onCommitMaterialsMedia,this); + mComboMatMedia->selectNthItem(MATMEDIA_MATERIAL); + } + + mComboMatType = getChild<LLComboBox>("combobox mattype"); + if(mComboMatType) + { + mComboMatType->setCommitCallback(LLPanelFace::onCommitMaterialType, this); + mComboMatType->selectNthItem(MATTYPE_DIFFUSE); + } + mCtrlGlow = getChild<LLSpinCtrl>("glow"); if(mCtrlGlow) { |