Non-Windows compiler fix for empty initializer list

This commit is contained in:
Gene Payne
2023-09-22 11:35:10 -06:00
committed by GitHub
parent 30003ae20f
commit c6ffddd253

View File

@@ -160,7 +160,9 @@ protected:
* \return the resulting model transformation matrix in double precision
*/
glm::dmat4 calcModelTransform(const RenderData& data,
const AlternativeTransform& altTransform = {}) const;
const AlternativeTransform& altTransform = {
std::nullopt, std::nullopt, std::nullopt
}) const;
/**
* Calculates the model view transformation matrix with the given data and returns it
@@ -204,7 +206,9 @@ protected:
* model view projection transformation matrices
*/
std::tuple<glm::dmat4, glm::dmat4, glm::dmat4> calcAllTransforms(
const RenderData& data, const AlternativeTransform& altModelTransform = {}) const;
const RenderData& data, const AlternativeTransform& altModelTransform = {
std::nullopt, std::nullopt, std::nullopt
}) const;
private:
double _boundingSphere = 0.0;