mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
Update syncback rules and property filter defaults
- Changed the default value of `sync_unscriptable` in `SyncbackRules` from `true` to `false` to better reflect intended behavior. - Adjusted the property filter logic to align with the updated default, ensuring consistent handling of unscriptable properties. These changes improve the clarity and functionality of the syncback feature, enhancing its overall reliability.
This commit is contained in:
parent
7c3cb8ab0d
commit
a17852f963
3 changed files with 3 additions and 3 deletions
|
|
@ -1047,7 +1047,7 @@ pub struct SyncbackRules {
|
|||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
sync_current_camera: Option<bool>,
|
||||
/// Whether or not to sync properties that cannot be modified via scripts.
|
||||
/// Defaults to `true`.
|
||||
/// Defaults to `false`.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
sync_unscriptable: Option<bool>,
|
||||
/// Whether to skip serializing referent properties like `Model.PrimaryPart`
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ pub fn filter_properties_with_stats<'inst>(
|
|||
.syncback_rules
|
||||
.as_ref()
|
||||
.and_then(|s| s.sync_unscriptable)
|
||||
.unwrap_or(true);
|
||||
.unwrap_or(false);
|
||||
|
||||
let database = rbx_reflection_database::get().unwrap();
|
||||
let class_data = database.classes.get(inst.class.as_str());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue