Commits

davep committed fba99f3

DRTVWR-225 Cleanup assertions

  • Participants
  • Parent commits 2e47566
  • Tags DRTVWR-179

Comments (0)

Files changed (1)

indra/newview/lldrawable.cpp

 		}
 	}
 
+	//postcondition: if next group is NULL, previous group must be dead OR NULL OR binIndex must be -1
+	//postcondition: if next group is NOT NULL, binIndex must not be -1
+	llassert(groupp == NULL ? (mSpatialGroupp == NULL || mSpatialGroupp->isDead()) || getBinIndex() == -1 :
+							getBinIndex() != -1);
+
 	mSpatialGroupp = groupp;
-
-	llassert((mSpatialGroupp == NULL) ? getBinIndex() == -1 : getBinIndex() != -1);
 }
 
 LLSpatialPartition* LLDrawable::getSpatialPartition()