Unity-Technologies / 2d-extras

Fun 2D Stuff that we'd like to share!
Other
1.54k stars 342 forks source link

Fix possible NullReferenceException in PrefabRandomBrush #342

Closed bazile closed 2 years ago

bazile commented 2 years ago

If brushTarget is allowed to be null we should first check for null and then check value of layer property.

unity-cla-assistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.

ChuanXin-Unity commented 2 years ago

Looks great, thanks!