Use isinstance() instead or issubclass()

CURA-4525
This commit is contained in:
Lipu Fei 2018-01-12 16:42:32 +01:00
parent 51316e1dc1
commit b54b075cc9
8 changed files with 15 additions and 15 deletions

View file

@ -422,7 +422,7 @@ class CuraEngineBackend(QObject, Backend):
#
# \param source The scene node that was changed.
def _onSceneChanged(self, source):
if not issubclass(type(source), SceneNode):
if not isinstance(source, SceneNode):
return
build_plate_changed = set()