mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-13 05:54:59 -05:00
Merge pull request #325 from ropo/ropo/fixMemoryLeakInEditorlookat
Fix: memory leak in editor preview
This commit is contained in:
commit
77e1e673f3
|
|
@ -1,4 +1,3 @@
|
|||
using System.Collections.Generic;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UniGLTF;
|
||||
|
|
@ -115,8 +114,9 @@ namespace VRM
|
|||
target.position + new Vector3(0, 0.1f, 0),
|
||||
target.forward
|
||||
);
|
||||
foreach(var x in m_items)
|
||||
for(int j=0; j<m_items.Length; ++j)
|
||||
{
|
||||
ref var x = ref m_items[j];
|
||||
var mesh = x.Baked();
|
||||
for(int i=0; i<x.Materials.Length; ++i)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user