[Bf-committers] simple segfault fix in Blender.

Campbell Barton cbarton at metavr.com
Thu May 5 06:54:22 CEST 2005


Hi, At the moment the join_triangles():2336 function in editmesh_tools.c 
dosent account for givequadverts():2017, assigning NULL to v3 and v4. 
(See line 2105)

This makes a realy stupid segfault.
Try getting the monky.
Ctrl+T
Jkey
Ctrl+T
Jkey ...> Segfault.


To fix this, add this line in editmesh_tools.c:2391
if (v3 != NULL && v4 != NULL) {

... This checks that givequadverts() hasnt set v3 ir v4 as null.

- Cam


-- 
Campbell J Barton

133 Hope Street
Geelong West, Victoria 3218 Australia

URL:    http://www.metavr.com
e-mail: cbarton at metavr.com
phone: AU (03) 5229 0241


More information about the Bf-committers mailing list