Browse Source

Merge branch '5.1'

# Conflicts:
#	.github/workflows/conan-package.yml
#	.github/workflows/cura-installer.yml
Jelle Spijker 2 years ago
parent
commit
1a0ecfd850

+ 1 - 1
.github/workflows/conan-package.yml

@@ -95,7 +95,7 @@ jobs:
         secrets: inherit
         secrets: inherit
 
 
     notify-export:
     notify-export:
-        if: always()
+        if: ${{ always() }}
         needs: [ conan-recipe-version, conan-package-export-linux, conan-package-export-macos, conan-package-export-windows ]
         needs: [ conan-recipe-version, conan-package-export-linux, conan-package-export-macos, conan-package-export-windows ]
 
 
         uses: ultimaker/cura/.github/workflows/notify.yml@main
         uses: ultimaker/cura/.github/workflows/notify.yml@main

+ 25 - 8
.github/workflows/cura-installer.yml

@@ -60,7 +60,11 @@ jobs:
         strategy:
         strategy:
             fail-fast: false
             fail-fast: false
             matrix:
             matrix:
-                os: [ macos-10.15, windows-2022, ubuntu-20.04 ]
+                include:
+                    - { os: macos-10.15, os_id: 'MacOS' }
+                    - { os: windows-2022, os_id: 'Windows' }
+                    - { os: ubuntu-20.04, os_id: 'Linux' }
+                    - { os: ubuntu-22.04, os_id: 'Linux-latest' }
 
 
         steps:
         steps:
             -   name: Checkout
             -   name: Checkout
@@ -112,7 +116,7 @@ jobs:
             -   name: Install Linux system requirements
             -   name: Install Linux system requirements
                 if: ${{ runner.os == 'Linux' }}
                 if: ${{ runner.os == 'Linux' }}
                 run: |
                 run: |
-                    sudo apt install build-essential checkinstall zlib1g-dev libssl-dev ninja-build autoconf libx11-dev libx11-xcb-dev libfontenc-dev libice-dev libsm-dev libxau-dev libxaw7-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxi-dev libxinerama-dev libxkbfile-dev libxmu-dev libxmuu-dev libxpm-dev libxrandr-dev libxrender-dev libxres-dev libxss-dev libxt-dev libxtst-dev libxv-dev libxvmc-dev libxxf86vm-dev xtrans-dev libxcb-render0-dev libxcb-render-util0-dev libxcb-xkb-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-xinerama0-dev xkb-data libxcb-dri3-dev uuid-dev libxcb-util-dev libxkbcommon-x11-dev -y
+                    sudo apt install build-essential checkinstall libegl-dev zlib1g-dev libssl-dev ninja-build autoconf libx11-dev libx11-xcb-dev libfontenc-dev libice-dev libsm-dev libxau-dev libxaw7-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxi-dev libxinerama-dev libxkbfile-dev libxmu-dev libxmuu-dev libxpm-dev libxrandr-dev libxrender-dev libxres-dev libxss-dev libxt-dev libxtst-dev libxv-dev libxvmc-dev libxxf86vm-dev xtrans-dev libxcb-render0-dev libxcb-render-util0-dev libxcb-xkb-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-xinerama0-dev xkb-data libxcb-dri3-dev uuid-dev libxcb-util-dev libxkbcommon-x11-dev -y
                     wget --no-check-certificate --quiet https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O $GITHUB_WORKSPACE/appimagetool
                     wget --no-check-certificate --quiet https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O $GITHUB_WORKSPACE/appimagetool
                     chmod +x $GITHUB_WORKSPACE/appimagetool
                     chmod +x $GITHUB_WORKSPACE/appimagetool
                     echo "APPIMAGETOOL_LOCATION=$GITHUB_WORKSPACE/appimagetool" >> $GITHUB_ENV
                     echo "APPIMAGETOOL_LOCATION=$GITHUB_WORKSPACE/appimagetool" >> $GITHUB_ENV
@@ -167,35 +171,35 @@ jobs:
 
 
             -   name: Archive the artifacts (bash)
             -   name: Archive the artifacts (bash)
                 if: ${{ github.event.inputs.installer == 'false' && runner.os != 'Windows' }}
                 if: ${{ github.event.inputs.installer == 'false' && runner.os != 'Windows' }}
