Empty Object: Center images by default

This commit is contained in:
Campbell Barton
2018-07-06 10:05:14 +02:00
parent d56b90705e
commit 62fbb7d4a1

View File

@@ -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;