Made WeightPaint use shaded mode. This thanks to the preparations as done

by daniel before. :)
Note; the shaded display uses smooth normals by default, because thats how
the derived mesh works!

Daniel; I've changed the G_WEIGHTPAINT hack in derivedmesh code... no idea
how this could work even. Still ugly though.
This commit is contained in:
2005-09-24 13:49:55 +00:00
parent ac4dde3477
commit e1c56fc201
5 changed files with 20 additions and 22 deletions

View File

@@ -68,12 +68,6 @@
#include "BSE_drawipo.h"
#include "BSE_drawoops.h"
#include "BKE_depsgraph.h"
extern void build_deps(short mask);
//extern void draw_deps(DagNode *node);
float oopscalex;
void boundbox_oops()
@@ -404,17 +398,9 @@ void drawoopsspace(ScrArea *sa, void *spacedata)
if(soops==0) return;
if(soops->type==SO_OUTLINER) draw_outliner(sa, soops);
else if (soops->type==SO_DEPSGRAPH) {
build_deps(soops->deps_flags);
boundbox_deps();
calc_scrollrcts(sa,G.v2d, curarea->winx, curarea->winy);
myortho2(G.v2d->cur.xmin, G.v2d->cur.xmax, G.v2d->cur.ymin, G.v2d->cur.ymax);
oopscalex= .14*((float)curarea->winx)/(G.v2d->cur.xmax-G.v2d->cur.xmin);
calc_ipogrid(); /* for scrollvariables */
draw_all_deps();
} else {
else {
build_oops(); /* changed to become first call... */
boundbox_oops();
calc_scrollrcts(sa, G.v2d, curarea->winx, curarea->winy);
@@ -422,7 +408,6 @@ void drawoopsspace(ScrArea *sa, void *spacedata)
oopscalex= .14*((float)curarea->winx)/(G.v2d->cur.xmax-G.v2d->cur.xmin);
calc_ipogrid(); /* for scrollvariables */
build_oops();
oops= soops->oops.first;
while(oops) {