Bug fixes:

--Only allow crackle_cellsize to be greater than 0.
This commit is contained in:
Person 2017-08-18 07:16:30 -07:00
parent 48a6111bf9
commit b677e6355e
2 changed files with 3 additions and 3 deletions

View File

@ -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));

View File

@ -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);