From b31f45251c678303b44d3c0c3c77963809a2f950 Mon Sep 17 00:00:00 2001 From: Person Date: Wed, 13 Jan 2021 21:43:10 -0800 Subject: [PATCH] --Bug fixes -bcircle was not properly setting output values to zero when the bcircle_borderwidth was zero. --- Source/Ember/Variations02.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Source/Ember/Variations02.h b/Source/Ember/Variations02.h index f14cc10..725e39c 100644 --- a/Source/Ember/Variations02.h +++ b/Source/Ember/Variations02.h @@ -907,6 +907,11 @@ public: helper.Out.x = m_Weight * px; helper.Out.y = m_Weight * py; } + else + { + helper.Out.x = 0; + helper.Out.y = 0; + } } helper.Out.z = DefaultZ(helper); @@ -947,6 +952,11 @@ public: << "\t\t vOut.x = " << weight << " * px;\n" << "\t\t vOut.y = " << weight << " * py;\n" << "\t\t }\n" + << "\t\t else\n" + << "\t\t {\n" + << "\t\t vOut.x = (real_t)0.0;\n" + << "\t\t vOut.y = (real_t)0.0;\n" + << "\t\t }\n" << "\t\t}\n" << "\n" << "\t\tvOut.z = " << DefaultZCl()