mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-13 14:27:08 +03:00
0024023: Revamp the OCCT Handle - gcc and clang
Adaptations for compiling with GCC 4.7 and 4.8: - Construction semantics is used for Handle objects being initialized by const Handle objects of derived type, to avoid overload resolution error in GCC 4.7. - Missing includes added. - Fixed bugs related to misuse of direct casts of handle. - Eliminate CLang warnings on uninitialized and unused variables, functions, and expressions
This commit is contained in:
@@ -128,7 +128,7 @@ void Graphic3d_MaterialAspect::Init (const Graphic3d_NameOfMaterial theName)
|
||||
myBSDF.Le = Graphic3d_Vec3 (static_cast<Standard_ShortReal> (myDiffuseColor.Red()),
|
||||
static_cast<Standard_ShortReal> (myDiffuseColor.Green()),
|
||||
static_cast<Standard_ShortReal> (myDiffuseColor.Blue()));
|
||||
myBSDF.Fresnel == Graphic3d_Fresnel::CreateSchlick (Graphic3d_Vec3 (0.3f, 0.3f, 0.3f));
|
||||
myBSDF.Fresnel = Graphic3d_Fresnel::CreateSchlick (Graphic3d_Vec3 (0.3f, 0.3f, 0.3f));
|
||||
break;
|
||||
case Graphic3d_NOM_METALIZED:
|
||||
myShininess = Standard_ShortReal (0.13);
|
||||
@@ -368,7 +368,7 @@ void Graphic3d_MaterialAspect::Init (const Graphic3d_NameOfMaterial theName)
|
||||
|
||||
myBSDF.Kr = Graphic3d_Vec3 (0.207843f, 0.207843f, 0.207843f);
|
||||
myBSDF.Le = Graphic3d_Vec3 (0.0f, 1.0f, 0.46f);
|
||||
myBSDF.Fresnel == Graphic3d_Fresnel::CreateSchlick (Graphic3d_Vec3 (0.3f, 0.3f, 0.3f));
|
||||
myBSDF.Fresnel = Graphic3d_Fresnel::CreateSchlick (Graphic3d_Vec3 (0.3f, 0.3f, 0.3f));
|
||||
break;
|
||||
case Graphic3d_NOM_OBSIDIAN:
|
||||
myMaterialType = Graphic3d_MATERIAL_PHYSIC;
|
||||
|
Reference in New Issue
Block a user