reverse all normals

This commit is contained in:
Guillaume Damiand 2023-11-20 09:37:36 +01:00
parent d2d114cf24
commit db9ca1a3fb
2 changed files with 2 additions and 2 deletions

View File

@ -158,7 +158,7 @@ public:
update_bounding_box(lp.bbox() + (lp + lv).bbox() + (lp + lpv).bbox()); update_bounding_box(lp.bbox() + (lp + lv).bbox() + (lp + lpv).bbox());
} }
void reverse_normals() const void reverse_all_normals() const
{ {
m_buffer_for_mono_faces.negate_normals(); m_buffer_for_mono_faces.negate_normals();
m_buffer_for_colored_faces.negate_normals(); m_buffer_for_colored_faces.negate_normals();

View File

@ -260,7 +260,7 @@ public:
void reverse_all_normals() void reverse_all_normals()
{ {
m_inverse_normal=!m_inverse_normal; m_inverse_normal=!m_inverse_normal;
gBuffer.reverse_normals(); gBuffer.reverse_all_normals();
} }
// Returns true if the data structure lies on a plane // Returns true if the data structure lies on a plane