fixed: initial dirty property not tracked
This commit is contained in:
@@ -73,11 +73,8 @@ namespace Ragon.Client
|
||||
if (_dirty)
|
||||
return;
|
||||
|
||||
if (_entity != null)
|
||||
{
|
||||
_dirty = true;
|
||||
_entity.TrackChangedProperty(this);
|
||||
}
|
||||
_entity?.TrackChangedProperty(this);
|
||||
}
|
||||
|
||||
internal void Flush()
|
||||
@@ -91,9 +88,12 @@ namespace Ragon.Client
|
||||
_ticks++;
|
||||
}
|
||||
|
||||
internal void AssignEntity(RagonEntity obj)
|
||||
internal void AssignEntity(RagonEntity ent)
|
||||
{
|
||||
_entity = obj;
|
||||
_entity = ent;
|
||||
|
||||
if (_dirty)
|
||||
_entity.TrackChangedProperty(this);
|
||||
|
||||
Changed?.Invoke();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user