aboutsummaryrefslogtreecommitdiff
path: root/exporter/src/bin/yaml.rs
diff options
context:
space:
mode:
Diffstat (limited to 'exporter/src/bin/yaml.rs')
-rw-r--r--exporter/src/bin/yaml.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/exporter/src/bin/yaml.rs b/exporter/src/bin/yaml.rs
index 26cd04b..afa016a 100644
--- a/exporter/src/bin/yaml.rs
+++ b/exporter/src/bin/yaml.rs
@@ -14,8 +14,7 @@ fn main() -> anyhow::Result<()> {
let node = fs.find_main_file().unwrap().to_owned();
let mut cab = fs.read(&node)?;
-
- let mut file = SerializedFile::read(&mut cab,0)?;
+ let mut file = SerializedFile::read(&mut cab, node.name)?;
for ob in file.objects.clone() {
if let Some(f) = &filter {
if file.get_object_type_tree(&ob)?.type_string != *f && ob.path_id.to_string() != *f {