From 0b1ad67e13533fc9bd2fbb5d26738ee0e3286bad Mon Sep 17 00:00:00 2001 From: Tohka Date: Sat, 31 Mar 2018 13:01:35 +0300 Subject: [PATCH] distributed: Fix DC file reading regression (#295) --- direct/src/distributed/ConnectionRepository.py | 2 +- direct/src/distributed/ServerRepository.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/direct/src/distributed/ConnectionRepository.py b/direct/src/distributed/ConnectionRepository.py index 974c611bcc..348a4390b6 100644 --- a/direct/src/distributed/ConnectionRepository.py +++ b/direct/src/distributed/ConnectionRepository.py @@ -333,7 +333,7 @@ class ConnectionRepository( continue classDef = getattr(classDef, className) - if inspect.isclass(classDef): + if not inspect.isclass(classDef): self.notify.error("Symbol %s is not a class name." % (className)) else: dclass.setClassDef(classDef) diff --git a/direct/src/distributed/ServerRepository.py b/direct/src/distributed/ServerRepository.py index 7783e2860b..894dfb1349 100644 --- a/direct/src/distributed/ServerRepository.py +++ b/direct/src/distributed/ServerRepository.py @@ -280,7 +280,7 @@ class ServerRepository: self.notify.error("Module %s does not define class %s." % (className, className)) classDef = getattr(classDef, className) - if inspect.isclass(classDef): + if not inspect.isclass(classDef): self.notify.error("Symbol %s is not a class name." % (className)) else: dclass.setClassDef(classDef)