mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 01:19:01 +08:00
Add cast so that mypy doesn't choke
This commit is contained in:
parent
91690524c0
commit
38256f7a98
@ -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…
x
Reference in New Issue
Block a user