Page MenuHome

Cleanup: Remove data duplication from large array in eevee_camera.hh
ClosedPublic

Authored by Jesse Yurkovich (deadpin) on Oct 9 2022, 8:20 AM.

Details

Summary

Use inline constexpr instead of static const to prevent the
cubeface_mat variable from being duplicated in each translation unit
that includes the eevee_camera.hh header (was included into 17 different
object files with MSVC).


inline constexpr is the ODR-safe way to do this in c++17 onwards
without having to use something like extern

Diff Detail

Repository
rB Blender