Skip to content

Commit

Permalink
Fixed NullRefrenceException in CuttingPlaneGroup.CuttingPlanes
Browse files Browse the repository at this point in the history
  • Loading branch information
MauNguyenVan committed May 24, 2023
1 parent ff25227 commit 5149b39
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,10 @@ private void ApplyCuttingPlanesToModel(GeometryModel3D model, Transform3D transf
var newGeometry = originalGeometry;
var originalMeshGeometry = originalGeometry as MeshGeometry3D;

if (this.IsEnabled && originalMeshGeometry != null)
if (this.IsEnabled
&& this.CuttingPlanes != null
&& originalMeshGeometry != null
)
{
var inverseTransform = transform.Inverse;
if (inverseTransform == null)
Expand Down

0 comments on commit 5149b39

Please sign in to comment.