Cleanup code

#3546
This commit is contained in:
Wojtek Figat
2025-06-15 20:48:19 +02:00
parent 9464f97e16
commit 2f02ec52ed
3 changed files with 10 additions and 15 deletions

View File

@@ -288,16 +288,15 @@ namespace FlaxEditor.Windows.Assets
/// <inheritdoc />
public SearchAssetTypes AssetType => SearchAssetTypes.ParticleEmitter;
/// <inheritdoc />
public override void Update(float deltaTime)
{
base.Update(deltaTime);
if(_asset == null)
if (_asset == null)
return;
_showSourceCodeButton.Enabled = _asset.HasShaderCode();
_showSourceCodeButton.Enabled = _asset.HasShaderCode;
}
}
}