close #29; Use shared material during play mode

pull/33/head
mob-sakai 2018-12-29 19:38:53 +09:00
parent dd953cd4eb
commit c3fbf299a6
1 changed files with 1 additions and 3 deletions

View File

@ -59,9 +59,7 @@ namespace Coffee.UIExtensions
Profiler.BeginSample ("Check material");
var mat = m_IsTrail
? _renderer.trailMaterial
: Application.isPlaying
? _renderer.material
: _renderer.sharedMaterial;
: _renderer.sharedMaterial;
if (mat && mat.HasProperty (s_IdMainTex))
{
tex = mat.mainTexture;