Skip to content

Commit b6e8161

Browse files
committedSep 8, 2024
Fix bug where default values on pins could get cleared unexpectedly
1 parent 008947d commit b6e8161

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎MDFastBinding.uplugin

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"FileVersion": 3,
33
"Version": 1,
4-
"VersionName": "1.0",
4+
"VersionName": "1.0.1",
55
"FriendlyName": "MDFastBinding",
66
"Description": "A versatile and performant alternative to UMG property bindings for designer-friendly workflows.",
77
"Category": "Other",

‎Source/MDFastBinding/Private/MDFastBindingObject.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ FMDFastBindingItem& UMDFastBindingObject::EnsureBindingItemExists(const FName& I
419419
BindingItems.Add(MoveTemp(Item));
420420
BindingItem = BindingItems.FindByKey(ItemName);
421421
}
422-
else if (BindingItem->HasDefaultValue() && BindingItem->ItemProperty.Get() != ItemProperty)
422+
else if (BindingItem->HasDefaultValue() && BindingItem->ItemProperty.IsValid() && BindingItem->ItemProperty.Get() != ItemProperty)
423423
{
424424
// Clear defaults when the item property changed
425425
BindingItem->ClearDefaultValues();

0 commit comments

Comments
 (0)
Please sign in to comment.