diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-07-11 01:45:00 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-07-11 01:45:16 +0300 |
commit | e0c163661d339d35a518275993059136ee1e4e3e (patch) | |
tree | 853c0ab917fc6571e13cd649e5f734a6f45988bb | |
parent | 885870be511fabf83500260e56b1ec3c11503f40 (diff) |
Add missing braces
-rw-r--r-- | source/blender/editors/object/object_transform.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/editors/object/object_transform.c b/source/blender/editors/object/object_transform.c index c681b945788..4d7d7df0d2f 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 { |