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:
parent
a7aa146538
commit
c1338f4f64
@ -206,10 +206,10 @@ Standard_Boolean MeshVS_DataSource::GetNormalsByElement(const Standard_Integer I
|
||||
} // switch ( Type )
|
||||
} // if ( !allNormals )
|
||||
|
||||
if ( res )
|
||||
if ( res || allNormals )
|
||||
Normals = aNormals;
|
||||
|
||||
return res;
|
||||
return ( res || allNormals );
|
||||
}
|
||||
|
||||
//================================================================
|
||||
|
Loading…
x
Reference in New Issue
Block a user