Commit: 62fbb7d4a10bea1ce88a486657a87743b93c9fd1
Author: Campbell Barton
Date:   Fri Jul 6 10:05:14 2018 +0200
Branches: master
https://developer.blender.org/rB62fbb7d4a10bea1ce88a486657a87743b93c9fd1

Empty Object: Center images by default

===================================================================

M       source/blender/blenkernel/intern/object.c

===================================================================

diff --git a/source/blender/blenkernel/intern/object.c 
b/source/blender/blenkernel/intern/object.c
index eeb0ab22bd6..86326655cfe 100644
--- a/source/blender/blenkernel/intern/object.c
+++ b/source/blender/blenkernel/intern/object.c
@@ -619,6 +619,9 @@ void BKE_object_init(Object *ob)
        ob->dt = OB_TEXTURE;
        ob->empty_drawtype = OB_PLAINAXES;
        ob->empty_drawsize = 1.0;
+       if (ob->type == OB_EMPTY) {
+               copy_v2_fl(ob->ima_ofs, -0.5f);
+       }
 
        if (ELEM(ob->type, OB_LAMP, OB_CAMERA, OB_SPEAKER)) {
                ob->trackflag = OB_NEGZ;

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to