[Bf-blender-cvs] [e458288fc19] soc-2016-pbvh-painting: surrounded symmetry axis checks with parenthesis just in case

Nathan Vollmer noreply at git.blender.org
Wed Apr 12 12:31:23 CEST 2017


Commit: e458288fc191d2606676b8afa66ace621200f932
Author: Nathan Vollmer
Date:   Wed Apr 12 04:31:14 2017 -0600
Branches: soc-2016-pbvh-painting
https://developer.blender.org/rBe458288fc191d2606676b8afa66ace621200f932

surrounded symmetry axis checks with parenthesis just in case

===================================================================

M	source/blender/editors/sculpt_paint/paint_vertex.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c b/source/blender/editors/sculpt_paint/paint_vertex.c
index 3c4ba91ee4d..4b331adaba0 100644
--- a/source/blender/editors/sculpt_paint/paint_vertex.c
+++ b/source/blender/editors/sculpt_paint/paint_vertex.c
@@ -2796,15 +2796,15 @@ static void wpaint_do_symmetrical_brush_actions(
 			cache->radial_symmetry_pass = 0;
 			calc_brushdata_symm(wp, cache, i, 0, 0);
 
-			if (i & 1 << 0) {
+			if (i & (1 << 0)) {
 				wpaint_do_paint(C, ob, wp, sd, wpd, wpi, me, brush, i, 'X', 0, 0);
 				wpaint_do_radial_symmetry(C, ob, wp, sd, wpd, wpi, me, brush, i, 'X');
 			}
-			if (i & 1 << 1) {
+			if (i & (1 << 1)) {
 				wpaint_do_paint(C, ob, wp, sd, wpd, wpi, me, brush, i, 'Y', 0, 0);
 				wpaint_do_radial_symmetry(C, ob, wp, sd, wpd, wpi, me, brush, i, 'Y');
 			}
-			if (i & 1 << 2) {
+			if (i & (1 << 2)) {
 				wpaint_do_paint(C, ob, wp, sd, wpd, wpi, me, brush, i, 'Z', 0, 0);
 				wpaint_do_radial_symmetry(C, ob, wp, sd, wpd, wpi, me, brush, i, 'Z');
 			}
@@ -3768,15 +3768,15 @@ static void vpaint_do_symmetrical_brush_actions(
 			cache->radial_symmetry_pass = 0;
 			calc_brushdata_symm(vd, cache, i, 0, 0);
 
-			if (i & 1 << 0) {
+			if (i & (1 << 0)) {
 				vpaint_do_paint(C, sd, vd, vpd, ob, me, brush, i, 'X', 0, 0);
 				vpaint_do_radial_symmetry(C, sd, vd, vpd, ob, me, brush, i, 'X');
 			}
-			if (i & 1 << 1) {
+			if (i & (1 << 1)) {
 				vpaint_do_paint(C, sd, vd, vpd, ob, me, brush, i, 'Y', 0, 0);
 				vpaint_do_radial_symmetry(C, sd, vd, vpd, ob, me, brush, i, 'Y');
 			}
-			if (i & 1 << 2) {
+			if (i & (1 << 2)) {
 				vpaint_do_paint(C, sd, vd, vpd, ob, me, brush, i, 'Z', 0, 0);
 				vpaint_do_radial_symmetry(C, sd, vd, vpd, ob, me, brush, i, 'Z');
 			}




More information about the Bf-blender-cvs mailing list