Fix T66605: Operation on origins not working correct
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 9 Jul 2019 16:52:41 +0000 (18:52 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 9 Jul 2019 16:52:41 +0000 (18:52 +0200)
release/datafiles/locale
release/scripts/addons
release/scripts/addons_contrib
source/blender/editors/object/object_transform.c
source/tools

index 6a6b84fd50538a65276c729b5d396be615bc79f2..0f771b0f380a1ae21d859416043c6119f66e40c9 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 6a6b84fd50538a65276c729b5d396be615bc79f2
+Subproject commit 0f771b0f380a1ae21d859416043c6119f66e40c9
index 5819abebf40d5f09543bfe2af3aa4dfa698b3114..aa3366b7805bbe4d1afee890bda81b6d91bd47be 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 5819abebf40d5f09543bfe2af3aa4dfa698b3114
+Subproject commit aa3366b7805bbe4d1afee890bda81b6d91bd47be
index f00d4fbe84852e40af281267c06dc21bafb5df49..0aa23a4d6177bed4c12392c81d0b767a8b35fe61 160000 (submodule)
@@ -1 +1 @@
-Subproject commit f00d4fbe84852e40af281267c06dc21bafb5df49
+Subproject commit 0aa23a4d6177bed4c12392c81d0b767a8b35fe61
index f52407d10b0f5b68ccfcae4e735cb1a92ff6f4f6..9c98fdc2a2e0f980497af581d873ee9122b5db94 100644 (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;
     }
   }
index 8598818108ddaf35e30d2a2dbd408ad371e41eb5..aa9cc18913aca559e932d5b7894e3c222ccffae4 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 8598818108ddaf35e30d2a2dbd408ad371e41eb5
+Subproject commit aa9cc18913aca559e932d5b7894e3c222ccffae4