$NetBSD: patch-ah,v 1.1 2008/06/21 18:12:42 joerg Exp $ --- lib3d/bsppanel3d.C.orig 2008-06-21 12:05:40.000000000 +0000 +++ lib3d/bsppanel3d.C @@ -42,7 +42,7 @@ Polygon3f bspPanel3d::asPolygon3f(pt3d p } pt3d2Vec3f(normal,poly.plane_normal); - poly.material_index= (int) this; + poly.material_index= this; return poly; }