mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-11 00:53:07 +05:00
Fix previous commit
This commit is contained in:
parent
ad312c8c2f
commit
cad0fb17a0
@ -64,6 +64,7 @@
|
|||||||
#include <AIS_ListOfInteractive.hxx>
|
#include <AIS_ListOfInteractive.hxx>
|
||||||
#include <AIS_GraphicTool.hxx>
|
#include <AIS_GraphicTool.hxx>
|
||||||
#include <AIS_Drawer.hxx>
|
#include <AIS_Drawer.hxx>
|
||||||
|
#include <Aspect_TypeOfFacingModel.hxx>
|
||||||
#include <Prs3d_ShadingAspect.hxx>
|
#include <Prs3d_ShadingAspect.hxx>
|
||||||
#include<Graphic3d_MaterialAspect.hxx>
|
#include<Graphic3d_MaterialAspect.hxx>
|
||||||
|
|
||||||
@ -589,8 +590,8 @@ bool GEOMGUI_Selection::isPhysicalMaterial( const int idx ) const{
|
|||||||
if ( !io.IsNull() ) {
|
if ( !io.IsNull() ) {
|
||||||
Handle(GEOM_AISShape) aSh = Handle(GEOM_AISShape)::DownCast(io);
|
Handle(GEOM_AISShape) aSh = Handle(GEOM_AISShape)::DownCast(io);
|
||||||
if ( !aSh.IsNull() )
|
if ( !aSh.IsNull() )
|
||||||
res =(bool) aSh->Attributes()->ShadingAspect()->
|
res = (bool) aSh->Attributes()->ShadingAspect()->
|
||||||
Material(Aspect_TypeOfFacingModel::Aspect_TOFM_BOTH_SIDE).MaterialType( Graphic3d_MATERIAL_PHYSIC );
|
Material(Aspect_TOFM_BOTH_SIDE).MaterialType( Graphic3d_MATERIAL_PHYSIC );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user