Cleanup: compiler warnings
This commit is contained in:
parent
3848507511
commit
c1ec2e9d5f
|
@ -246,7 +246,7 @@ static bool isDisabled(GpencilModifierData *md, int UNUSED(userRenderParams))
|
|||
{
|
||||
WeightGpencilModifierData *mmd = (WeightGpencilModifierData *)md;
|
||||
|
||||
return !(mmd->target_vgname && mmd->target_vgname[0] != '\0');
|
||||
return (mmd->target_vgname[0] == '\0');
|
||||
}
|
||||
|
||||
static void distance_panel_draw(const bContext *UNUSED(C), Panel *panel)
|
||||
|
|
|
@ -552,7 +552,7 @@ BLI_INLINE int lineart_LineIntersectTest2d(
|
|||
k1 = (a2[1] - a1[1]) / x_diff;
|
||||
k2 = (b2[1] - b1[1]) / x_diff2;
|
||||
|
||||
if ((k1 == k2))
|
||||
if (k1 == k2)
|
||||
return 0;
|
||||
|
||||
x = (a1[1] - b1[1] - k1 * a1[0] + k2 * b1[0]) / (k2 - k1);
|
||||
|
|
Loading…
Reference in New Issue