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

using custom brush with locking mask #26

Closed unitycoder closed 8 years ago

unitycoder commented 8 years ago

included in v1.96

if you need it now:

// FIND LINE (in void DrawCustomBrush())
if (customBrushBytes[brushPixel + 3] > 0) // <1 for invert

// REPLACE WITH
if (customBrushBytes[brushPixel + 3] > 0 && (!useLockArea || (useLockArea && lockMaskPixels[pixel] == 1)))