 
 		bool isHit = false;
 
-		if (attrib.x >= 0 || attrib.y >= 0) {
+		if (attrib.y >= 0) {
 			const auto& prim = ctxt->prims[(int)attrib.y];
 
 			isectTmp.t = AT_MATH_INF;


		bool isHit = false;

		if (attrib.x >= 0 || attrib.y >= 0) {
			// Leaf.
			tmpexid = -1;


				isectTmp.mtrlid = s->mtrl.idx;
			}

			if (isectTmp.t < isect->t) {
				*isect = isectTmp;
				isect->objid = (int)attrib.x;

				if (type == IntersectType::Closer) {
					return true;
				}
			}
		}
