mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-23 14:15:24 +00:00
Mark project node as instigating source for instances from project
This commit is contained in:
@@ -6,7 +6,7 @@ use rbx_reflection::try_resolve_value;
|
||||
use crate::{
|
||||
imfs::{FsErrorKind, Imfs, ImfsEntry, ImfsFetcher},
|
||||
project::{Project, ProjectNode},
|
||||
snapshot::{InstanceMetadata, InstanceSnapshot},
|
||||
snapshot::{InstanceMetadata, InstanceSnapshot, InstigatingSource},
|
||||
};
|
||||
|
||||
use super::{
|
||||
@@ -174,6 +174,11 @@ fn snapshot_project_node<F: ImfsFetcher>(
|
||||
metadata.ignore_unknown_instances = true;
|
||||
}
|
||||
|
||||
metadata.instigating_source = Some(InstigatingSource::ProjectNode(
|
||||
instance_name.to_string(),
|
||||
node.clone(),
|
||||
));
|
||||
|
||||
Ok(Some(InstanceSnapshot {
|
||||
snapshot_id: None,
|
||||
name,
|
||||
|
||||
Reference in New Issue
Block a user