-                run: tar -zcf "./Ultimaker-Cura-$CURA_VERSION_FULL-${{ runner.os }}-${{ runner.arch }}.tar.gz" "./Ultimaker-Cura/"
+                run: tar -zcf "./Ultimaker-Cura-$CURA_VERSION_FULL-${{ matrix.os_id }}-${{ runner.arch }}.tar.gz" "./Ultimaker-Cura/"
                 working-directory: dist
                 working-directory: dist
 
 
             -   name: Archive the artifacts (Powershell)
             -   name: Archive the artifacts (Powershell)
                 if: ${{ github.event.inputs.installer == 'false' && runner.os == 'Windows' }}
                 if: ${{ github.event.inputs.installer == 'false' && runner.os == 'Windows' }}
-                run: Compress-Archive -Path ".\Ultimaker-Cura" -DestinationPath ".\Ultimaker-Cura-$Env:CURA_VERSION_FULL-${{ runner.os }}-${{ runner.arch }}.zip"
+                run: Compress-Archive -Path ".\Ultimaker-Cura" -DestinationPath ".\Ultimaker-Cura-$Env:CURA_VERSION_FULL-${{ matrix.os_id }}-${{ runner.arch }}.zip"
                 working-directory: dist
                 working-directory: dist
 
 
             -   name: Create the Windows exe installer (Powershell)
             -   name: Create the Windows exe installer (Powershell)
                 if: ${{ github.event.inputs.installer == 'true' && runner.os == 'Windows' }}
                 if: ${{ github.event.inputs.installer == 'true' && runner.os == 'Windows' }}
                 run: |
                 run: |
-                    python ..\cura_inst\packaging\NSIS\nsis-configurator.py ".\Ultimaker-Cura" "..\cura_inst\packaging\NSIS\Ultimaker-Cura.nsi.jinja" "Ultimaker Cura" "Ultimaker-Cura.exe" "$Env:CURA_VERSION_MAJOR" "$Env:CURA_VERSION_MINOR" "$Env:CURA_VERSION_PATCH" "$Env:CURA_VERSION_BUILD" "Ultimaker B.V." "https://ultimaker.com" "..\cura_inst\packaging\cura_license.txt" "LZMA" "..\cura_inst\packaging\NSIS\cura_banner_nsis.bmp" "..\cura_inst\packaging\icons\Cura.ico" "Ultimaker-Cura-$Env:CURA_VERSION_FULL-${{ runner.os }}-${{ runner.arch }}.exe"
+                    python ..\cura_inst\packaging\NSIS\nsis-configurator.py ".\Ultimaker-Cura" "..\cura_inst\packaging\NSIS\Ultimaker-Cura.nsi.jinja" "Ultimaker Cura" "Ultimaker-Cura.exe" "$Env:CURA_VERSION_MAJOR" "$Env:CURA_VERSION_MINOR" "$Env:CURA_VERSION_PATCH" "$Env:CURA_VERSION_BUILD" "Ultimaker B.V." "https://ultimaker.com" "..\cura_inst\packaging\cura_license.txt" "LZMA" "..\cura_inst\packaging\NSIS\cura_banner_nsis.bmp" "..\cura_inst\packaging\icons\Cura.ico" "Ultimaker-Cura-$Env:CURA_VERSION_FULL-${{ matrix.os_id }}-${{ runner.arch }}.exe"
                     makensis /V2 /P4 Ultimaker-Cura.nsi
                     makensis /V2 /P4 Ultimaker-Cura.nsi
                 working-directory: dist
                 working-directory: dist
 
 
             -   name: Create the Linux AppImage (Bash)
             -   name: Create the Linux AppImage (Bash)
                 if: ${{ github.event.inputs.installer == 'true' && runner.os == 'Linux' }}
                 if: ${{ github.event.inputs.installer == 'true' && runner.os == 'Linux' }}
-                run: python ../cura_inst/packaging/AppImage/create_appimage.py ./Ultimaker-Cura $CURA_VERSION_FULL "Ultimaker-Cura-$CURA_VERSION_FULL-${{ runner.os }}-${{ runner.arch }}.AppImage"
+                run: python ../cura_inst/packaging/AppImage/create_appimage.py ./Ultimaker-Cura $CURA_VERSION_FULL "Ultimaker-Cura-$CURA_VERSION_FULL-${{ matrix.os_id }}-${{ runner.arch }}.AppImage"
                 working-directory: dist
                 working-directory: dist
 
 
             -   name: Create the MacOS dmg (Bash)
             -   name: Create the MacOS dmg (Bash)
                 if: ${{ github.event.inputs.installer == 'true' && runner.os == 'Macos' }}
                 if: ${{ github.event.inputs.installer == 'true' && runner.os == 'Macos' }}
