From 1a5f72a81512faeda912c50430fbb1213ab7f942 Mon Sep 17 00:00:00 2001 From: edmand46 Date: Thu, 23 Mar 2023 05:28:47 +0400 Subject: [PATCH] fixed: property update --- Ragon.Client/Sources/Entity/RagonProperty.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Ragon.Client/Sources/Entity/RagonProperty.cs b/Ragon.Client/Sources/Entity/RagonProperty.cs index 6c55d7a..e017711 100644 --- a/Ragon.Client/Sources/Entity/RagonProperty.cs +++ b/Ragon.Client/Sources/Entity/RagonProperty.cs @@ -70,10 +70,14 @@ namespace Ragon.Client { InvokeChanged(); - if (_dirty) return; - _dirty = true; + if (_dirty) + return; - _entity?.TrackChangedProperty(this); + if (_entity != null) + { + _dirty = true; + _entity.TrackChangedProperty(this); + } } internal void Flush()