replace magic numbers with constants for (G.vd->persp), view naming was also using persp as a flag which worked but isnt correct.

This commit is contained in:
2008-04-16 08:48:49 +00:00
parent 6b2a65a3b6
commit 83c5401896
17 changed files with 118 additions and 123 deletions

View File

@@ -3853,7 +3853,7 @@ void createTransData(TransInfo *t)
t->flag |= T_OBJECT;
}
if((t->flag & T_OBJECT) && G.vd->camera==OBACT && G.vd->persp>1) {
if((t->flag & T_OBJECT) && G.vd->camera==OBACT && G.vd->persp==V3D_CAMOB) {
t->flag |= T_CAMERA;
}