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:
authorTon Roosendaal <ton@blender.org>2007-12-29 21:44:31 +0300
committerTon Roosendaal <ton@blender.org>2007-12-29 21:44:31 +0300
commit5307c07832b088c9ec9c338d738523a9939a9486 (patch)
tree52431322f3b62b1827e5adfb09f106f2d669f7aa /source/blender/radiosity
parentd8700297482bb2e1e7d3be487bd3694c874883e4 (diff)
Badlevel call amount reduced to 21!
(worst was radio module)
Diffstat (limited to 'source/blender/radiosity')
-rw-r--r--source/blender/radiosity/intern/source/raddisplay.c43
-rw-r--r--source/blender/radiosity/intern/source/radfactors.c2
-rw-r--r--source/blender/radiosity/intern/source/radio.c16
-rw-r--r--source/blender/radiosity/intern/source/radnode.c4
-rw-r--r--source/blender/radiosity/intern/source/radpostprocess.c18
-rw-r--r--source/blender/radiosity/intern/source/radpreprocess.c8
-rw-r--r--source/blender/radiosity/intern/source/radrender.c5
7 files changed, 27 insertions, 69 deletions
diff --git a/source/blender/radiosity/intern/source/raddisplay.c b/source/blender/radiosity/intern/source/raddisplay.c
index dcd53b61f46..0421a633d83 100644
--- a/source/blender/radiosity/intern/source/raddisplay.c
+++ b/source/blender/radiosity/intern/source/raddisplay.c
@@ -57,11 +57,6 @@
#include "BKE_main.h"
#include "BIF_gl.h"
-#include "BIF_screen.h"
-#include "BIF_space.h"
-#include "BIF_mywindow.h"
-
-#include "BSE_view.h"
#include "radio.h"
@@ -208,7 +203,7 @@ void drawpatch_ext(RPatch *patch, unsigned int col)
cpack(col);
- oldsa= curarea;
+ oldsa= NULL; // XXX curarea;
sa= G.curscreen->areabase.first;
while(sa) {
@@ -216,8 +211,8 @@ void drawpatch_ext(RPatch *patch, unsigned int col)
v3d= sa->spacedata.first;
/* use mywinget() here: otherwise it draws in header */
- if(sa->win != mywinget()) areawinset(sa->win);
- persp(PERSP_VIEW);
+// XXX if(sa->win != mywinget()) areawinset(sa->win);
+// XXX persp(PERSP_VIEW);
if(v3d->zbuf) glDisable(GL_DEPTH_TEST);
drawnodeWire(patch->first);
if(v3d->zbuf) glEnable(GL_DEPTH_TEST); // pretty useless?
@@ -225,7 +220,7 @@ void drawpatch_ext(RPatch *patch, unsigned int col)
sa= sa->next;
}
- if(oldsa && oldsa!=curarea) areawinset(oldsa->win);
+// XXX if(oldsa && oldsa!=curarea) areawinset(oldsa->win);
glFlush();
glDrawBuffer(GL_BACK);
@@ -416,21 +411,11 @@ void RAD_drawall(int depth_is_on)
}
}
else {
- if(!(get_qual()&LR_SHIFTKEY)) {
-
- for(a=0; a<RG.totface; a++) {
- RAD_NEXTFACE(a);
-
- drawfaceWire(face);
- }
- }
- else {
- cpack(0);
- rp= RG.patchbase.first;
- while(rp) {
- drawsingnodeWire(rp->first);
- rp= rp->next;
- }
+ cpack(0);
+ rp= RG.patchbase.first;
+ while(rp) {
+ drawsingnodeWire(rp->first);
+ rp= rp->next;
}
}
}
@@ -472,19 +457,19 @@ void rad_forcedraw()
{
ScrArea *sa, *oldsa;
- oldsa= curarea;
+ oldsa= NULL; // XXX curarea;
sa= G.curscreen->areabase.first;
while(sa) {
if (sa->spacetype==SPACE_VIEW3D) {
/* use mywinget() here: othwerwise it draws in header */
- if(sa->win != mywinget()) areawinset(sa->win);
- scrarea_do_windraw(sa);
+// XXX if(sa->win != mywinget()) areawinset(sa->win);
+// XXX scrarea_do_windraw(sa);
}
sa= sa->next;
}
- screen_swapbuffers();
+// XXX screen_swapbuffers();
- if(oldsa && oldsa!=curarea) areawinset(oldsa->win);
+// XXX if(oldsa && oldsa!=curarea) areawinset(oldsa->win);
}
diff --git a/source/blender/radiosity/intern/source/radfactors.c b/source/blender/radiosity/intern/source/radfactors.c
index b6411522179..555438224e7 100644
--- a/source/blender/radiosity/intern/source/radfactors.c
+++ b/source/blender/radiosity/intern/source/radfactors.c
@@ -50,8 +50,6 @@
#include "BKE_global.h"
#include "BKE_main.h"
-#include "BIF_screen.h"
-
#include "radio.h"
#include "RE_render_ext.h" /* for `RE_zbufferall_radio and RE_zbufferall_radio */
diff --git a/source/blender/radiosity/intern/source/radio.c b/source/blender/radiosity/intern/source/radio.c
index 8d08632aedb..1b469b319d7 100644
--- a/source/blender/radiosity/intern/source/radio.c
+++ b/source/blender/radiosity/intern/source/radio.c
@@ -91,11 +91,7 @@
#include "BKE_global.h"
#include "BKE_main.h"
-#include "BIF_screen.h" /* curarea */
-#include "BIF_space.h" /* allqueue */
-
#include "radio.h"
-#include "mydevice.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
@@ -191,10 +187,10 @@ void rad_status_str(char *str)
void rad_printstatus()
{
/* actions always are started from a buttonswindow */
- if(curarea) {
- scrarea_do_windraw(curarea);
- screen_swapbuffers();
- }
+// XX if(curarea) {
+// scrarea_do_windraw(curarea);
+// screen_swapbuffers();
+// }
}
void rad_setlimits()
@@ -357,7 +353,7 @@ void rad_subdivshootpatch()
removeEqualNodes(RG.nodelim);
closehemiwindows();
- allqueue(REDRAWVIEW3D, 1);
+// XXX allqueue(REDRAWVIEW3D, 1);
}
void rad_subdivshootelem(void)
@@ -376,7 +372,7 @@ void rad_subdivshootelem(void)
removeEqualNodes(RG.nodelim);
closehemiwindows();
- allqueue(REDRAWVIEW3D, 1);
+// XXX allqueue(REDRAWVIEW3D, 1);
}
void rad_limit_subdivide()
diff --git a/source/blender/radiosity/intern/source/radnode.c b/source/blender/radiosity/intern/source/radnode.c
index 168ad2de725..dc2ea3cc34d 100644
--- a/source/blender/radiosity/intern/source/radnode.c
+++ b/source/blender/radiosity/intern/source/radnode.c
@@ -49,8 +49,6 @@
#include "BKE_global.h"
#include "BKE_main.h"
-#include "BIF_toolbox.h"
-
#include "radio.h"
#ifdef HAVE_CONFIG_H
@@ -221,7 +219,7 @@ void free_fastAll()
void start_fastmalloc(char *str)
{
if(fastmallocstr) {
- error("Fastmalloc in use: %s", fastmallocstr);
+// XXX error("Fastmalloc in use: %s", fastmallocstr);
return;
}
fastmallocstr= str;
diff --git a/source/blender/radiosity/intern/source/radpostprocess.c b/source/blender/radiosity/intern/source/radpostprocess.c
index ec2de5f8712..8af25b902d3 100644
--- a/source/blender/radiosity/intern/source/radpostprocess.c
+++ b/source/blender/radiosity/intern/source/radpostprocess.c
@@ -53,7 +53,6 @@
#include "BLI_blenlib.h"
#include "BLI_arithb.h"
#include "BLI_ghash.h"
-#include "BIF_toolbox.h" // notice()
#include "DNA_material_types.h"
#include "DNA_mesh_types.h"
@@ -69,11 +68,6 @@
#include "BKE_object.h"
#include "BKE_utildefines.h"
-#include "BIF_screen.h" /* waitcursor */
-#include "BIF_editview.h" /* deselectall */
-
-#include "BDR_editobject.h" /* delete_obj */
-
#include "radio.h"
/* locals? not. done in radio.h... */
@@ -627,7 +621,7 @@ void removeEqualNodes(short limit)
thresh= 1.0/(256.0*RG.radfactor);
thresh= 3.0*pow(thresh, RG.gamma);
- waitcursor(1);
+// XXX waitcursor(1);
while(foundone) {
foundone= 0;
@@ -682,7 +676,7 @@ void removeEqualNodes(short limit)
makeGlobalElemArray();
}
}
- waitcursor(0);
+// XXX waitcursor(0);
}
unsigned int rad_find_or_add_mvert(Mesh *me, MFace *mf, RNode *orignode, float *w, float *radco, GHash *hash)
@@ -720,8 +714,8 @@ void rad_addmesh(void)
if(RG.totface==0)
return;
- if(RG.totmat==MAXMAT)
- notice("warning: cannot assign more than 16 materials to 1 mesh");
+// if(RG.totmat==MAXMAT)
+// XXX notice("warning: cannot assign more than 16 materials to 1 mesh");
/* create the mesh */
ob= add_object(OB_MESH);
@@ -812,7 +806,7 @@ void rad_replacemesh(void)
{
RPatch *rp;
- deselectall();
+// XXX deselectall();
rp= RG.patchbase.first;
while(rp) {
@@ -825,7 +819,7 @@ void rad_replacemesh(void)
}
copy_objectflags();
- delete_obj(1);
+// XXX delete_obj(1);
rad_addmesh();
}
diff --git a/source/blender/radiosity/intern/source/radpreprocess.c b/source/blender/radiosity/intern/source/radpreprocess.c
index 0fef1414482..13c3477383c 100644
--- a/source/blender/radiosity/intern/source/radpreprocess.c
+++ b/source/blender/radiosity/intern/source/radpreprocess.c
@@ -65,16 +65,8 @@
#include "BKE_object.h" /* during_script() */
#include "BKE_utildefines.h"
-#include "BIF_toolbox.h"
-
-#include "BDR_editface.h"
-
#include "radio.h"
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
void setparelem(RNode *rn, RPatch *par);
void splitconnected()
diff --git a/source/blender/radiosity/intern/source/radrender.c b/source/blender/radiosity/intern/source/radrender.c
index ee52956bbd2..4073540cbe8 100644
--- a/source/blender/radiosity/intern/source/radrender.c
+++ b/source/blender/radiosity/intern/source/radrender.c
@@ -66,8 +66,6 @@
#include "BKE_global.h"
#include "BKE_main.h"
-#include "BIF_screen.h"
-
#include "radio.h"
/* the radiosity module uses internal includes from render! */
@@ -75,9 +73,6 @@
#include "render_types.h"
#include "renderdatabase.h"
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
/* only needed now for a print, if its useful move to RG */
static float maxenergy;