mirror of
https://github.com/drewcassidy/KSP-Conformal-Decals.git
synced 2024-09-01 18:23:54 +00:00
Fix error on running texture modifiers for text decals
This commit is contained in:
parent
885dfb3397
commit
bf7d5dd933
Binary file not shown.
@ -67,8 +67,7 @@ namespace ConformalDecals.MaterialProperties {
|
||||
public override void Modify(Material material) {
|
||||
if (material == null) throw new ArgumentNullException(nameof(material));
|
||||
if (_texture == null) {
|
||||
_texture = Texture2D.whiteTexture;
|
||||
throw new NullReferenceException("texture is null, but should not be");
|
||||
_texture = isNormal ? DecalConfig.BlankNormal : Texture2D.whiteTexture;
|
||||
}
|
||||
|
||||
material.SetTexture(_propertyID, _texture);
|
||||
|
Loading…
Reference in New Issue
Block a user