Skip to content
Snippets Groups Projects
Commit ec51fa2a authored by Martin Teichmann's avatar Martin Teichmann
Browse files

treat in and out sync managers the same for struct

parent cd6d83fc
No related branches found
No related tags found
No related merge requests found
......@@ -163,8 +163,10 @@ class Struct:
class StructDesc:
def __init__(self, struct, sm3=0, sm2=0):
def __init__(self, struct, sm3=0, sm2=None):
self.struct = struct
if sm2 is None:
sm2 = sm3
self.position_offset = {SyncManager.OUT: sm2, SyncManager.IN: sm3}
def __get__(self, instance, owner):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment