Bug fixes:

--Fix bug where clearing the final xform, but leaving it present, then editing it would crash the program.
This commit is contained in:
Person
2017-07-26 21:25:44 -07:00
parent 706c0b60ad
commit a81b93d94a
13 changed files with 141 additions and 96 deletions

View File

@ -341,10 +341,11 @@ bool FractoriumEmberController<T>::Render()
{
size_t i = 0;
int solo = m_Fractorium->ui.CurrentXformCombo->property("soloxform").toInt();
bool forceFinal = m_Fractorium->HaveFinal();
if (solo != -1)
{
m_TempOpacities.resize(m_Ember.TotalXformCount());
m_TempOpacities.resize(m_Ember.TotalXformCount(forceFinal));
while (auto xform = m_Ember.GetTotalXform(i))
{
@ -357,7 +358,7 @@ bool FractoriumEmberController<T>::Render()
m_Renderer->SetEmber(m_Ember, action);
if (solo != -1)
while (auto xform = m_Ember.GetTotalXform(i))
while (auto xform = m_Ember.GetTotalXform(i, forceFinal))
xform->m_Opacity = m_TempOpacities[i++];
}