mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-17 05:34:50 -04:00
--User changes
-Users can now specify animation params on a per flame basis. --These get saved with the flame file. -Allow for rotating xforms around the world origin during animation. -Make the Clear Flame menu item be more comprehensive in how it clears a flame out. --Bug fixes -Fix an extremely rare possible memory leak when using motion during animation, which is never used in Fractorium. -Do not skip to the current flame index, or attach a prefix in the Final Render Dialog when rendering an animation sequence. --Code changes -Place all animation params in Ember.
This commit is contained in:
@ -1008,22 +1008,16 @@ void FractoriumEmberController<T>::ClearFlame()
|
||||
{
|
||||
Update([&]()
|
||||
{
|
||||
while (m_Ember.TotalXformCount() > 1)
|
||||
m_Ember.DeleteTotalXform(m_Ember.TotalXformCount() - 1);
|
||||
|
||||
if (m_Ember.XformCount() == 1)
|
||||
{
|
||||
if (auto xform = m_Ember.GetXform(0))
|
||||
{
|
||||
xform->Clear();
|
||||
xform->AddVariation(m_VariationList->GetVariationCopy(eVariationId::VAR_LINEAR));
|
||||
xform->ParentEmber(&m_Ember);
|
||||
}
|
||||
}
|
||||
|
||||
m_Ember.m_Curves.Init();
|
||||
FillXforms();
|
||||
Xform<T> newXform;
|
||||
newXform.m_Weight = 0.25;
|
||||
newXform.m_ColorX = m_Rand.Frand01<T>();
|
||||
newXform.AddVariation(m_VariationList->GetVariationCopy(eVariationId::VAR_LINEAR));
|
||||
m_Ember.Clear();
|
||||
m_Ember.AddXform(newXform);
|
||||
FillXforms();//Must do this first because the palette setup in FillParamTablesAndPalette() uses the xforms combo.
|
||||
FillParamTablesAndPalette();
|
||||
FillCurvesControl();
|
||||
FillSummary();
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user