@@ -1456,9 +1456,18 @@ void LLPanelFace::updateUI(bool force_set_values /*false*/)
1456
1456
spec_scale_s = editable ? spec_scale_s : 1 .0f ;
1457
1457
spec_scale_s *= identical_planar_texgen ? 2 .0f : 1 .0f ;
1458
1458
1459
- mTexScaleU ->setValue (diff_scale_s);
1460
- mShinyScaleU ->setValue (spec_scale_s);
1461
- mBumpyScaleU ->setValue (norm_scale_s);
1459
+ if (force_set_values)
1460
+ {
1461
+ mTexScaleU ->forceSetValue (diff_scale_s);
1462
+ mShinyScaleU ->forceSetValue (spec_scale_s);
1463
+ mBumpyScaleU ->forceSetValue (norm_scale_s);
1464
+ }
1465
+ else
1466
+ {
1467
+ mTexScaleU ->setValue (diff_scale_s);
1468
+ mShinyScaleU ->setValue (spec_scale_s);
1469
+ mBumpyScaleU ->setValue (norm_scale_s);
1470
+ }
1462
1471
1463
1472
mTexScaleU ->setEnabled (editable && has_material);
1464
1473
mShinyScaleU ->setEnabled (editable && has_material && specmap_id.notNull ());
@@ -1506,13 +1515,16 @@ void LLPanelFace::updateUI(bool force_set_values /*false*/)
1506
1515
if (force_set_values)
1507
1516
{
1508
1517
mTexScaleV ->forceSetValue (diff_scale_t );
1518
+ mShinyScaleV ->forceSetValue (spec_scale_t );
1519
+ mBumpyScaleV ->forceSetValue (norm_scale_t );
1509
1520
}
1510
1521
else
1511
1522
{
1512
1523
mTexScaleV ->setValue (diff_scale_t );
1524
+ mShinyScaleV ->setValue (spec_scale_t );
1525
+ mBumpyScaleV ->setValue (norm_scale_t );
1513
1526
}
1514
- mShinyScaleV ->setValue (spec_scale_t );
1515
- mBumpyScaleV ->setValue (norm_scale_t );
1527
+
1516
1528
1517
1529
mTexScaleV ->setTentative (LLSD (diff_scale_tentative));
1518
1530
mShinyScaleV ->setTentative (LLSD (spec_scale_tentative));
@@ -4838,8 +4850,9 @@ void LLPanelFace::setMaterialOverridesFromSelection()
4838
4850
}
4839
4851
}
4840
4852
4841
- mPBRScaleU ->setValue (transform.mScale [VX]);
4842
- mPBRScaleV ->setValue (transform.mScale [VY]);
4853
+ // Force set scales just in case they were set by repeats per meter and their spinner is focused
4854
+ mPBRScaleU ->forceSetValue (transform.mScale [VX]);
4855
+ mPBRScaleV ->forceSetValue (transform.mScale [VY]);
4843
4856
mPBRRotate ->setValue (transform.mRotation * RAD_TO_DEG);
4844
4857
mPBROffsetU ->setValue (transform.mOffset [VX]);
4845
4858
mPBROffsetV ->setValue (transform.mOffset [VY]);
0 commit comments