mirror of
https://github.com/drewcassidy/KSP-Conformal-Decals.git
synced 2024-09-01 18:23:54 +00:00
fix flag decal NRE
This commit is contained in:
parent
84611a26e8
commit
35fce78616
Binary file not shown.
@ -27,12 +27,6 @@ namespace ConformalDecals {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void SetupDecal() {
|
|
||||||
_flagTextureProperty = materialProperties.AddOrGetTextureProperty("_Decal");
|
|
||||||
|
|
||||||
base.SetupDecal();
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void OnStart(StartState state) {
|
public override void OnStart(StartState state) {
|
||||||
base.OnStart(state);
|
base.OnStart(state);
|
||||||
|
|
||||||
@ -89,6 +83,8 @@ namespace ConformalDecals {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected override void UpdateTextures() {
|
protected override void UpdateTextures() {
|
||||||
|
_flagTextureProperty ??= materialProperties.AddOrGetTextureProperty("_Decal");
|
||||||
|
|
||||||
base.UpdateTextures();
|
base.UpdateTextures();
|
||||||
if (useCustomFlag) {
|
if (useCustomFlag) {
|
||||||
_flagTextureProperty.TextureUrl = flagUrl;
|
_flagTextureProperty.TextureUrl = flagUrl;
|
||||||
|
Loading…
Reference in New Issue
Block a user