Skip to content

Commit

Permalink
Add fallback default for SecurityCapabilities (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethloeffler authored Oct 17, 2023
1 parent e7a5b91 commit b6d9f89
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions rbx_binary/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# rbx_binary Changelog

## Unreleased
* Fixed missing fallback default for `SecurityCapabilities` ([#371]).

## 0.7.2 (2023-10-03)
* Added support for `SecurityCapabilities` values. ([#361])
Expand Down
8 changes: 6 additions & 2 deletions rbx_binary/src/serializer/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ use rbx_dom_weak::{
types::{
Attributes, Axes, BinaryString, BrickColor, CFrame, Color3, Color3uint8, ColorSequence,
ColorSequenceKeypoint, Content, Enum, Faces, Font, MaterialColors, Matrix3, NumberRange,
NumberSequence, NumberSequenceKeypoint, PhysicalProperties, Ray, Rect, Ref, SharedString,
Tags, UDim, UDim2, UniqueId, Variant, VariantType, Vector2, Vector3, Vector3int16,
NumberSequence, NumberSequenceKeypoint, PhysicalProperties, Ray, Rect, Ref,
SecurityCapabilities, SharedString, Tags, UDim, UDim2, UniqueId, Variant, VariantType,
Vector2, Vector3, Vector3int16,
},
Instance, WeakDom,
};
Expand Down Expand Up @@ -1360,6 +1361,9 @@ impl<'dom, W: Write> SerializerState<'dom, W> {
VariantType::UniqueId => Variant::UniqueId(UniqueId::nil()),
VariantType::Font => Variant::Font(Font::default()),
VariantType::MaterialColors => Variant::MaterialColors(MaterialColors::new()),
VariantType::SecurityCapabilities => {
Variant::SecurityCapabilities(SecurityCapabilities::default())
}
_ => return None,
})
}
Expand Down

0 comments on commit b6d9f89

Please sign in to comment.