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: copy the scale/visibility of instances based on the parent/original respectively #871

Closed seandillon92 closed 1 year ago

seandillon92 commented 1 year ago

The copy instances use the parent scale as a local scale. So for example, if the parent scale is 4, the copy scale will be 16. This is because we assign the lossy scale of the matrix that has the parent matrix as the local scale matrix.

Additionally, when creating copied instances and we have the visibility synch enabled, we assign the visibility of the copies based on the visibility of the original. This is not accurate as in Blender, only the parent can control the visibility of the instances, not the referenced objects.