Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2008-04-16 12:48:49 +0400
committerCampbell Barton <ideasman42@gmail.com>2008-04-16 12:48:49 +0400
commit83c540189691afce0557b1588121564f615e4275 (patch)
tree28e8a215a0425dcb7f946cc60f811cbcc598bdec /source/blender/src/transform_generics.c
parent6b2a65a3b6d75e5d599717ef8b48eff6275dbbdb (diff)
replace magic numbers with constants for (G.vd->persp), view naming was also using persp as a flag which worked but isnt correct.
Diffstat (limited to 'source/blender/src/transform_generics.c')
-rw-r--r--source/blender/src/transform_generics.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/transform_generics.c b/source/blender/src/transform_generics.c
index dfbed45b3bc..a884e740bbd 100644
--- a/source/blender/src/transform_generics.c
+++ b/source/blender/src/transform_generics.c
@@ -120,7 +120,7 @@ void getViewVector(float coord[3], float vec[3])
{
TransInfo *t = BIF_GetTransInfo();
- if (t->persp)
+ if (t->persp != V3D_ORTHO)
{
float p1[4], p2[4];
@@ -962,7 +962,7 @@ void calculateCenter(TransInfo *t)
/* voor panning from cameraview */
if(t->flag & T_OBJECT) {
- if( G.vd->camera==OBACT && G.vd->persp>1) {
+ if( G.vd->camera==OBACT && G.vd->persp==V3D_CAMOB) {
float axis[3];
/* persinv is nasty, use viewinv instead, always right */
VECCOPY(axis, t->viewinv[2]);