From 575d5bcc016c8712b59b048625de325f1053f8b8 Mon Sep 17 00:00:00 2001 From: Christopher Baker Date: Sat, 27 Jul 2019 04:52:36 -0600 Subject: [PATCH] Add default values for ofPath::Command members. (#6344) --- libs/openFrameworks/graphics/ofPath.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libs/openFrameworks/graphics/ofPath.cpp b/libs/openFrameworks/graphics/ofPath.cpp index fbf2b5a0d3f..17d83bbfc71 100644 --- a/libs/openFrameworks/graphics/ofPath.cpp +++ b/libs/openFrameworks/graphics/ofPath.cpp @@ -17,6 +17,12 @@ ofPath::Command::Command(Type type) ofPath::Command::Command(Type type , const glm::vec3 & p) :type(type) ,to(p) +,cp1(glm::vec3()) +,cp2(glm::vec3()) +,radiusX(0) +,radiusY(0) +,angleBegin(0) +,angleEnd(0) {} //---------------------------------------------------------- @@ -25,6 +31,10 @@ ofPath::Command::Command(Type type , const glm::vec3 & p, const glm::vec3 & cp1, ,to(p) ,cp1(cp1) ,cp2(cp2) +,radiusX(0) +,radiusY(0) +,angleBegin(0) +,angleEnd(0) { } @@ -32,6 +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()) ,radiusX(radiusX) ,radiusY(radiusY) ,angleBegin(angleBegin)