From 77497175fa1f2f3aacf4ab966df9d7223d4034cc Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Tue, 15 Aug 2017 15:59:38 +0200 Subject: Cleanup/refactor: no new general arg-less macros enforcing var names please! We do have an history of those pieces of evil in our code, would be nice to get fully rid of it, but at the very least let's not add more of them in new code. :) --- source/blender/editors/space_clip/tracking_ops_orient.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/space_clip') diff --git a/source/blender/editors/space_clip/tracking_ops_orient.c b/source/blender/editors/space_clip/tracking_ops_orient.c index 7b21e11d342..c411f64a88b 100644 --- a/source/blender/editors/space_clip/tracking_ops_orient.c +++ b/source/blender/editors/space_clip/tracking_ops_orient.c @@ -99,7 +99,7 @@ static Object *get_orientation_object(bContext *C) object = get_camera_with_movieclip(scene, clip); } else { - object = OBACT_NEW; + object = OBACT_NEW(sl); } if (object != NULL && object->parent != NULL) { @@ -122,7 +122,7 @@ static int set_orientation_poll(bContext *C) return true; } else { - return OBACT_NEW != NULL; + return OBACT_NEW(sl) != NULL; } } } -- cgit v1.2.3