Fix Python3-XPC sendDREFs issue#242
Conversation
|
I came across this issue recently and implemented the same fix with one difference. The second change (Line 316) should be reverted to the original code - in that case,
|
|
Sorry for the long delay. I don't get much time to work on this project anymore. Could either of you explain exactly what this change does? My Python is a little rusty and I'm having trouble evaluating who is correct here. |
|
Sure - Line 309 is checking to see if If it is a list of values, Line 313 is executed. The change on Line 313 is correct because If value is a single number, Line 315 is executed. Line 315 is not correct because this part of the code expects a single value (just a number, not a list). Therefore, the call to |
Resolves #198, where the Python3 version fails when using sendDREF / sendDREFs for a dataref that requires multiple values. Issue is that the array of dataref values is passed directly into the pack function instead of passing each array element as a separate argument. Solution due to @jamesdunham in the issue comments.