mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
prevent multiple auto-interests per DC class
This commit is contained in:
parent
21effb8112
commit
d6a87a9567
@ -125,6 +125,12 @@ class DistributedObject(DistributedObjectBase):
|
|||||||
cls.autoInterests = autoInterests
|
cls.autoInterests = autoInterests
|
||||||
return set(autoInterests)
|
return set(autoInterests)
|
||||||
autoInterests = _getAutoInterests(self.__class__)
|
autoInterests = _getAutoInterests(self.__class__)
|
||||||
|
# if the server starts supporting multiple auto-interest per class, this check
|
||||||
|
# should be removed
|
||||||
|
if len(autoInterests) > 1:
|
||||||
|
self.notify.error(
|
||||||
|
'only one auto-interest allowed per DC class, %s has %s autoInterests (%s)' %
|
||||||
|
(self.dclass.getName(), len(autoInterests), list(autoInterests)))
|
||||||
_getAutoInterests = None
|
_getAutoInterests = None
|
||||||
return list(autoInterests)
|
return list(autoInterests)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user