-                run: python ../cura_inst/packaging/dmg/dmg_sign_noterize.py ../cura_inst . "Ultimaker-Cura-$CURA_VERSION_FULL-${{ runner.os }}-${{ runner.arch }}.dmg"
+                run: python ../cura_inst/packaging/dmg/dmg_sign_noterize.py ../cura_inst . "Ultimaker-Cura-$CURA_VERSION_FULL-${{ matrix.os_id }}-${{ runner.arch }}.dmg"
                 working-directory: dist
                 working-directory: dist
 
 
             -   name: Upload the artifacts
             -   name: Upload the artifacts
                 uses: actions/upload-artifact@v3
                 uses: actions/upload-artifact@v3
                 with:
                 with:
-                    name: Ultimaker-Cura-${{ env.CURA_VERSION_FULL }}-${{ runner.os }}-${{ runner.arch }}
+                    name: Ultimaker-Cura-${{ env.CURA_VERSION_FULL }}-${{ matrix.os_id }}-${{ runner.arch }}
                     path: |
                     path: |
                         dist/*.tar.gz
                         dist/*.tar.gz
                         dist/*.zip
                         dist/*.zip
@@ -205,3 +209,16 @@ jobs:
                         dist/*.AppImage
                         dist/*.AppImage
                         dist/*.asc
                         dist/*.asc
                     retention-days: 2
                     retention-days: 2
+
+    notify-export:
+        if: ${{ always() }}
+        needs: [ cura-installer-create ]
+
+        uses: ultimaker/cura/.github/workflows/notify.yml@main
+        with:
+            success: ${{ contains(join(needs.*.result, ','), 'success') }}
+            success_title: "Create the Cura distributions"
+            success_body: "Installers for ${{ inputs.cura_conan_version }}"
+            failure_title: "Failed to create the Cura distributions"
+            failure_body: "Failed to create at least 1 installer for ${{ inputs.cura_conan_version }}"
+        secrets: inherit

+ 1 - 1
.github/workflows/unit-test.yml

@@ -71,7 +71,7 @@ jobs:
         needs: [ conan-recipe-version ]
         needs: [ conan-recipe-version ]
 
 
         steps:
         steps:
-            -   name: Checkout CuraEngine
+            -   name: Checkout
                 uses: actions/checkout@v3
                 uses: actions/checkout@v3
 
 
             -   name: Setup Python and pip
             -   name: Setup Python and pip

+ 3 - 0
conandata.yml

@@ -73,6 +73,7 @@
             - "zeroconf"
             - "zeroconf"
             - "fcntl"
             - "fcntl"
             - "stl"
             - "stl"
+            - "serial"
         collect_all:
         collect_all:
             - "cura"
             - "cura"
             - "UM"
             - "UM"
@@ -164,6 +165,7 @@
             - "zeroconf"
             - "zeroconf"
             - "fcntl"
             - "fcntl"
             - "stl"
             - "stl"
+            - "serial"
         collect_all:
         collect_all:
             - "cura"
             - "cura"
             - "UM"
             - "UM"
@@ -255,6 +257,7 @@
             - "zeroconf"
             - "zeroconf"
             - "fcntl"
             - "fcntl"
             - "stl"
             - "stl"
+            - "serial"
         collect_all:
         collect_all:
             - "cura"
             - "cura"
             - "UM"
             - "UM"

+ 4 - 0
packaging/AppImage/AppRun

@@ -14,3 +14,7 @@ export QT_XKB_CONFIG_ROOT=/usr/share/X11/xkb
 export OPENSSL_CONF="$scriptdir/openssl.cnf"
 export OPENSSL_CONF="$scriptdir/openssl.cnf"
 
 
 $scriptdir/Ultimaker-Cura "$@"
 $scriptdir/Ultimaker-Cura "$@"
+
+# If this variable is set on Zorin OS 16 Cura would crash
+# unset `QT_STYLE_OVERRIDE` as a precaution
+unset QT_STYLE_OVERRIDE

+ 4 - 4
plugins/ModelChecker/model_checker.svg

@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml version="1.0" encoding="UTF-8"?>
 <svg width="30px" height="30px" viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg">
 <svg width="30px" height="30px" viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg">
-    <polygon fill="#000000" points="19 11 30 8 30 24 19 27" />
-    <path d="M10,19 C5.581722,19 2,15.418278 2,11 C2,6.581722 5.581722,3 10,3 C14.418278,3 18,6.581722 18,11 C18,15.418278 14.418278,19 10,19 Z M10,17 C13.3137085,17 16,14.3137085 16,11 C16,7.6862915 13.3137085,5 10,5 C6.6862915,5 4,7.6862915 4,11 C4,14.3137085 6.6862915,17 10,17 Z" fill="#000000" />
-    <polygon fill="#000000" points="4.2 15 6 16.8 1.8 21 0 19.2" />
-    <path d="M18.7333454,8.81666365 C18.2107269,6.71940704 16.9524304,4.91317986 15.248379,3.68790525 L18,3 L30,6 L18.7333454,8.81666365 Z M17,16.6573343 L17,27 L6,24 L6,19.0644804 C7.20495897,19.6632939 8.56315852,20 10,20 C12.8272661,20 15.3500445,18.6963331 17,16.6573343 Z" fill="#000000" />
+    <polygon points="19 11 30 8 30 24 19 27" />
+    <path d="M10,19 C5.581722,19 2,15.418278 2,11 C2,6.581722 5.581722,3 10,3 C14.418278,3 18,6.581722 18,11 C18,15.418278 14.418278,19 10,19 Z M10,17 C13.3137085,17 16,14.3137085 16,11 C16,7.6862915 13.3137085,5 10,5 C6.6862915,5 4,7.6862915 4,11 C4,14.3137085 6.6862915,17 10,17 Z" />
+    <polygon points="4.2 15 6 16.8 1.8 21 0 19.2" />
+    <path d="M18.7333454,8.81666365 C18.2107269,6.71940704 16.9524304,4.91317986 15.248379,3.68790525 L18,3 L30,6 L18.7333454,8.81666365 Z M17,16.6573343 L17,27 L6,24 L6,19.0644804 C7.20495897,19.6632939 8.56315852,20 10,20 C12.8272661,20 15.3500445,18.6963331 17,16.6573343 Z" />
 </svg>
 </svg>

+ 1 - 0
plugins/PostProcessingPlugin/PostProcessingPlugin.qml

@@ -286,6 +286,7 @@ UM.Dialog
                 {
                 {
                     id: definitionsModel
                     id: definitionsModel
                     containerId: manager.selectedScriptDefinitionId
                     containerId: manager.selectedScriptDefinitionId
+                    onContainerIdChanged: definitionsModel.setAllVisible(true)
                     showAll: true
                     showAll: true
                 }
                 }
 
 

+ 1 - 1
resources/definitions/fdmprinter.def.json

@@ -8040,7 +8040,7 @@
                     "description": "Alternate wall directions every other layer and inset. Useful for materials that can build up stress, like for metal printing.",
                     "description": "Alternate wall directions every other layer and inset. Useful for materials that can build up stress, like for metal printing.",
                     "type": "bool",
                     "type": "bool",
                     "default_value": false,
                     "default_value": false,
-                    "enabled": false,
+                    "enabled": true,
                     "settable_per_mesh": true,
                     "settable_per_mesh": true,
                     "settable_per_extruder": true
                     "settable_per_extruder": true
                 },
                 },

+ 1 - 0
resources/qml/Preferences/MachinesPage.qml

@@ -92,6 +92,7 @@ UM.ManagementPage
             minimumHeight: UM.Theme.getSize("modal_window_minimum").height
             minimumHeight: UM.Theme.getSize("modal_window_minimum").height
             maximumWidth: minimumWidth * 3
             maximumWidth: minimumWidth * 3
             maximumHeight: minimumHeight * 3
             maximumHeight: minimumHeight * 3
+            backgroundColor: UM.Theme.getColor("main_background")
         }
         }
 
 
         UM.ConfirmRemoveDialog
         UM.ConfirmRemoveDialog

+ 1 - 1
resources/qml/Preferences/RenameDialog.qml

@@ -23,7 +23,7 @@ UM.Dialog
     property string explanation: catalog.i18nc("@info", "Please provide a new name.")
     property string explanation: catalog.i18nc("@info", "Please provide a new name.")
 
 
     title: dialogTitle
     title: dialogTitle
-
+    backgroundColor: UM.Theme.getColor("main_background")
     minimumWidth: UM.Theme.getSize("small_popup_dialog").width
     minimumWidth: UM.Theme.getSize("small_popup_dialog").width
     minimumHeight: UM.Theme.getSize("small_popup_dialog").height
     minimumHeight: UM.Theme.getSize("small_popup_dialog").height
     width: minimumWidth
     width: minimumWidth

Some files were not shown because too many files changed in this diff