diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-09-07 07:09:50 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-09-07 07:09:50 +0300 |
commit | c350d1eb1387e763ca156f065305a0bce666ceb9 (patch) | |
tree | a611bf60a6b6e0922ab0b3ad9b2a36f33b78fe8a /source/blender/editors/object/object_constraint.c | |
parent | c695523687ef5bd43f50b6d057de785fad454be8 (diff) |
Cleanup: remove redundant scene argument in BKE_object_add
Diffstat (limited to 'source/blender/editors/object/object_constraint.c')
-rw-r--r-- | source/blender/editors/object/object_constraint.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/object/object_constraint.c b/source/blender/editors/object/object_constraint.c index bdd5094a9ef..2cca3045aee 100644 --- a/source/blender/editors/object/object_constraint.c +++ b/source/blender/editors/object/object_constraint.c @@ -1970,13 +1970,12 @@ static bool get_new_constraint_target( /* if still not found, add a new empty to act as a target (if allowed) */ if ((found == false) && (add)) { Main *bmain = CTX_data_main(C); - Scene *scene = CTX_data_scene(C); ViewLayer *view_layer = CTX_data_view_layer(C); Base *base = BASACT(view_layer); Object *obt; /* add new target object */ - obt = BKE_object_add(bmain, scene, view_layer, OB_EMPTY, NULL); + obt = BKE_object_add(bmain, view_layer, OB_EMPTY, NULL); /* transform cent to global coords for loc */ if (pchanact) { |