Esempio n. 1
0
		/**
		 * @todo - Remove this and implement a pb_Selection class that can easily be recorded for undo without
		 * doing this weird hcak.
		 */
		public static void RecordSelection(pb_Object[] pb, string msg)
		{
			if( pb.Sum(x => x.SelectedTriangleCount) > 256 )
				RegisterCompleteObjectUndo(pb, msg);
			else
				RecordObjects(pb, msg);
		}
	void OnSelectionUpdate(pb_Object[] selection)
	{
		AddLog("Selection Updated: " + string.Format("{0} objects and {1} vertices selected.",
			selection != null ? selection.Length : 0,
			selection != null ? selection.Sum(x => x.SelectedTriangleCount) : 0));
	}