fix(helpers): camera, lights and material loading error

This commit is contained in:
swann
2019-05-01 18:51:51 +02:00
parent cf16dbc788
commit 8c6f57efbb
3 changed files with 47 additions and 45 deletions

View File

@ -227,7 +227,7 @@ class RCFClientAgent(object):
port = int(msg.pop(0))
if self.server is None:
if address == '127.0.0.1':
if address == '127.0.0.1' or 'localhost' :
self.admin = True
self.server = RCFServer(self.ctx, address, port, self.id)
self.publisher.connect(
@ -237,7 +237,7 @@ class RCFClientAgent(object):
logger.error("E: too many servers (max. %i)", SERVER_MAX)
elif command == b"DISCONNECT":
if not self.admin:
if self.admin is False:
uid = self.id.decode()
for k,v in self.property_map.items():