mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 15:05:54 +08:00
Merge branch '15.10' of https://github.com/Ultimaker/Cura into 15.10
This commit is contained in:
commit
d7923b8100
@ -276,17 +276,11 @@ class CuraApplication(QtApplication):
|
|||||||
new_node.callDecoration("setConvexHull",None)
|
new_node.callDecoration("setConvexHull",None)
|
||||||
|
|
||||||
op.addOperation(AddSceneNodeOperation(new_node,node.getParent().getParent()))
|
op.addOperation(AddSceneNodeOperation(new_node,node.getParent().getParent()))
|
||||||
|
|
||||||
pass
|
|
||||||
else:
|
else:
|
||||||
new_node = SceneNode()
|
new_node = copy.deepcopy(node)
|
||||||
new_node.setMeshData(node.getMeshData())
|
new_node.callDecoration("setConvexHull", None)
|
||||||
|
|
||||||
new_node.translate(Vector((i + 1) * node.getBoundingBox().width, node.getPosition().y, 0))
|
|
||||||
new_node.setOrientation(node.getOrientation())
|
|
||||||
new_node.setScale(node.getScale())
|
|
||||||
new_node.setSelectable(True)
|
|
||||||
op.addOperation(AddSceneNodeOperation(new_node, node.getParent()))
|
op.addOperation(AddSceneNodeOperation(new_node, node.getParent()))
|
||||||
|
|
||||||
op.push()
|
op.push()
|
||||||
|
|
||||||
## Center object on platform.
|
## Center object on platform.
|
||||||
|
@ -88,10 +88,13 @@ class WindowsRemovableDrivePlugin(RemovableDrivePlugin.RemovableDrivePlugin):
|
|||||||
|
|
||||||
result = None
|
result = None
|
||||||
# Then, try and tell it to eject
|
# Then, try and tell it to eject
|
||||||
|
try:
|
||||||
if not windll.kernel32.DeviceIoControl(handle, IOCTL_STORAGE_EJECT_MEDIA, None, None, None, None, None, None):
|
if not windll.kernel32.DeviceIoControl(handle, IOCTL_STORAGE_EJECT_MEDIA, None, None, None, None, None, None):
|
||||||
result = False
|
result = False
|
||||||
else:
|
else:
|
||||||
result = True
|
result = True
|
||||||
|
except Exception as e:
|
||||||
|
result = False
|
||||||
|
|
||||||
# Finally, close the handle
|
# Finally, close the handle
|
||||||
windll.kernel32.CloseHandle(handle)
|
windll.kernel32.CloseHandle(handle)
|
||||||
|
@ -5,7 +5,7 @@ import QtQuick 2.2
|
|||||||
import QtQuick.Window 2.2
|
import QtQuick.Window 2.2
|
||||||
import QtQuick.Controls 1.2
|
import QtQuick.Controls 1.2
|
||||||
|
|
||||||
import UM 1.0 as UM
|
import UM 1.1 as UM
|
||||||
|
|
||||||
UM.Dialog
|
UM.Dialog
|
||||||
{
|
{
|
||||||
@ -23,7 +23,7 @@ UM.Dialog
|
|||||||
{
|
{
|
||||||
anchors.fill: parent;
|
anchors.fill: parent;
|
||||||
|
|
||||||
Text
|
Label
|
||||||
{
|
{
|
||||||
anchors
|
anchors
|
||||||
{
|
{
|
||||||
@ -70,6 +70,8 @@ UM.Dialog
|
|||||||
{
|
{
|
||||||
id: palette;
|
id: palette;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UM.I18nCatalog { id: catalog; name: "cura"; }
|
||||||
}
|
}
|
||||||
|
|
||||||
rightButtons: [
|
rightButtons: [
|
||||||
|
10395
resources/themes/cura/icons/reset.svg
Normal file
10395
resources/themes/cura/icons/reset.svg
Normal file
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 762 KiB |
@ -102,6 +102,7 @@
|
|||||||
"setting_control_text": [0, 0, 0, 255],
|
"setting_control_text": [0, 0, 0, 255],
|
||||||
"setting_control_hover": [139, 143, 153, 255],
|
"setting_control_hover": [139, 143, 153, 255],
|
||||||
"setting_control_selected": [35, 35, 35, 255],
|
"setting_control_selected": [35, 35, 35, 255],
|
||||||
|
"setting_control_revert": [85, 85, 85, 255],
|
||||||
"setting_unit": [174, 174, 174, 255],
|
"setting_unit": [174, 174, 174, 255],
|
||||||
"setting_validation_error": [255, 57, 14, 255],
|
"setting_validation_error": [255, 57, 14, 255],
|
||||||
"setting_validation_warning": [255, 186, 15, 255],
|
"setting_validation_warning": [255, 186, 15, 255],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user