From c308cb53142cf81ceedb11611e79c66f6bdb17c7 Mon Sep 17 00:00:00 2001 From: jasonm-unity Date: Tue, 22 Aug 2017 14:53:42 -0400 Subject: [PATCH] added null protection --- .../Assets/UTJ/Alembic/Scripts/Timeline/AlembicShotPlayable.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AlembicImporter/Assets/UTJ/Alembic/Scripts/Timeline/AlembicShotPlayable.cs b/AlembicImporter/Assets/UTJ/Alembic/Scripts/Timeline/AlembicShotPlayable.cs index 8215009c2..8e74a5777 100644 --- a/AlembicImporter/Assets/UTJ/Alembic/Scripts/Timeline/AlembicShotPlayable.cs +++ b/AlembicImporter/Assets/UTJ/Alembic/Scripts/Timeline/AlembicShotPlayable.cs @@ -17,7 +17,8 @@ public AlembicStreamPlayer streamPlayer set { m_StreamPlayer = value; - m_StreamPlayer.m_ManualUpdateMode = true; + if( m_StreamPlayer != null ) + m_StreamPlayer.m_ManualUpdateMode = true; } }