mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 20:29:05 +08:00
Merge branch 'master' of github.com:Ultimaker/Cura
This commit is contained in:
commit
be1ea9bffd
@ -48,7 +48,13 @@ class PlatformPhysics:
|
|||||||
bbox = node.getBoundingBox()
|
bbox = node.getBoundingBox()
|
||||||
|
|
||||||
# Ignore intersections with the bottom
|
# Ignore intersections with the bottom
|
||||||
build_volume_bounding_box = self._build_volume.getBoundingBox().set(bottom=-9001)
|
build_volume_bounding_box = self._build_volume.getBoundingBox()
|
||||||
|
if build_volume_bounding_box:
|
||||||
|
build_volume_bounding_box.set(bottom=-9001)
|
||||||
|
else:
|
||||||
|
# No bounding box. This is triggered when running Cura from command line with a model for the first time
|
||||||
|
# In that situation there is a model, but no machine (and therefore no build volume.
|
||||||
|
return
|
||||||
node._outside_buildarea = False
|
node._outside_buildarea = False
|
||||||
|
|
||||||
# Mark the node as outside the build volume if the bounding box test fails.
|
# Mark the node as outside the build volume if the bounding box test fails.
|
||||||
|
@ -321,23 +321,7 @@ UM.MainWindow
|
|||||||
sourceSize.height: height;
|
sourceSize.height: height;
|
||||||
}
|
}
|
||||||
|
|
||||||
Button
|
|
||||||
{
|
|
||||||
id: viewModeButton
|
|
||||||
|
|
||||||
anchors
|
|
||||||
{
|
|
||||||
top: toolbar.bottom;
|
|
||||||
topMargin: UM.Theme.getSize("window_margin").height;
|
|
||||||
left: parent.left;
|
|
||||||
}
|
|
||||||
text: catalog.i18nc("@action:button","View Mode");
|
|
||||||
iconSource: UM.Theme.getIcon("viewmode");
|
|
||||||
|
|
||||||
style: UM.Theme.styles.tool_button;
|
|
||||||
tooltip: '';
|
|
||||||
menu: ViewMenu { }
|
|
||||||
}
|
|
||||||
|
|
||||||
Toolbar
|
Toolbar
|
||||||
{
|
{
|
||||||
@ -367,6 +351,24 @@ UM.MainWindow
|
|||||||
width: UM.Theme.getSize("sidebar").width;
|
width: UM.Theme.getSize("sidebar").width;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Button
|
||||||
|
{
|
||||||
|
id: viewModeButton
|
||||||
|
|
||||||
|
anchors
|
||||||
|
{
|
||||||
|
top: toolbar.bottom;
|
||||||
|
topMargin: UM.Theme.getSize("window_margin").height;
|
||||||
|
left: parent.left;
|
||||||
|
}
|
||||||
|
text: catalog.i18nc("@action:button","View Mode");
|
||||||
|
iconSource: UM.Theme.getIcon("viewmode");
|
||||||
|
|
||||||
|
style: UM.Theme.styles.tool_button;
|
||||||
|
tooltip: '';
|
||||||
|
menu: ViewMenu { }
|
||||||
|
}
|
||||||
|
|
||||||
Rectangle
|
Rectangle
|
||||||
{
|
{
|
||||||
id: viewportOverlay
|
id: viewportOverlay
|
||||||
|
Loading…
x
Reference in New Issue
Block a user