Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-09-04 16:08:57 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-09-04 17:11:27 +0300
commitfc115e1ab23a9c458ea1496f160e14009e68cd54 (patch)
treef61d7a4d8c09d5ebf6839299ec00998976f31f3f /source/blender/editors/object/object_hook.c
parent0f50caf5560f9c2f9af393eefdf2b209210dbfba (diff)
Cleanup: remove legacy layer and dupli code.
Diffstat (limited to 'source/blender/editors/object/object_hook.c')
-rw-r--r--source/blender/editors/object/object_hook.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/editors/object/object_hook.c b/source/blender/editors/object/object_hook.c
index 392fde4ceec..ff9cc65180b 100644
--- a/source/blender/editors/object/object_hook.c
+++ b/source/blender/editors/object/object_hook.c
@@ -450,14 +450,12 @@ static bool hook_op_edit_poll(bContext *C)
static Object *add_hook_object_new(Main *bmain, Scene *scene, ViewLayer *view_layer, Object *obedit)
{
- Base *base, *basedit;
+ Base *basedit;
Object *ob;
ob = BKE_object_add(bmain, scene, view_layer, OB_EMPTY, NULL);
basedit = BKE_view_layer_base_find(view_layer, obedit);
- base = view_layer->basact;
- base->lay = ob->lay = obedit->lay;
BLI_assert(view_layer->basact->object == ob);
/* icky, BKE_object_add sets new base as active.