mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-01-21 21:20:07 -05:00
Bug fixes:
--Only allow crackle_cellsize to be greater than 0.
This commit is contained in:
parent
48a6111bf9
commit
b677e6355e
@ -3870,7 +3870,7 @@ public:
|
||||
|
||||
virtual void Precalc() override
|
||||
{
|
||||
m_HalfCellSize = Zeps<T>(m_CellSize / 2);
|
||||
m_HalfCellSize = Zeps<T>(std::abs(m_CellSize) / 2);
|
||||
|
||||
for (int x = -CACHE_NUM; x <= CACHE_NUM; x++)
|
||||
for (int y = -CACHE_NUM; y <= CACHE_NUM; y++)
|
||||
@ -3883,7 +3883,7 @@ protected:
|
||||
string prefix = Prefix();
|
||||
m_Params.clear();
|
||||
m_Params.reserve(8);
|
||||
m_Params.push_back(ParamWithName<T>(&m_CellSize, prefix + "crackle_cellsize", 1));
|
||||
m_Params.push_back(ParamWithName<T>(&m_CellSize, prefix + "crackle_cellsize", 1, eParamType::REAL, T(0.0001)));
|
||||
m_Params.push_back(ParamWithName<T>(&m_Power, prefix + "crackle_power", T(0.2)));
|
||||
m_Params.push_back(ParamWithName<T>(&m_Distort, prefix + "crackle_distort"));
|
||||
m_Params.push_back(ParamWithName<T>(&m_Scale, prefix + "crackle_scale", 1));
|
||||
|
@ -241,7 +241,7 @@ QColor FractoriumEmberController<T>::ColorIndexToQColor(double d)
|
||||
template <typename T>
|
||||
void FractoriumEmberController<T>::FillColorWithXform(Xform<T>* xform)
|
||||
{
|
||||
m_Fractorium->m_XformColorIndexSpin->SetValueStealth(xform->m_ColorX);
|
||||
m_Fractorium->m_XformColorIndexSpin->SetValueStealth(xform->m_ColorX);//Probably ought to put scroll bar update here too.
|
||||
m_Fractorium->m_XformColorSpeedSpin->SetValueStealth(xform->m_ColorSpeed);
|
||||
m_Fractorium->m_XformOpacitySpin->SetValueStealth(xform->m_Opacity);
|
||||
m_Fractorium->m_XformDirectColorSpin->SetValueStealth(xform->m_DirectColor);
|
||||
|
Loading…
Reference in New Issue
Block a user