From 83c9a9c58c0af21804923764d02180250adb5904 Mon Sep 17 00:00:00 2001 From: Thomas Weigel Date: Tue, 9 Feb 2021 18:49:32 +0100 Subject: [PATCH 1/3] hotfix to also send empty alive bundle if lists are empty --- pythontuio/tuio.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pythontuio/tuio.py b/pythontuio/tuio.py index fce48e1..34439e8 100644 --- a/pythontuio/tuio.py +++ b/pythontuio/tuio.py @@ -87,12 +87,12 @@ def send_bundle(self): bundle_builder = OscBundleBuilder(0) # build alive message - if len(self.cursors) != 0: - bundle_builder.add_content(TuioServer._build_alive(TUIO_CURSOR,self.cursors)) - if len(self.blobs) != 0: - bundle_builder.add_content(TuioServer._build_alive(TUIO_BLOB,self.blobs)) - if len(self.objects) != 0: - bundle_builder.add_content(TuioServer._build_alive(TUIO_OBJECT,self.objects)) + + bundle_builder.add_content(TuioServer._build_alive(TUIO_CURSOR,self.cursors)) + + bundle_builder.add_content(TuioServer._build_alive(TUIO_BLOB,self.blobs)) + + bundle_builder.add_content(TuioServer._build_alive(TUIO_OBJECT,self.objects)) # set message of cursor From 8648c75cd8cabc0f3f2c57fe95e3aa3d3a9940dc Mon Sep 17 00:00:00 2001 From: Thomas Weigel Date: Tue, 9 Feb 2021 18:50:33 +0100 Subject: [PATCH 2/3] raise version to 0.0.9 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c27b2fd..e1a5015 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="python-tuio", - version="0.0.8", + version="0.0.9", author="tweigel-dev", author_email="weigel-thomas@outlook.de", description="python3 implementation of the TUIO protocol", From 54538147058194bad4c4deeb9292b7491259be36 Mon Sep 17 00:00:00 2001 From: Thomas Weigel Date: Tue, 9 Feb 2021 18:57:16 +0100 Subject: [PATCH 3/3] fix whitespaces --- pythontuio/tuio.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pythontuio/tuio.py b/pythontuio/tuio.py index 34439e8..0195fe8 100644 --- a/pythontuio/tuio.py +++ b/pythontuio/tuio.py @@ -87,11 +87,11 @@ def send_bundle(self): bundle_builder = OscBundleBuilder(0) # build alive message - + bundle_builder.add_content(TuioServer._build_alive(TUIO_CURSOR,self.cursors)) - + bundle_builder.add_content(TuioServer._build_alive(TUIO_BLOB,self.blobs)) - + bundle_builder.add_content(TuioServer._build_alive(TUIO_OBJECT,self.objects))