--Bug fixes

-Sequence generation was generating the wrong color curves when a non-default curve had less than 5 nodes in it.
This commit is contained in:
Person 2021-02-03 00:49:10 -08:00
parent c23d2ad049
commit e3e5120130
2 changed files with 4 additions and 9 deletions

View File

@ -174,18 +174,11 @@ public:
void Init()
{
for (size_t i = 0; i < 4; i++)
{
m_Points[i].resize(5);
m_Points[i][0] = v2T(0);
m_Points[i][1] = v2T(T(0.25));
m_Points[i][2] = v2T(T(0.50));
m_Points[i][3] = v2T(T(0.75));
m_Points[i][4] = v2T(1);
}
Init(i);
}
/// <summary>
/// Set the a specific curve and its weight value to their default state.
/// Set a specific curve and its weight value to their default state.
/// </summary>
void Init(size_t i)
{

View File

@ -801,6 +801,8 @@ public:
//At this point, all of the curves at a given curve index (0 - 3) should have the same number of spline points across all embers.
for (size_t i = 0; i < embers[0].m_Curves.m_Points.size(); i++)//4 point arrays.
{
m_Curves.m_Points[i].clear();
while (m_Curves.m_Points[i].size() < embers[0].m_Curves.m_Points[i].size())
m_Curves.m_Points[i].push_back(v2F(0));