Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mlavik1 committed Aug 26, 2024
1 parent cb9c92d commit 66c6e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Scripts/VolumeObject/VolumeRenderedObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public List<SegmentationLabel> GetSegmentationLabels()

public void AddSegmentation(VolumeDataset dataset)
{
if (dataset.data.Length != secondaryDataset.data.Length)
if (secondaryDataset != null && dataset.data.Length != secondaryDataset.data.Length)
{
Debug.LogError("Can't add segmentation with different dimension than original dataset.");
return;
Expand Down

0 comments on commit 66c6e2c

Please sign in to comment.