mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 20:19:13 +08:00
Merge branch '2.3' of github.com:Ultimaker/Cura into 2.3
This commit is contained in:
commit
45a841a52b
@ -71,7 +71,7 @@ class ThreeMFReader(MeshReader):
|
|||||||
rotation.setByRotationAxis(-0.5 * math.pi, Vector(1, 0, 0))
|
rotation.setByRotationAxis(-0.5 * math.pi, Vector(1, 0, 0))
|
||||||
|
|
||||||
# TODO: We currently do not check for normals and simply recalculate them.
|
# TODO: We currently do not check for normals and simply recalculate them.
|
||||||
mesh_builder.calculateNormals()
|
mesh_builder.calculateNormals(flip = True)
|
||||||
mesh_builder.setFileName(file_name)
|
mesh_builder.setFileName(file_name)
|
||||||
node.setMeshData(mesh_builder.build().getTransformed(rotation))
|
node.setMeshData(mesh_builder.build().getTransformed(rotation))
|
||||||
node.setSelectable(True)
|
node.setSelectable(True)
|
||||||
|
@ -77,7 +77,10 @@ class PerObjectSettingsTool(Tool):
|
|||||||
if not self._multi_extrusion:
|
if not self._multi_extrusion:
|
||||||
default_stack_id = global_container_stack.getId()
|
default_stack_id = global_container_stack.getId()
|
||||||
else:
|
else:
|
||||||
default_stack_id = ExtruderManager.getInstance().getExtruderStack(0).getId()
|
default_stack = ExtruderManager.getInstance().getExtruderStack(0)
|
||||||
|
if default_stack:
|
||||||
|
default_stack_id = default_stack.getId()
|
||||||
|
else: default_stack_id = global_container_stack.getId()
|
||||||
|
|
||||||
root_node = Application.getInstance().getController().getScene().getRoot()
|
root_node = Application.getInstance().getController().getScene().getRoot()
|
||||||
for node in DepthFirstIterator(root_node):
|
for node in DepthFirstIterator(root_node):
|
||||||
|
@ -51,6 +51,8 @@ class SolidView(View):
|
|||||||
if multi_extrusion:
|
if multi_extrusion:
|
||||||
support_extruder_nr = global_container_stack.getProperty("support_extruder_nr", "value")
|
support_extruder_nr = global_container_stack.getProperty("support_extruder_nr", "value")
|
||||||
support_angle_stack = ExtruderManager.getInstance().getExtruderStack(support_extruder_nr)
|
support_angle_stack = ExtruderManager.getInstance().getExtruderStack(support_extruder_nr)
|
||||||
|
if not support_angle_stack:
|
||||||
|
support_angle_stack = global_container_stack
|
||||||
else:
|
else:
|
||||||
support_angle_stack = global_container_stack
|
support_angle_stack = global_container_stack
|
||||||
|
|
||||||
|
@ -138,7 +138,7 @@ Item {
|
|||||||
{
|
{
|
||||||
id: linkedSettingIcon;
|
id: linkedSettingIcon;
|
||||||
|
|
||||||
visible: Cura.MachineManager.activeStackId != Cura.MachineManager.activeMachineId && !definition.settable_per_extruder && base.showLinkedSettingIcon
|
visible: Cura.MachineManager.activeStackId != Cura.MachineManager.activeMachineId && (!definition.settable_per_extruder || definition.global_inherits_stack != "-1") && base.showLinkedSettingIcon
|
||||||
|
|
||||||
height: parent.height;
|
height: parent.height;
|
||||||
width: height;
|
width: height;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user