1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +03:00

0023021: MeshVS_DataSource::GetNormalsByElement returns Standard_False and gives no result even when all normals are OK

If all normals are correctly computed using GetNodeNormal the variable 'res' is never set to Standard_True and the normals are not passed to the variable 'Normals' that is supposed to hold the result of the computation.
This commit is contained in:
Pawel 2012-04-13 13:38:52 +02:00 committed by dbv
parent a7aa146538
commit c1338f4f64

View File

@ -206,10 +206,10 @@ Standard_Boolean MeshVS_DataSource::GetNormalsByElement(const Standard_Integer I
} // switch ( Type ) } // switch ( Type )
} // if ( !allNormals ) } // if ( !allNormals )
if ( res ) if ( res || allNormals )
Normals = aNormals; Normals = aNormals;
return res; return ( res || allNormals );
} }
//================================================================ //================================================================