mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
Remove className from adjacent meta files, which is not supported in 0.5.x
This commit is contained in:
parent
8a9a72fd50
commit
709cba45ce
1 changed files with 1 additions and 11 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
use std::{borrow::Cow, collections::HashMap};
|
use std::collections::HashMap;
|
||||||
|
|
||||||
use rbx_dom_weak::UnresolvedRbxValue;
|
use rbx_dom_weak::UnresolvedRbxValue;
|
||||||
use rbx_reflection::try_resolve_value;
|
use rbx_reflection::try_resolve_value;
|
||||||
|
|
@ -9,9 +9,6 @@ use crate::snapshot::InstanceSnapshot;
|
||||||
#[derive(Debug, Serialize, Deserialize)]
|
#[derive(Debug, Serialize, Deserialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct AdjacentMetadata {
|
pub struct AdjacentMetadata {
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
|
||||||
pub class_name: Option<String>,
|
|
||||||
|
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub ignore_unknown_instances: Option<bool>,
|
pub ignore_unknown_instances: Option<bool>,
|
||||||
|
|
||||||
|
|
@ -32,12 +29,6 @@ impl AdjacentMetadata {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn apply_class_name(&mut self, snapshot: &mut InstanceSnapshot) {
|
|
||||||
if let Some(class_name) = self.class_name.take() {
|
|
||||||
snapshot.class_name = Cow::Owned(class_name);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn apply_properties(&mut self, snapshot: &mut InstanceSnapshot) {
|
pub fn apply_properties(&mut self, snapshot: &mut InstanceSnapshot) {
|
||||||
let class_name = &snapshot.class_name;
|
let class_name = &snapshot.class_name;
|
||||||
|
|
||||||
|
|
@ -54,7 +45,6 @@ impl AdjacentMetadata {
|
||||||
|
|
||||||
pub fn apply_all(&mut self, snapshot: &mut InstanceSnapshot) {
|
pub fn apply_all(&mut self, snapshot: &mut InstanceSnapshot) {
|
||||||
self.apply_ignore_unknown_instances(snapshot);
|
self.apply_ignore_unknown_instances(snapshot);
|
||||||
self.apply_class_name(snapshot);
|
|
||||||
self.apply_properties(snapshot);
|
self.apply_properties(snapshot);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue