/// <summary> /// Add the new part to the group in the EntityManager /// </summary> /// <param name="entity"></param> /// <param name="part"></param> /// <returns></returns> public bool LinkPartToEntity(ISceneEntity entity, ISceneChildEntity part) { //Remove the entity so that we can rebuild RemoveEntity(entity); bool RetVal = entity.LinkChild(part); AddEntity(entity, false); //Now that everything is linked, destroy the undo states because it will fry the link otherwise entity.ClearUndoState(); return RetVal; }