Skip to content

Commit

Permalink
V0.8 - some server fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mifth committed Feb 22, 2023
1 parent 44cb92e commit 21dc178
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
29 changes: 17 additions & 12 deletions BEngine-Py/bengine/BENetworking.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@


def handle_client(client_socket, addr):
print('handle client')

# global SERVER_SOCKET

be_paths = BESettings.START_PARAMS
Expand Down Expand Up @@ -49,24 +47,31 @@ def handle_client(client_socket, addr):
print(traceback.format_exc())

if be_base_stuff.run_type == BESettings.RunNodesType.RunNodes:
js_output_data = {}

# Get Data
try:
js_inputs = js_base_stuff["BEngineInputs"]
js_output_data = BERunNodes.RunNodes(context, be_paths, js_inputs, node_tree,
process_gn_obj, geom_mod, be_base_stuff)
if node_tree:
# Get Data
try:
js_inputs = js_base_stuff["BEngineInputs"]
js_output_data = BERunNodes.RunNodes(context, be_paths, js_inputs, node_tree,
process_gn_obj, geom_mod, be_base_stuff)

except Exception as e:
print("There was a Problem During RunNodes.")
print(traceback.format_exc())
except Exception as e:
print("There was a Problem During RunNodes.")
print(traceback.format_exc())

js_output_data = {}
js_output_data = {}
else:
print("NodeTree is None. Probably the NodeTree is Wrong.")

# Send
client_socket.sendall(str.encode(json.dumps(js_output_data)))

elif be_base_stuff.run_type == BESettings.RunNodesType.UpdateNodes:
BERunNodes.SaveBlenderInputs(be_base_stuff, node_tree)
if node_tree:
BERunNodes.SaveBlenderInputs(be_base_stuff, node_tree)
else:
print("NodeTree is None. Probably the NodeTree is Wrong.")


AddBackServer(0.01)
Expand Down
2 changes: 1 addition & 1 deletion BEngine-Py/bengine/Version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = 0.7
VERSION = 0.8

0 comments on commit 21dc178

Please sign in to comment.