We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a04840b commit e80bcc9Copy full SHA for e80bcc9
BEngine-Py/bengine/BENetworking.py
@@ -85,8 +85,11 @@ def HandleClient():
85
if node_tree:
86
if be_base_stuff.engine_type == BESettings.EngineType.Unreal:
87
inputs_to_send = BERunNodes.MakeInputsJS(node_tree)
88
- inputs_to_send = json.dumps(inputs_to_send)
89
- inputs_to_send = str.encode(inputs_to_send)
+
+ if is_pickle:
90
+ inputs_to_send = pickle.dumps(inputs_to_send)
91
+ else:
92
+ inputs_to_send = str.encode(json.dumps(inputs_to_send))
93
94
BENetworkUtils.DoSend(client_socket, inputs_to_send, is_pickle)
95
0 commit comments