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>2005-09-22 21:00:58 +0400
committerTon Roosendaal <ton@blender.org>2005-09-22 21:00:58 +0400
commit0f6194e5bcf14a098e2e0fef8d8cb22bd2066eda (patch)
tree0fc08ddafaede03c852e42389600e8ce807263c3 /source/blender/radiosity
parent7cd510f2d8f86d2288754f5e375dfed4e9b629e6 (diff)
Bugfix #3077
Radiosity didn't add edges block, on "Replace Meshes". Caused wireframe not to draw, but also crashes like for join(). Also: added patch that sets the drawflags in edges derived from the ones set in faces. This ensures the conversion to be done correct. TODO: this edges call also used in other areas in code, that has to be catched and done differently.
Diffstat (limited to 'source/blender/radiosity')
-rw-r--r--source/blender/radiosity/intern/source/radpostprocess.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/radiosity/intern/source/radpostprocess.c b/source/blender/radiosity/intern/source/radpostprocess.c
index 49ff4183780..22b091a67a5 100644
--- a/source/blender/radiosity/intern/source/radpostprocess.c
+++ b/source/blender/radiosity/intern/source/radpostprocess.c
@@ -952,7 +952,6 @@ void rad_addmesh(void)
me->mface= MEM_callocN(me->totface*sizeof(MFace), "mface");
me->tface= MEM_callocN(me->totface*sizeof(TFace), "tface");
-
/* materials, and set VCOL flag */
for(a=0; a<RG.totmat; a++) {
assign_material(ob, RG.matar[a], a+1);
@@ -1029,6 +1028,8 @@ void rad_addmesh(void)
if( *cd < 0x1000000 ) *cd= coldata[*cd];
}
}
+ /* by default, meshes need edge list */
+ make_edges(me);
}
MEM_freeN(coldata);