unity3d-jp / MeshSync

A package for synchronizing meshes/models editing in DCC tools into Unity in real time.
Other
1.55k stars 174 forks source link

fix: fix for crashes where instantiated objects are not meshes and not part of the scene #894

Closed seandillon92 closed 1 year ago

seandillon92 commented 1 year ago

This fixes a hard crash when synching a file, like this one https://download.blender.org/demo/test/classroom.zip These files have a main scene that references objects from other .blend files. While we support transferring these references, we assume that these objects are meshes and we attempt to extract mesh info from them.

For example, in the classroom demo, there is a point light that is referenced. We attempt to access mesh data from that point light, which results in unexpected behavior. In my case, it would crash the editor.