First commit for the transform coding for me!

- fixed warnings in compile (transform.h struct defines)
- drawPropCircle was on wrong location in editmode
- removed prop circle drawing for old transform (sorry, but we're going to
  move soon anyway!)
- removed spaces from transform.c
This commit is contained in:
2005-02-19 16:37:48 +00:00
parent e4d74575cc
commit 09f21e45d7
6 changed files with 89 additions and 72 deletions

View File

@@ -292,6 +292,7 @@ void drawConstraint() {
}
/* called from drawview.c, as ane xtra per-window draw option */
void drawPropCircle()
//void drawPropCircle(TransInfo *t)
{
@@ -301,11 +302,17 @@ void drawPropCircle()
float tmat[4][4], imat[4][4];
BIF_ThemeColor(TH_GRID);
/* if editmode we need to go into object space */
if(G.obedit) mymultmatrix(G.obedit->obmat);
mygetmatrix(tmat);
Mat4Invert(imat, tmat);
drawcircball(t->center, t->propsize, imat);
/* if editmode we restore */
if(G.obedit) myloadmatrix(G.vd->viewmat);
}
}