-------------------------------------------------------------------------------
| 957 | } |
| 958 | //------------------------------------------------------------------------------- |
| 959 | int CDisplay::OnSetupMaterialView(MaterialInfo* pcNew) |
| 960 | { |
| 961 | ai_assert(nullptr != pcNew); |
| 962 | |
| 963 | if (m_pcCurrentMaterial == pcNew)return 2; |
| 964 | |
| 965 | if (VIEWMODE_NODE == m_iViewMode) |
| 966 | ShowNormalUIComponents(); |
| 967 | |
| 968 | m_pcCurrentMaterial = pcNew; |
| 969 | SetViewMode(VIEWMODE_MATERIAL); |
| 970 | |
| 971 | // redraw the color fields in the UI --- their purpose has possibly changed |
| 972 | UpdateColorFieldsInUI(); |
| 973 | UpdateWindow(g_hDlg); |
| 974 | return 1; |
| 975 | } |
| 976 | //------------------------------------------------------------------------------- |
| 977 | int CDisplay::OnSetupTextureView(TextureInfo* pcNew) |
| 978 | { |
nothing calls this directly
no test coverage detected