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 usefulmaster
parent
10f5306248
commit
fdbb976021
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue