Fix property value initialization

This commit is contained in:
2020-07-08 14:13:52 -06:00
parent f810f02ea9
commit 85765e38d4
4 changed files with 8 additions and 8 deletions

View File

@@ -16,9 +16,7 @@ static const auto HUE_BG = 210.0_degf;
static const auto COLOR_BG = Color4::fromHsv({HUE_BG, .3f, .9f}, 1.f);
static const auto COLOR_GRID = Color4::fromHsv({HUE_BG, .3f, .7f}, 1.f);
MagnumRenderer::MagnumRenderer() :
m_init(false),
m_count(1) {}
MagnumRenderer::MagnumRenderer() : m_init(false) {}
MagnumRenderer::~MagnumRenderer() {
delete m_subjectObject;
@@ -76,7 +74,7 @@ void MagnumRenderer::lazyInitialize() {
.setLightColor(Color3{1.f})
.setLightPosition(Vector3{-100.f, 100.f, 50.f});
m_subjectDrawable = new SubjectDrawable{*m_subjectObject, m_subjectShader, m_subject, m_drawables, m_count};
m_subjectDrawable = new SubjectDrawable{*m_subjectObject, m_subjectShader, m_subject, m_drawables, 1, 0, 0};
}
// The Grid