diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-11-18 05:30:30 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-11-18 05:36:26 +0300 |
commit | 88512646c0bafa1e31abe41025fc8d837ad77583 (patch) | |
tree | 329b47400f76b91b31e6f90f10576506bc3306da /source/blender/editors | |
parent | d13edeaed4bf72cfc79f961375f44351db9952d0 (diff) |
Cleanup: clarify precedence of operations
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/interface/interface_layout.c | 2 | ||||
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_mask.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c index bd42e5db531..d61e80e6505 100644 --- a/source/blender/editors/interface/interface_layout.c +++ b/source/blender/editors/interface/interface_layout.c @@ -956,7 +956,7 @@ static uiBut *ui_item_with_label(uiLayout *layout, #endif const bool is_keymapitem_ptr = RNA_struct_is_a(ptr->type, &RNA_KeyMapItem); - if ((flag & flag & UI_ITEM_R_FULL_EVENT) && !is_keymapitem_ptr) { + if ((flag & UI_ITEM_R_FULL_EVENT) && !is_keymapitem_ptr) { RNA_warning("Data is not a keymap item struct: %s. Ignoring 'full_event' option.", RNA_struct_identifier(ptr->type)); } diff --git a/source/blender/editors/sculpt_paint/paint_mask.c b/source/blender/editors/sculpt_paint/paint_mask.c index 4dd7ecb09ca..11d897cf76f 100644 --- a/source/blender/editors/sculpt_paint/paint_mask.c +++ b/source/blender/editors/sculpt_paint/paint_mask.c @@ -531,7 +531,7 @@ static SculptGestureContext *sculpt_gesture_init_from_line(bContext *C, wmOperat sgcontext, line_points, plane_points, offset_plane_points); /* Calculate line plane and normal. */ - const bool flip = sgcontext->line.flip ^ !sgcontext->vc.rv3d->is_persp; + const bool flip = sgcontext->line.flip ^ (!sgcontext->vc.rv3d->is_persp); sculpt_gesture_line_plane_from_tri(sgcontext->line.true_plane, sgcontext, flip, |