aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llpanelface.cpp')
-rw-r--r--linden/indra/newview/llpanelface.cpp35
1 files changed, 31 insertions, 4 deletions
diff --git a/linden/indra/newview/llpanelface.cpp b/linden/indra/newview/llpanelface.cpp
index 8f24c55..9cbfdc2 100644
--- a/linden/indra/newview/llpanelface.cpp
+++ b/linden/indra/newview/llpanelface.cpp
@@ -505,7 +505,16 @@ void LLPanelFace::getState()
505 { 505 {
506 F32 shinyf = 0.f; 506 F32 shinyf = 0.f;
507 identical = allFacesSameValue( &LLPanelFace::valueShiny, &shinyf ); 507 identical = allFacesSameValue( &LLPanelFace::valueShiny, &shinyf );
508 childGetSelectionInterface("combobox shininess")->selectNthItem((S32)shinyf); 508 LLCtrlSelectionInterface* combobox_shininess =
509 childGetSelectionInterface("combobox shininess");
510 if (combobox_shininess)
511 {
512 combobox_shininess->selectNthItem((S32)shinyf);
513 }
514 else
515 {
516 llwarns << "failed childGetSelectionInterface for 'combobox shininess'" << llendl;
517 }
509 childSetEnabled("combobox shininess",editable); 518 childSetEnabled("combobox shininess",editable);
510 childSetTentative("combobox shininess",!identical); 519 childSetTentative("combobox shininess",!identical);
511 childSetEnabled("label shininess",editable); 520 childSetEnabled("label shininess",editable);
@@ -514,7 +523,16 @@ void LLPanelFace::getState()
514 { 523 {
515 F32 bumpf = 0.f; 524 F32 bumpf = 0.f;
516 identical = allFacesSameValue( &LLPanelFace::valueBump, &bumpf ); 525 identical = allFacesSameValue( &LLPanelFace::valueBump, &bumpf );
517 childGetSelectionInterface("combobox bumpiness")->selectNthItem((S32)bumpf); 526 LLCtrlSelectionInterface* combobox_bumpiness =
527 childGetSelectionInterface("combobox bumpiness");
528 if (combobox_bumpiness)
529 {
530 combobox_bumpiness->selectNthItem((S32)bumpf);
531 }
532 else
533 {
534 llwarns << "failed childGetSelectionInterface for 'combobox bumpiness'" << llendl;
535 }
518 childSetEnabled("combobox bumpiness",editable); 536 childSetEnabled("combobox bumpiness",editable);
519 childSetTentative("combobox bumpiness",!identical); 537 childSetTentative("combobox bumpiness",!identical);
520 childSetEnabled("label bumpiness",editable); 538 childSetEnabled("label bumpiness",editable);
@@ -523,8 +541,17 @@ void LLPanelFace::getState()
523 { 541 {
524 F32 genf = 0.f; 542 F32 genf = 0.f;
525 identical = allFacesSameValue( &LLPanelFace::valueTexGen, &genf); 543 identical = allFacesSameValue( &LLPanelFace::valueTexGen, &genf);
526 S32 selected_texgen = ((S32) genf) >> TEM_TEX_GEN_SHIFT; 544 S32 selected_texgen = ((S32) genf) >> TEM_TEX_GEN_SHIFT;
527 childGetSelectionInterface("combobox texgen")->selectNthItem(selected_texgen); 545 LLCtrlSelectionInterface* combobox_texgen =
546 childGetSelectionInterface("combobox texgen");
547 if (combobox_texgen)
548 {
549 combobox_texgen->selectNthItem(selected_texgen);
550 }
551 else
552 {
553 llwarns << "failed childGetSelectionInterface for 'combobox texgen'" << llendl;
554 }
528 childSetEnabled("combobox texgen",editable); 555 childSetEnabled("combobox texgen",editable);
529 childSetTentative("combobox texgen",!identical); 556 childSetTentative("combobox texgen",!identical);
530 childSetEnabled("tex gen",editable); 557 childSetEnabled("tex gen",editable);