[Bf-blender-cvs] [e0c1636] master: Add missing braces

Campbell Barton noreply at git.blender.org
Sun Jul 10 15:51:28 CEST 2016


Commit: e0c163661d339d35a518275993059136ee1e4e3e
Author: Campbell Barton
Date:   Mon Jul 11 08:45:00 2016 +1000
Branches: master
https://developer.blender.org/rBe0c163661d339d35a518275993059136ee1e4e3e

Add missing braces

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

M	source/blender/editors/object/object_transform.c

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

diff --git a/source/blender/editors/object/object_transform.c b/source/blender/editors/object/object_transform.c
index c681b94..4d7d7df 100644
--- a/source/blender/editors/object/object_transform.c
+++ b/source/blender/editors/object/object_transform.c
@@ -129,16 +129,18 @@ static void object_clear_rot(Object *ob, const bool clear_delta)
 					ob->quat[0] = 1.0f;
 					if (clear_delta) ob->dquat[0] = 1.0f;
 				}
-				if ((ob->protectflag & OB_LOCK_ROTX) == 0)
+				if ((ob->protectflag & OB_LOCK_ROTX) == 0) {
 					ob->quat[1] = 0.0f;
 					if (clear_delta) ob->dquat[1] = 0.0f;
-				if ((ob->protectflag & OB_LOCK_ROTY) == 0)
+				}
+				if ((ob->protectflag & OB_LOCK_ROTY) == 0) {
 					ob->quat[2] = 0.0f;
 					if (clear_delta) ob->dquat[2] = 0.0f;
-				if ((ob->protectflag & OB_LOCK_ROTZ) == 0)
+				}
+				if ((ob->protectflag & OB_LOCK_ROTZ) == 0) {
 					ob->quat[3] = 0.0f;
 					if (clear_delta) ob->dquat[3] = 0.0f;
-					
+				}
 				/* TODO: does this quat need normalizing now? */
 			}
 			else {




More information about the Bf-blender-cvs mailing list