refactor: clean
This commit is contained in:
@ -9,6 +9,7 @@ from enum import Enum
|
||||
from random import randint
|
||||
import copy
|
||||
import queue
|
||||
|
||||
lock = threading.Lock()
|
||||
|
||||
try:
|
||||
|
1
draw.py
1
draw.py
@ -30,6 +30,7 @@ def get_target(region, rv3d, coord):
|
||||
|
||||
return [target.x, target.y, target.z]
|
||||
|
||||
|
||||
def get_target_far(region, rv3d, coord, distance):
|
||||
target = [0, 0, 0]
|
||||
|
||||
|
@ -54,7 +54,7 @@ class RCFMessage(object):
|
||||
@classmethod
|
||||
def recv(cls, socket):
|
||||
"""Reads key-value message from socket, returns new kvmsg instance."""
|
||||
key, id, body = socket.recv_multipart(zmq.DONTWAIT)
|
||||
key, id, body = socket.recv_multipart()
|
||||
key = key.decode() if key else None
|
||||
id = id if id else None
|
||||
body = umsgpack.unpackb(body) if body else None
|
||||
|
@ -212,7 +212,6 @@ def unregister_ticks():
|
||||
|
||||
# OPERATORS
|
||||
|
||||
|
||||
class session_join(bpy.types.Operator):
|
||||
|
||||
bl_idname = "session.join"
|
||||
@ -351,7 +350,7 @@ class session_create(bpy.types.Operator):
|
||||
net_settings = context.scene.session_settings
|
||||
server = subprocess.Popen(
|
||||
['python', 'server.py'], shell=False, stdout=subprocess.PIPE)
|
||||
time.sleep(0.1)
|
||||
# time.sleep(0.1)
|
||||
|
||||
bpy.ops.session.join()
|
||||
|
||||
|
Reference in New Issue
Block a user