Skip to content

Commit 86d961c

Browse files
committed
fix update order issue
1 parent fd7576b commit 86d961c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

AlembicImporter/Assets/UTJ/Alembic/Scripts/Importer/AlembicStreamPlayer.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ public void Update()
8080

8181
void LateUpdate()
8282
{
83+
// currentTime maybe updated after Update() by other GameObjects
84+
if (!updateStarted && lastUpdateTime != currentTime)
85+
Update();
86+
8387
if (!updateStarted)
8488
return;
8589
updateStarted = false;

0 commit comments

Comments
 (0)