Cleanup: flag checks
This commit is contained in:
@@ -88,7 +88,7 @@ void COM_execute(RenderData *rd, Scene *scene, bNodeTree *editingtree, int rende
|
|||||||
editingtree->progress(editingtree->prh, 0.0);
|
editingtree->progress(editingtree->prh, 0.0);
|
||||||
editingtree->stats_draw(editingtree->sdh, IFACE_("Compositing"));
|
editingtree->stats_draw(editingtree->sdh, IFACE_("Compositing"));
|
||||||
|
|
||||||
bool twopass = (editingtree->flag & NTREE_TWO_PASS) > 0 && !rendering;
|
bool twopass = (editingtree->flag & NTREE_TWO_PASS) && !rendering;
|
||||||
/* initialize execution system */
|
/* initialize execution system */
|
||||||
if (twopass) {
|
if (twopass) {
|
||||||
ExecutionSystem *system = new ExecutionSystem(rd, scene, editingtree, rendering, twopass, viewSettings, displaySettings, viewName);
|
ExecutionSystem *system = new ExecutionSystem(rd, scene, editingtree, rendering, twopass, viewSettings, displaySettings, viewName);
|
||||||
|
@@ -430,7 +430,7 @@ static void fluid_init_all_channels(bContext *C, Object *UNUSED(fsDomain), Fluid
|
|||||||
for (fobj=fobjects->first; fobj; fobj=fobj->next) {
|
for (fobj=fobjects->first; fobj; fobj=fobj->next) {
|
||||||
Object *ob = fobj->object;
|
Object *ob = fobj->object;
|
||||||
FluidsimModifierData *fluidmd = (FluidsimModifierData *)modifiers_findByType(ob, eModifierType_Fluidsim);
|
FluidsimModifierData *fluidmd = (FluidsimModifierData *)modifiers_findByType(ob, eModifierType_Fluidsim);
|
||||||
float active= (float) ((fluidmd->fss->flag & OB_FLUIDSIM_ACTIVE) > 0 ? 1 : 0);
|
float active = (float) ((fluidmd->fss->flag & OB_FLUIDSIM_ACTIVE) ? 1 : 0);
|
||||||
float rot_d[3] = {0.f, 0.f, 0.f}, old_rot[3] = {0.f, 0.f, 0.f};
|
float rot_d[3] = {0.f, 0.f, 0.f}, old_rot[3] = {0.f, 0.f, 0.f};
|
||||||
|
|
||||||
if (ELEM(fluidmd->fss->type, OB_FLUIDSIM_DOMAIN, OB_FLUIDSIM_PARTICLE))
|
if (ELEM(fluidmd->fss->type, OB_FLUIDSIM_DOMAIN, OB_FLUIDSIM_PARTICLE))
|
||||||
|
Reference in New Issue
Block a user