Create separate mesh when MjMeshfilter is first instantiated, to support duplicating in Editor
This commit is contained in:
@@ -32,6 +32,7 @@ public class MjMeshFilter : MonoBehaviour {
|
||||
_geom = GetComponent<MjShapeComponent>();
|
||||
_shapeChangeStamp = new Vector4(0, 0, 0, -1);
|
||||
_meshFilter = GetComponent<MeshFilter>();
|
||||
_meshFilter.mesh = new Mesh();
|
||||
}
|
||||
|
||||
protected void Update() {
|
||||
|
||||
Reference in New Issue
Block a user