mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-12 03:04:51 -04:00
--User changes
-Add a new dialog for editing QSS stylesheets. Allow for saving, reloading and setting styles as default. --Include a dark style with the installation called dark.qss. --Also add support for themes such as Fusion. --Resize some controls to better fit with the new style. -Add an option to specify the number of random embers generated on startup. 1 is the minimum and the default. --Bug fixes -Properly enable/disable thread priority label in final render dialog in response to enable/disable of the OpenCL checkbox. -Remove all inline stylesheets. -Show xaos spinners with 6 decimal places. --Code changes -Remove redundant comparisons to nullptr, use ! instead; -Give some controls valid names instead of the auto generated ones. -DoubleSpinBoxTableItemDelegate.h: Add virtual keyword to overridden functions.
This commit is contained in:
@ -370,7 +370,7 @@ public:
|
||||
{
|
||||
for (auto v : variations)
|
||||
{
|
||||
if (v != nullptr && v->VariationId() == id)
|
||||
if (v && v->VariationId() == id)
|
||||
{
|
||||
var = v;
|
||||
keepGoing = false;
|
||||
@ -395,7 +395,7 @@ public:
|
||||
{
|
||||
for (auto v : variations)
|
||||
{
|
||||
if (v != nullptr && v->Name() == name)
|
||||
if (v && v->Name() == name)
|
||||
{
|
||||
var = v;
|
||||
keepGoing = false;
|
||||
@ -447,7 +447,7 @@ public:
|
||||
{
|
||||
for (size_t i = 0; i < variations.size(); i++)
|
||||
{
|
||||
if (variations[i] != nullptr && variations[i]->VariationId() == id)
|
||||
if (variations[i] && variations[i]->VariationId() == id)
|
||||
{
|
||||
delete variations[i];
|
||||
variations.erase(variations.begin() + i);
|
||||
@ -768,7 +768,7 @@ public:
|
||||
|
||||
//At this point, we've added if needed, or just applied the motion func to the weight.
|
||||
//Now apply the motion func to the params if needed.
|
||||
if (motParVar != nullptr)
|
||||
if (motParVar)
|
||||
{
|
||||
auto parVar = dynamic_cast<ParametricVariation<T>*>(var);
|
||||
auto params = parVar->Params();
|
||||
|
Reference in New Issue
Block a user