Cleanup: style

This commit is contained in:
Campbell Barton 2018-12-13 12:30:38 +11:00
parent 3b95b521fc
commit 7d4d9e9dbd
Notes: blender-bot 2023-02-14 04:33:27 +01:00
Referenced by issue #59487, Viewport Render - Crash
Referenced by issue #59352, Make Vertex Parent - the constrained object shifts after parenting
Referenced by issue #59317, principled volume bsdf a always a cube shape
Referenced by issue #59322, View Layer - Search not working
Referenced by issue #59306, Incorrect White
Referenced by issue #59309, Viewport face orientation colours (non-overlay) appear to have been unified
Referenced by issue #59295, Removing "Frame selected" default shortcut crashes Blender.
Referenced by issue #59288, sqlite3 missing in Blender 2.80 Windows but not on Mac
Referenced by issue #59170, Box selection behavior is bugged after specific control.
3 changed files with 10 additions and 9 deletions

View File

@ -1197,7 +1197,7 @@ static void layerDefault_mvert_skin(void *data, int count)
static void layerCopy_mvert_skin(const void *source, void *dest,
int count)
{
memcpy(dest, source, sizeof (MVertSkin) * count);
memcpy(dest, source, sizeof(MVertSkin) * count);
}
static void layerInterp_mvert_skin(

View File

@ -348,7 +348,8 @@ void drw_state_set(DRWState state)
if (CHANGED_ANY_STORE_VAR(
DRW_STATE_OFFSET_POSITIVE |
DRW_STATE_OFFSET_NEGATIVE,
test)) {
test))
{
if (test) {
glEnable(GL_POLYGON_OFFSET_FILL);
/* Stencil Write */

View File

@ -878,11 +878,11 @@ int ED_transform_calc_gizmo_stats(
totsel++;
}
if ((ebo->flag & BONE_ROOTSEL) &&
/* don't include same point multiple times */
((ebo->flag & BONE_CONNECTED) &&
(ebo->parent != NULL) &&
(ebo->parent->flag & BONE_TIPSEL) &&
EBONE_VISIBLE(arm, ebo->parent)) == 0)
/* don't include same point multiple times */
((ebo->flag & BONE_CONNECTED) &&
(ebo->parent != NULL) &&
(ebo->parent->flag & BONE_TIPSEL) &&
EBONE_VISIBLE(arm, ebo->parent)) == 0)
{
calc_tw_center_with_matrix(tbounds, ebo->head, use_mat_local, mat_local);
totsel++;
@ -1303,8 +1303,8 @@ void drawDial3d(const TransInfo *t)
mat_basis[2][3] = -dot_v3v3(mat_basis[2], mat_basis[3]);
if (ED_view3d_win_to_3d_on_plane(
t->ar, mat_basis[2], (float[2]){UNPACK2(t->mouse.imval)},
false, mat_basis[1]))
t->ar, mat_basis[2], (float[2]){UNPACK2(t->mouse.imval)},
false, mat_basis[1]))
{
sub_v3_v3(mat_basis[1], mat_basis[3]);
normalize_v3(mat_basis[1]);