Cleanup: rna naming, indentation

This commit is contained in:
2016-05-14 01:28:21 +10:00
parent a91a49ba8e
commit 141c0f8ad1
2 changed files with 10 additions and 8 deletions

View File

@@ -2305,10 +2305,10 @@ int dynamicPaint_createUVSurface(Scene *scene, DynamicPaintSurface *surface)
/* Check uv bb */
if ((faceBB[i].min[0] > (point[sample][0])) ||
(faceBB[i].min[1] > (point[sample][1])) ||
(faceBB[i].max[0] < (point[sample][0])) ||
(faceBB[i].max[1] < (point[sample][1])))
(faceBB[i].max[0] < (point[sample][0])) ||
(faceBB[i].max[1] < (point[sample][1])))
{
continue;
continue;
}
const float *uv1 = mloopuv[mlooptri[i].tri[0]].uv;
@@ -3584,7 +3584,8 @@ static int dynamicPaint_paintParticles(DynamicPaintSurface *surface,
/* Proceed only if particle is active */
if ((pa->alive == PARS_UNBORN && (part->flag & PART_UNBORN) == 0) ||
(pa->alive == PARS_DEAD && (part->flag & PART_DIED) == 0) ||
(pa->flag & PARS_UNEXIST)) {
(pa->flag & PARS_UNEXIST))
{
continue;
}
@@ -3858,7 +3859,8 @@ static int dynamicPaint_paintSinglePoint(
/* color ramp */
if (brush->proximity_falloff == MOD_DPAINT_PRFALL_RAMP &&
do_colorband(brush->paint_ramp, (1.0f - strength), colorband)) {
do_colorband(brush->paint_ramp, (1.0f - strength), colorband))
{
strength = colorband[3];
}

View File

@@ -412,9 +412,9 @@ static int wm_link_append_exec(bContext *C, wmOperator *op)
/* append, rather than linking */
if ((flag & FILE_LINK) == 0) {
const bool set_fake = RNA_boolean_get(op->ptr, "set_fake");
const bool do_recursive = RNA_boolean_get(op->ptr, "do_recursive");
const bool use_recursive = RNA_boolean_get(op->ptr, "use_recursive");
if (do_recursive) {
if (use_recursive) {
BKE_library_make_local(bmain, NULL, true, set_fake);
}
else {
@@ -515,6 +515,6 @@ void WM_OT_append(wmOperatorType *ot)
wm_link_append_properties_common(ot, false);
RNA_def_boolean(ot->srna, "set_fake", false, "Fake User",
"Set Fake User for appended items (except Objects and Groups)");
RNA_def_boolean(ot->srna, "do_recursive", true, "Localize All",
RNA_def_boolean(ot->srna, "use_recursive", true, "Localize All",
"Localize all appended data, including those indirectly linked from other libraries");
}