mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 03:07:53 -06:00
Use isinstance() instead or issubclass()
CURA-4525
This commit is contained in:
parent
51316e1dc1
commit
b54b075cc9
8 changed files with 15 additions and 15 deletions
|
@ -61,7 +61,7 @@ class PlatformPhysics:
|
|||
|
||||
random.shuffle(nodes)
|
||||
for node in nodes:
|
||||
if node is root or not issubclass(type(node), SceneNode) or node.getBoundingBox() is None:
|
||||
if node is root or not isinstance(node, SceneNode) or node.getBoundingBox() is None:
|
||||
continue
|
||||
|
||||
bbox = node.getBoundingBox()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue