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); } }