diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-09-10 05:00:03 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-09-10 05:00:03 +0400 |
commit | fc6c283271f0193e5626b2439b311114022b284a (patch) | |
tree | e3d537d275b8b952fdccf3a79cbb83dd783b8d90 /source/blender/editors | |
parent | ec388a2a15346bace87cccc7e4da0eff89014ebb (diff) |
code cleanup: use bool for imbuf allocation functions.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_draw.c | 2 | ||||
-rw-r--r-- | source/blender/editors/transform/transform_snap.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c index 349d644310b..e9a3c48d8dc 100644 --- a/source/blender/editors/space_outliner/outliner_draw.c +++ b/source/blender/editors/space_outliner/outliner_draw.c @@ -574,7 +574,7 @@ static void outliner_draw_restrictbuts(uiBlock *block, Scene *scene, ARegion *ar int but_flag = UI_BUT_DRAG_LOCK; gr = (Group *)tselem->id; - if(gr->id.lib) + if (gr->id.lib) but_flag |= UI_BUT_DISABLED; uiBlockSetEmboss(block, UI_EMBOSSN); diff --git a/source/blender/editors/transform/transform_snap.c b/source/blender/editors/transform/transform_snap.c index e2b81d794c7..4a208f6eee1 100644 --- a/source/blender/editors/transform/transform_snap.c +++ b/source/blender/editors/transform/transform_snap.c @@ -1671,7 +1671,8 @@ static bool snapObject(Scene *scene, short snap_mode, ARegion *ar, Object *ob, f } else if (ob->type == OB_EMPTY) { retval = snapEmpty(snap_mode, ar, ob, obmat, ray_start, ray_normal, mval, r_loc, r_no, r_dist_px, r_depth); - } else if (ob->type == OB_CAMERA) { + } + else if (ob->type == OB_CAMERA) { retval = snapCamera(snap_mode, ar, scene, ob, obmat, ray_start, ray_normal, mval, r_loc, r_no, r_dist_px, r_depth); } |