Fix T66605: Operation on origins not working correct

This commit is contained in:
Sergey Sharybin
2019-07-09 18:52:41 +02:00
parent 3f208ed927
commit 23f1bc7414
5 changed files with 5 additions and 5 deletions

View File

@@ -1062,7 +1062,7 @@ static int object_origin_set_exec(bContext *C, wmOperator *op)
/* move active first */
if (ob == obact) {
memmove(&objects[1], objects, object_index);
memmove(&objects[1], objects, object_index * sizeof(Object *));
objects[0] = ob;
}
}