Skip to content

Commit e80bcc9

Browse files
committed
Fixes for Pickle.
1 parent a04840b commit e80bcc9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

BEngine-Py/bengine/BENetworking.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,11 @@ def HandleClient():
8585
if node_tree:
8686
if be_base_stuff.engine_type == BESettings.EngineType.Unreal:
8787
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)
88+
89+
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))
9093

9194
BENetworkUtils.DoSend(client_socket, inputs_to_send, is_pickle)
9295

0 commit comments

Comments
 (0)