Fixes in tech ENABLE_SMOOTH_NORMALS

This commit is contained in:
enricoturri1966 2022-07-26 11:19:50 +02:00
parent 0681f92130
commit 4865ca65e8
2 changed files with 6 additions and 6 deletions

View file

@ -814,7 +814,10 @@ int GLVolumeCollection::load_object_volume(
v.set_color(color_from_model_volume(*model_volume));
#if ENABLE_LEGACY_OPENGL_REMOVAL
#if ENABLE_SMOOTH_NORMALS
v.model.init_from(mesh, true);
v.model.init_from(*mesh, true);
#if ENABLE_RAYCAST_PICKING
v.mesh_raycaster = std::make_unique<GUI::MeshRaycaster>(mesh);
#endif // ENABLE_RAYCAST_PICKING
#else
#if ENABLE_RAYCAST_PICKING
v.model.init_from(*mesh);