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>2004-12-06 00:46:30 +0300
committerTon Roosendaal <ton@blender.org>2004-12-06 00:46:30 +0300
commit0b24f20a79c946d9dca7b67e48d7a578d373d789 (patch)
tree1cd2b21adc338bc7f5f94df17be82991086e1d61 /source/blender/src/drawmesh.c
parent6c52311ee40e9d32201cf3456b89537fb35736f6 (diff)
Bugfix/feat request... in textured view mode the Build Effect didnt show.
Diffstat (limited to 'source/blender/src/drawmesh.c')
-rw-r--r--source/blender/src/drawmesh.c21
1 files changed, 13 insertions, 8 deletions
diff --git a/source/blender/src/drawmesh.c b/source/blender/src/drawmesh.c
index 83e2fb7a13f..99ba58c09c9 100644
--- a/source/blender/src/drawmesh.c
+++ b/source/blender/src/drawmesh.c
@@ -59,14 +59,15 @@
#include "DNA_view3d_types.h"
#include "BKE_bmfont.h"
+#include "BKE_displist.h"
+#include "BKE_effect.h"
+#include "BKE_global.h"
+#include "BKE_image.h"
#include "BKE_main.h"
+#include "BKE_material.h"
#include "BKE_mesh.h"
-#include "BKE_image.h"
-#include "BKE_property.h"
-#include "BKE_global.h"
-#include "BKE_displist.h"
#include "BKE_object.h"
-#include "BKE_material.h"
+#include "BKE_property.h"
#include "BIF_resources.h"
#include "BIF_gl.h"
@@ -891,7 +892,7 @@ void draw_tface_mesh(Object *ob, Mesh *me, int dt)
bProperty *prop = get_property(ob, "Text");
int editing= (G.f & (G_VERTEXPAINT+G_FACESELECT+G_TEXTUREPAINT+G_WEIGHTPAINT)) && (ob==((G.scene->basact) ? (G.scene->basact->object) : 0));
MVert *mvert=NULL;
- int totface;
+ int start=0, totface;
if(mesh_uses_displist(me) && editing==0) {
DispList *dl= find_displist(&me->disp, DL_MESH);
@@ -911,7 +912,10 @@ void draw_tface_mesh(Object *ob, Mesh *me, int dt)
DispList *dl= find_displist(&ob->disp, DL_VERTS);
if (dl) extverts= dl->verts;
+ /* although buildvars are not supported in engine, they're in Blender... */
totface= me->totface;
+ set_buildvars(ob, &start, &totface);
+
mvert= me->mvert;
mface= me->mface;
tface= me->tface;
@@ -920,7 +924,7 @@ void draw_tface_mesh(Object *ob, Mesh *me, int dt)
// tface can be NULL
if(tface==NULL) {
- for (a=0; a<totface; a++) {
+ for (a=start; a<totface; a++) {
int v1idx, v2idx, v3idx, v4idx, mf_smooth, matnr;
float *v1, *v2, *v3, *v4;
MFace *mf= &mface[a];
@@ -979,7 +983,8 @@ void draw_tface_mesh(Object *ob, Mesh *me, int dt)
}
}
else { // has tfaces
- for (a=0; a<totface; a++, tface++) {
+ tface+= start;
+ for (a=start; a<totface; a++, tface++) {
int v1idx, v2idx, v3idx, v4idx, mf_smooth, matnr, badtex;
float *v1, *v2, *v3, *v4;
MFace *mf= &mface[a];