コード例 #1
0
 public override void DiscardChanges()
 {
     if (!IsVolumeHandleNull())
     {
         CubiquityDLL.DiscardOverrideChunks(volumeHandle.Value);
     }
 }
コード例 #2
0
        public override void CommitChanges()
        {
            if (!IsVolumeHandleNull())
            {
                if (writePermissions == WritePermissions.ReadOnly)
                {
                    throw new InvalidOperationException("Cannot commit changes to read-only voxel database (" + fullPathToVoxelDatabase + ")");
                }

                CubiquityDLL.AcceptOverrideChunks(volumeHandle.Value);
                //We can discard the chunks now that they have been accepted.
                CubiquityDLL.DiscardOverrideChunks(volumeHandle.Value);
            }
        }