 				isect->objid = (int)attrib.x;
 				isect->primid = (int)attrib.y;
 				isect->mtrlid = prim.mtrlid;
+				isect->meshid = (int)attrib.w;
 				return true;
 			}
 		}

				isect->objid = (int)attrib.x;
				isect->primid = (int)attrib.y;
				isect->mtrlid = prim.mtrlid;
				return true;
			}
		}

			if (isectTmp.t < isect->t) {
				*isect = isectTmp;
				isect->objid = (int)attrib.x;
				//isect->meshid = (int)attrib.w;
				return true;
			}
		}
