0032546: Data Exchange, XCAF - mark material as defined XCAFDoc_VisMaterialPBR::IsDef...
authorkgv <kgv@opencascade.com>
Mon, 30 Aug 2021 17:53:33 +0000 (20:53 +0300)
committersmoskvin <smoskvin@opencascade.com>
Tue, 31 Aug 2021 17:05:37 +0000 (20:05 +0300)
commitce83709ac96e3e20edabc03d8033162d0cbd5012
treebcaa112c6b1b2dfd2f5baf1646a8de0aae38bf8a
parent19691a22fda814e70ff3416dedce91f74b9dde56
0032546: Data Exchange, XCAF - mark material as defined XCAFDoc_VisMaterialPBR::IsDefined=true within default constructor

XCAFDoc_VisMaterialCommon and XCAFDoc_VisMaterialPBR default constructors now set IsDefined property to TRUE.
So that it is required to set IsDefined=false explicitly to create an undefined material,
which is done by XCAFDoc_VisMaterial constructor.

Existing application code shouldn't require any modifications in most cases
(IsDefined=true required before to setup material could be now removed).
src/XCAFDoc/XCAFDoc_VisMaterial.cxx
src/XCAFDoc/XCAFDoc_VisMaterial.hxx
src/XCAFDoc/XCAFDoc_VisMaterialCommon.hxx
src/XCAFDoc/XCAFDoc_VisMaterialPBR.hxx