diff --git a/src/MaterialEditor.Core.Studio/Core.MaterialEditor.SceneController.cs b/src/MaterialEditor.Core.Studio/Core.MaterialEditor.SceneController.cs index 53694658..179abb0a 100644 --- a/src/MaterialEditor.Core.Studio/Core.MaterialEditor.SceneController.cs +++ b/src/MaterialEditor.Core.Studio/Core.MaterialEditor.SceneController.cs @@ -1259,7 +1259,7 @@ public void SetMaterialTextureFromFile(int id, Material material, string propert /// True if the value was set, false if it could not be set private bool SetTextureWithProperty(GameObject go, MaterialTextureProperty textureProperty) { - if (!textureProperty.TexID.HasValue || !textureProperty.NullCheck()) + if (!textureProperty.TexID.HasValue || textureProperty.NullCheck()) return false; int texID = textureProperty.TexID.Value;