Code cleanup: style

This commit is contained in:
2014-06-06 07:54:05 +10:00
parent 98bf3959b4
commit ae4ed68dfe
6 changed files with 12 additions and 10 deletions

View File

@@ -733,7 +733,7 @@ GHOST_WindowCocoa::GHOST_WindowCocoa(
//now has proper multi-monitor support for fullscreen
struct utsname retval;
uname(&retval);
if(retval.release[0] == '1' && retval.release[1] <= '3') {
if (retval.release[0] == '1' && retval.release[1] <= '3') {
m_lionStyleFullScreen = true;
}

View File

@@ -1428,7 +1428,7 @@ static void calc_bevfac_mapping(
bevp_prev = (BevPoint *)(bl + 1);
bevp = bevp_prev + 1;
if (nu->type == CU_BEZIER){
if (nu->type == CU_BEZIER) {
bezt_prev = nu->bezt;
bezt = bezt_prev + 1;
for (i = 0, bevp_i = 0; i < segcount; i++, bezt_prev++, bezt++) {
@@ -1441,7 +1441,7 @@ static void calc_bevfac_mapping(
bevp_prev = bevp++;
}
else {
for (j = 0; j < resolu; j++, bevp_prev = bevp++){
for (j = 0; j < resolu; j++, bevp_prev = bevp++) {
l = len_v3v3(bevp->vec, bevp_prev->vec);
seglen += l;
BLI_assert(bevp_i < bl->nr - 1);

View File

@@ -774,8 +774,9 @@ static int bake(
/* make sure low poly renders */
ob_low->restrictflag &= ~OB_RESTRICT_RENDER;
if (RE_bake_has_engine(re))
if (RE_bake_has_engine(re)) {
ok = RE_bake_engine(re, ob_low, pixel_array_low, num_pixels, depth, pass_type, result);
}
else {
BKE_report(reports, RPT_ERROR, "Current render engine does not support baking");
goto cleanup;

View File

@@ -450,7 +450,8 @@ static int new_texture_exec(bContext *C, wmOperator *UNUSED(op))
tex->id.us--;
if (ptr.id.data && GS(((ID *)ptr.id.data)->name) == ID_MA &&
RNA_property_pointer_get(&ptr, prop).id.data == NULL) {
RNA_property_pointer_get(&ptr, prop).id.data == NULL)
{
/* In case we are assigning new texture to a material, and active slot was empty, reset 'use' flag. */
Material *ma = (Material *)ptr.id.data;
ma->septex &= ~(1 << ma->texact);