FIRE-35138] Fix the over-zealous tab switching when editing materials

Thsi actually just disbales the viewer trying to guess what the user intends. Feedback on FIRE-35138 in regards other issues would be useful
master
Beq 2025-02-08 22:13:09 +00:00
parent 10f5306248
commit fdbb976021
1 changed files with 1 additions and 8 deletions

View File

@ -1517,14 +1517,7 @@ void FSPanelFace::updateUI(bool force_set_values /*false*/)
mTabsPBRMatMedia->enableTabButton(
mTabsPBRMatMedia->getIndexForPanel(
mTabsPBRMatMedia->getPanelByName("panel_material_type_blinn_phong")), editable );
if(!has_pbr_material)
{
mTabsPBRMatMedia->selectTabByName("panel_material_type_blinn_phong");
}
else
{
mTabsPBRMatMedia->selectTabByName("panel_material_type_pbr");
}
// only turn on auto-adjust button if there is a media renderer and the media is loaded
mBtnAlignMedia->setEnabled(editable);