From a017c4de186c01c00470cddc7e5a5941221fe154 Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Fri, 14 Feb 2025 10:56:44 +0100 Subject: [PATCH] Aded focus --- Participant.cs | 2 +- RemoteParticipant.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Participant.cs b/Participant.cs index 40f71ed..d95d39c 100644 --- a/Participant.cs +++ b/Participant.cs @@ -137,7 +137,7 @@ namespace Passer.Control.Core { int n = this.things.Count; for (int ix = 0; ix < n; ix++) { Thing thing = this.things[ix]; - if (thing != null && thing.parent == null) // update only root things + if (thing != null) // && thing.parent == null) // update only root things thing.Update(currentTimeMS); } } diff --git a/RemoteParticipant.cs b/RemoteParticipant.cs index cc3c0ce..15415a7 100644 --- a/RemoteParticipant.cs +++ b/RemoteParticipant.cs @@ -27,7 +27,7 @@ namespace Passer.Control.Core { } public void Add(Thing thing, bool invokeEvent = true) { - //Console.WriteLine($"added thing [{thing.networkId}/{thing.id}]"); + Console.WriteLine($"added thing [{thing.networkId}/{thing.id}]"); Thing foundThing = Get(thing.networkId, thing.id); if (foundThing == null) { @@ -41,6 +41,7 @@ namespace Passer.Control.Core { // should be: find first non-existing id... thing.id = (byte)this.things.Count; things.Add(thing); + Console.Write($"Add thing, updated thing id to [{thing.networkId}/{thing.id}]"); } } }