Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2020-07-08 12:05:46 +0300
committerJaime van Kessel <nallath@gmail.com>2020-07-08 12:05:46 +0300
commit38256f7a98e4c3f5c7fd561c51970c758180aa6c (patch)
tree69572b99ea5202b6eb2269c705a36672946a139f /plugins/3MFReader
parent91690524c0e11f7accde6fd802c9aab1348ad0f0 (diff)
Add cast so that mypy doesn't choke
Diffstat (limited to 'plugins/3MFReader')
-rwxr-xr-xplugins/3MFReader/ThreeMFReader.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/3MFReader/ThreeMFReader.py b/plugins/3MFReader/ThreeMFReader.py
index 2e035c7a59..2c29728d66 100755
--- a/plugins/3MFReader/ThreeMFReader.py
+++ b/plugins/3MFReader/ThreeMFReader.py
@@ -3,7 +3,7 @@
import os.path
import zipfile
-from typing import List, Optional, Union, TYPE_CHECKING
+from typing import List, Optional, Union, TYPE_CHECKING, cast
import Savitar
import numpy
@@ -175,7 +175,7 @@ class ThreeMFReader(MeshReader):
parent_transformation = um_node.getLocalTransformation()
child_transformation = child_node.getLocalTransformation()
child_node.setTransformation(parent_transformation.multiply(child_transformation))
- um_node = um_node.getChildren()[0]
+ um_node = cast(CuraSceneNode, um_node.getChildren()[0])
else:
group_decorator = GroupDecorator()
um_node.addDecorator(group_decorator)