unitycoder / UnityMobilePaint

Public repository for MobilePaint issues & requests
https://www.assetstore.unity3d.com/en/#!/content/19803?aid=1101lGti
MIT License
49 stars 16 forks source link

When InitializeEverything() is called myRenderer.material.GetTexture(targetTexture) doesnt return null #20

Closed unitycoder closed 8 years ago

unitycoder commented 8 years ago

If InitializeEverything() is called, this next line returns true, and that's not the same as first InitializeEverything() call, ReadClearingImage() gets called for no reason?

if (myRenderer.material.GetTexture(targetTexture) == null)

unitycoder commented 8 years ago

temporary fix: // FIND LINE if (myRenderer.material.GetTexture(targetTexture) == null)

// REPLACE WITH if (myRenderer.material.GetTexture(targetTexture) == null && !usingClearingImage)

unitycoder commented 8 years ago

fixed in the coming v1.96 update