mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
Set source path on rbxm/rbxmx models
This commit is contained in:
parent
711e009e6d
commit
8f66fb6fef
1 changed files with 2 additions and 0 deletions
|
|
@ -752,6 +752,7 @@ fn snapshot_xml_model_file<'source>(
|
|||
1 => {
|
||||
let mut snapshot = snapshot_from_tree(&temp_tree, children[0]).unwrap();
|
||||
snapshot.name = Cow::Borrowed(instance_name);
|
||||
snapshot.metadata.source_path = Some(file.path.clone());
|
||||
ExtraMetadata::locate_and_apply(&mut snapshot, &imfs, &file.path)?;
|
||||
Ok(Some(snapshot))
|
||||
},
|
||||
|
|
@ -788,6 +789,7 @@ fn snapshot_binary_model_file<'source>(
|
|||
1 => {
|
||||
let mut snapshot = snapshot_from_tree(&temp_tree, children[0]).unwrap();
|
||||
snapshot.name = Cow::Borrowed(instance_name);
|
||||
snapshot.metadata.source_path = Some(file.path.clone());
|
||||
ExtraMetadata::locate_and_apply(&mut snapshot, &imfs, &file.path)?;
|
||||
Ok(Some(snapshot))
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue