]> OCCT Git - occt-copy.git/commit
0032546: Data Exchange, XCAF - mark material as defined XCAFDoc_VisMaterialPBR::IsDef... CR32546
authorkgv <kgv@opencascade.com>
Mon, 30 Aug 2021 17:53:33 +0000 (20:53 +0300)
committerkgv <kgv@opencascade.com>
Mon, 30 Aug 2021 17:53:33 +0000 (20:53 +0300)
commit714da0ef78ad4574bbbf8d79617da33471bba831
tree8ac2a6374c2301884f024e94605f847024342f3a
parent8f70959571ab8999b47f88d673343587e733f364
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