mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Add cast so that mypy doesn't choke
This commit is contained in:
parent
91690524c0
commit
38256f7a98
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue