瀏覽代碼

Add Dependency to external files

Nikos Kastellanos 6 年之前
父節點
當前提交
b2ac7b40a6
共有 2 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Content.Pipeline/SLMCImporter/SLMCImporter.cs
  2. 二進制
      bin/Release/Windows/Aether.Content.Pipeline.SLMCImporter.dll

+ 1 - 0
Content.Pipeline/SLMCImporter/SLMCImporter.cs

@@ -97,6 +97,7 @@ namespace tainicom.Aether.Content.Pipeline
 
                 var imageSource = GetAttribute(imageNode, "source");
                 var fullImageSource = Path.Combine(Path.GetDirectoryName(filename), imageSource);
+                context.AddDependency(fullImageSource);
                 var textureContent = (Texture2DContent)txImporter.Import(fullImageSource, context);
                 textureContent.Name = Path.GetFileNameWithoutExtension(fullImageSource);
 

二進制
bin/Release/Windows/Aether.Content.Pipeline.SLMCImporter.dll