Code Cleanup: use ELEM macro when checking object type

This commit is contained in:
2013-12-09 17:07:59 +11:00
parent 75348e6c13
commit c46463eb3f
2 changed files with 5 additions and 4 deletions

View File

@@ -942,7 +942,7 @@ Object *BKE_object_add_only_object(Main *bmain, int type, const char *name)
ob->empty_drawtype = OB_PLAINAXES;
ob->empty_drawsize = 1.0;
if (type == OB_CAMERA || type == OB_LAMP || type == OB_SPEAKER) {
if (ELEM3(type, OB_LAMP, OB_CAMERA, OB_SPEAKER)) {
ob->trackflag = OB_NEGZ;
ob->upflag = OB_POSY;
}