void UpdateInformation() { if (binding == null || string.IsNullOrEmpty(binding.GetAbsolutePath())) { matInfo = null; compiledMatInfo = null; return; } matInfo = new Utl.MaterialInformation(); matInfo.Load(binding.GetAbsolutePath()); if (System.IO.File.Exists(CreateBinaryFilePath())) { compiledMatInfo = new Utl.CompiledMaterialInformation(); compiledMatInfo.Load(CreateBinaryFilePath()); } else { compiledMatInfo = null; } }
void UpdateInformation() { if (binding == null || string.IsNullOrEmpty(binding.GetAbsolutePath())) { matInfo = null; compiledMatInfo = null; return; } matInfo = new Utl.MaterialInformation(); matInfo.Load(binding.GetAbsolutePath()); var binaryPath = IO.MaterialCacheGenerator.CreateBinaryFilePath(binding.GetAbsolutePath()); if (System.IO.File.Exists(binaryPath)) { compiledMatInfo = new Utl.CompiledMaterialInformation(); errorCode = compiledMatInfo.Load(binaryPath); } else { compiledMatInfo = null; } }