From 86d961c334e2894ccd45b8a0c3e9393f2ece428f Mon Sep 17 00:00:00 2001 From: i-saint Date: Fri, 13 Apr 2018 14:05:49 +0900 Subject: [PATCH] fix update order issue --- .../UTJ/Alembic/Scripts/Importer/AlembicStreamPlayer.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AlembicImporter/Assets/UTJ/Alembic/Scripts/Importer/AlembicStreamPlayer.cs b/AlembicImporter/Assets/UTJ/Alembic/Scripts/Importer/AlembicStreamPlayer.cs index 7de330b0e..bb32ff288 100644 --- a/AlembicImporter/Assets/UTJ/Alembic/Scripts/Importer/AlembicStreamPlayer.cs +++ b/AlembicImporter/Assets/UTJ/Alembic/Scripts/Importer/AlembicStreamPlayer.cs @@ -80,6 +80,10 @@ public void Update() void LateUpdate() { + // currentTime maybe updated after Update() by other GameObjects + if (!updateStarted && lastUpdateTime != currentTime) + Update(); + if (!updateStarted) return; updateStarted = false;