Style cleanup
This commit is contained in:
@@ -346,7 +346,7 @@ void ArmatureImporter::create_armature_bones( )
|
|||||||
|
|
||||||
char * bone_name = (char *)bc_get_joint_name(*ri);
|
char * bone_name = (char *)bc_get_joint_name(*ri);
|
||||||
Bone *bone = BKE_armature_find_bone_name(armature, bone_name);
|
Bone *bone = BKE_armature_find_bone_name(armature, bone_name);
|
||||||
if(bone) {
|
if (bone) {
|
||||||
fprintf(stderr, "Reuse of child bone [%s] as root bone in same Armature is not supported.\n", bone_name);
|
fprintf(stderr, "Reuse of child bone [%s] as root bone in same Armature is not supported.\n", bone_name);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@@ -80,7 +80,7 @@ MaskSplinePoint *ED_mask_point_find_nearest(const bContext *C, Mask *mask, const
|
|||||||
MaskSplinePoint *point = NULL;
|
MaskSplinePoint *point = NULL;
|
||||||
float co[2];
|
float co[2];
|
||||||
const float threshold_sq = threshold * threshold;
|
const float threshold_sq = threshold * threshold;
|
||||||
float len_sq= FLT_MAX, scalex, scaley;
|
float len_sq = FLT_MAX, scalex, scaley;
|
||||||
eMaskWhichHandle which_handle = MASK_WHICH_HANDLE_NONE;
|
eMaskWhichHandle which_handle = MASK_WHICH_HANDLE_NONE;
|
||||||
int width, height;
|
int width, height;
|
||||||
|
|
||||||
|
@@ -486,7 +486,7 @@ static EnumPropertyItem *rna_Brush_stroke_itemf(bContext *C, PointerRNA *UNUSED(
|
|||||||
|
|
||||||
PaintMode mode = BKE_paintmode_get_active_from_context(C);
|
PaintMode mode = BKE_paintmode_get_active_from_context(C);
|
||||||
|
|
||||||
switch(mode) {
|
switch (mode) {
|
||||||
case PAINT_SCULPT:
|
case PAINT_SCULPT:
|
||||||
return sculpt_stroke_method_items;
|
return sculpt_stroke_method_items;
|
||||||
|
|
||||||
|
@@ -231,7 +231,7 @@ static void rna_SmokeModifier_flame_grid_get(PointerRNA *ptr, float *values)
|
|||||||
else
|
else
|
||||||
flame = smoke_get_flame(sds->fluid);
|
flame = smoke_get_flame(sds->fluid);
|
||||||
|
|
||||||
if(flame)
|
if (flame)
|
||||||
memcpy(values, flame, size * sizeof(float));
|
memcpy(values, flame, size * sizeof(float));
|
||||||
else
|
else
|
||||||
memset(values, 0, size * sizeof(float));
|
memset(values, 0, size * sizeof(float));
|
||||||
|
@@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
#define BRICONT \
|
#define BRICONT \
|
||||||
texres->tin= (texres->tin-0.5f) * tex->contrast+tex->bright-0.5f; \
|
texres->tin= (texres->tin-0.5f) * tex->contrast+tex->bright-0.5f; \
|
||||||
if(!(tex->flag & TEX_NO_CLAMP)) { \
|
if (!(tex->flag & TEX_NO_CLAMP)) { \
|
||||||
if (texres->tin < 0.0f) texres->tin= 0.0f; \
|
if (texres->tin < 0.0f) texres->tin= 0.0f; \
|
||||||
else if (texres->tin > 1.0f) texres->tin= 1.0f; \
|
else if (texres->tin > 1.0f) texres->tin= 1.0f; \
|
||||||
} \
|
} \
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
texres->tr= tex->rfac*((texres->tr-0.5f)*tex->contrast+tex->bright-0.5f); \
|
texres->tr= tex->rfac*((texres->tr-0.5f)*tex->contrast+tex->bright-0.5f); \
|
||||||
texres->tg= tex->gfac*((texres->tg-0.5f)*tex->contrast+tex->bright-0.5f); \
|
texres->tg= tex->gfac*((texres->tg-0.5f)*tex->contrast+tex->bright-0.5f); \
|
||||||
texres->tb= tex->bfac*((texres->tb-0.5f)*tex->contrast+tex->bright-0.5f); \
|
texres->tb= tex->bfac*((texres->tb-0.5f)*tex->contrast+tex->bright-0.5f); \
|
||||||
if(!(tex->flag & TEX_NO_CLAMP)) { \
|
if (!(tex->flag & TEX_NO_CLAMP)) { \
|
||||||
if (texres->tr < 0.0f) texres->tr= 0.0f; \
|
if (texres->tr < 0.0f) texres->tr= 0.0f; \
|
||||||
if (texres->tg < 0.0f) texres->tg= 0.0f; \
|
if (texres->tg < 0.0f) texres->tg= 0.0f; \
|
||||||
if (texres->tb < 0.0f) texres->tb= 0.0f; \
|
if (texres->tb < 0.0f) texres->tb= 0.0f; \
|
||||||
|
@@ -57,7 +57,7 @@ VBO::VBO(RAS_DisplayArray *data, unsigned int indices)
|
|||||||
this->vertex_offset = (void*)(((RAS_TexVert*)0)->getXYZ());
|
this->vertex_offset = (void*)(((RAS_TexVert*)0)->getXYZ());
|
||||||
this->normal_offset = (void*)(((RAS_TexVert*)0)->getNormal());
|
this->normal_offset = (void*)(((RAS_TexVert*)0)->getNormal());
|
||||||
this->tangent_offset = (void*)(((RAS_TexVert*)0)->getTangent());
|
this->tangent_offset = (void*)(((RAS_TexVert*)0)->getTangent());
|
||||||
this->color_offset = (void*)(((RAS_TexVert*)0)->getRGBA());;
|
this->color_offset = (void*)(((RAS_TexVert*)0)->getRGBA());
|
||||||
this->uv_offset = (void*)(((RAS_TexVert*)0)->getUV(0));
|
this->uv_offset = (void*)(((RAS_TexVert*)0)->getUV(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user