Skip to content

Commit

Permalink
bugfix glm regression when not passing argument to constructor. closes
Browse files Browse the repository at this point in the history
  • Loading branch information
ofTheo authored and arturoc committed Oct 22, 2019
1 parent 97213fb commit 04d05af
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
1 change: 1 addition & 0 deletions libs/openFrameworks/3d/ofNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
//----------------------------------------
ofNode::ofNode()
:parent(nullptr)
,localTransformMatrix(1)
,legacyCustomDrawOverrided(true){
setPosition({0.f, 0.f, 0.f});
setOrientation({0.f, 0.f, 0.f});
Expand Down
5 changes: 4 additions & 1 deletion libs/openFrameworks/graphics/ofCairoRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ _cairo_status ofCairoRenderer::stream_function(void *closure,const unsigned char
}

ofCairoRenderer::ofCairoRenderer()
:graphics3d(this){
:graphics3d(this)
,projection(1)
,modelView(1)
{
type = PDF;
surface = nullptr;
cr = nullptr;
Expand Down
8 changes: 4 additions & 4 deletions libs/openFrameworks/graphics/ofPath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ ofPath::Command::Command(Type type)
ofPath::Command::Command(Type type , const glm::vec3 & p)
:type(type)
,to(p)
,cp1(glm::vec3())
,cp2(glm::vec3())
,cp1(glm::vec3(0))
,cp2(glm::vec3(0))
,radiusX(0)
,radiusY(0)
,angleBegin(0)
Expand All @@ -42,8 +42,8 @@ ofPath::Command::Command(Type type , const glm::vec3 & p, const glm::vec3 & cp1,
ofPath::Command::Command(Type type , const glm::vec3 & centre, float radiusX, float radiusY, float angleBegin, float angleEnd)
:type(type)
,to(centre)
,cp1(glm::vec3())
,cp2(glm::vec3())
,cp1(glm::vec3(0))
,cp2(glm::vec3(0))
,radiusX(radiusX)
,radiusY(radiusY)
,angleBegin(angleBegin)
Expand Down
10 changes: 10 additions & 0 deletions libs/openFrameworks/utils/ofMatrixStack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ ofMatrixStack::ofMatrixStack(const ofAppBaseWindow * window)
,currentMatrixMode(OF_MATRIX_MODELVIEW)
,currentMatrix(&modelViewMatrix)
,flipRenderSurfaceMatrix(true)
,modelMatrix(1)
,viewMatrix(1)
,viewInverse(1)
,modelViewMatrix(1)
,projectionMatrix(1)
,textureMatrix(1)
,modelViewProjectionMatrix(1)
,orientedProjectionMatrix(1)
,orientationMatrix(1)
,orientationMatrixInverse(1)
{

}
Expand Down

0 comments on commit 04d05af

Please sign in to comment.