Skip to content

Error Object reference not set to an instance of an object on Editor stop #70

@novavision

Description

@novavision

Describe the bug
On scene unload or editor play mode stop I get the error

NullReferenceException: Object reference not set to an instance of an object
Deform.Deformable.IsVisible () (at Library/PackageCache/com.beans.deform@3802324a6b/Code/Runtime/Mesh/Deformable.cs:235)
Deform.Deformable.ShouldCull (System.Boolean ignoreCullingMode) (at Library/PackageCache/com.beans.deform@3802324a6b/Code/Runtime/Mesh/Deformable.cs:241)
Deform.Deformable.ApplyData (System.Boolean ignoreCullingMode) (at Library/PackageCache/com.beans.deform@3802324a6b/Code/Runtime/Mesh/Deformable.cs:345)
Deform.Deformable.ApplyData () (at Library/PackageCache/com.beans.deform@3802324a6b/Code/Runtime/Mesh/Deformable.cs:359)
Deform.DeformableManager.CompleteDeformables (System.Collections.Generic.HashSet`1[T] deformables) (at Library/PackageCache/com.beans.deform@3802324a6b/Code/Runtime/Core/DeformableManager.cs:103)
Deform.DeformableManager.OnDisable () (at Library/PackageCache/com.beans.deform@3802324a6b/Code/Runtime/Core/DeformableManager.cs:77)

To Reproduce
Steps to reproduce the behavior:

  1. Add any deformer to the scene
  2. Apply deformation
  3. Hit Stop editor
  4. See error
  • OS: Windows 11, MacOS
  • Unity: 2021.2.17f1
  • Deform version: smooth-normals version 1.2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions