mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-16 05:04:11 +08:00
0022982: Generic color is overriden in STEPCAFControl_Writer::WriteColors
This commit is contained in:
@@ -1039,13 +1039,14 @@ Standard_Boolean STEPCAFControl_Writer::WriteColors (const Handle(XSControl_Work
|
||||
}
|
||||
}
|
||||
if ( CTool->GetColor ( lab, XCAFDoc_ColorGen, C ) ) {
|
||||
style.SetColorCurv ( C );
|
||||
style.SetColorSurf ( C );
|
||||
style.SetColorCurv ( C );
|
||||
style.SetColorSurf ( C );
|
||||
}
|
||||
if ( CTool->GetColor ( lab, XCAFDoc_ColorSurf, C ) )
|
||||
style.SetColorSurf ( C );
|
||||
style.SetColorSurf ( C );
|
||||
if ( CTool->GetColor ( lab, XCAFDoc_ColorCurv, C ) )
|
||||
style.SetColorCurv ( C );
|
||||
style.SetColorCurv ( C );
|
||||
|
||||
// commented, cause we are need to take reference from
|
||||
// if ( isComponent && lab == L && !isVisible)
|
||||
// if ( !style.IsSetColorSurf() && !style.IsSetColorCurv() ) {
|
||||
|
||||
Reference in New Issue
Block a user