mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03: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