diff --git a/builds/linux/obs/PKGBUILD b/builds/linux/obs/PKGBUILD index c1f457175..db86f2003 100755 --- a/builds/linux/obs/PKGBUILD +++ b/builds/linux/obs/PKGBUILD @@ -2,7 +2,7 @@ # Last Update: July 19, 2020 # Copyright (C) 2017 - 2023 by Trevor SANDY pkgname=lpub3d -pkgver=2.4.6.3361 +pkgver=2.4.6.3362 pkgrel=1 pkgdesc="An LDraw Building Instruction Editor" url="https://github.com/trevorsandy/lpub3d.git" diff --git a/builds/linux/obs/alldeps/PKGBUILD b/builds/linux/obs/alldeps/PKGBUILD index 8a6126f52..63076a510 100644 --- a/builds/linux/obs/alldeps/PKGBUILD +++ b/builds/linux/obs/alldeps/PKGBUILD @@ -2,7 +2,7 @@ # Last Update: July 19, 2020 # Copyright (C) 2017 - 2023 by Trevor SANDY pkgname=lpub3d -pkgver=2.4.6.3361 +pkgver=2.4.6.3362 pkgrel=1 pkgdesc="An LDraw Building Instruction Editor" url="https://github.com/trevorsandy/lpub3d.git" diff --git a/builds/linux/obs/alldeps/debian/changelog b/builds/linux/obs/alldeps/debian/changelog index 31829d045..0d2d172d0 100644 --- a/builds/linux/obs/alldeps/debian/changelog +++ b/builds/linux/obs/alldeps/debian/changelog @@ -1,5 +1,5 @@ -lpub3d (2.4.6.3361) debian; urgency=medium +lpub3d (2.4.6.3362) debian; urgency=medium - * LPub3D version 2.4.6.250.3361_20230509 for Linux + * LPub3D version 2.4.6.251.3362_20230509 for Linux - -- Trevor SANDY Tue, 09 May 2023 01:15:56 +0200 + -- Trevor SANDY Tue, 09 May 2023 01:16:20 +0200 diff --git a/builds/linux/obs/alldeps/debian/lpub3d.dsc b/builds/linux/obs/alldeps/debian/lpub3d.dsc index 9e0e075d2..ab3f323f7 100644 --- a/builds/linux/obs/alldeps/debian/lpub3d.dsc +++ b/builds/linux/obs/alldeps/debian/lpub3d.dsc @@ -2,7 +2,7 @@ Format: 1.0 Source: lpub3d Binary: lpub3d Architecture: any -Version: 2.4.6.3361 +Version: 2.4.6.3362 Maintainer: Trevor SANDY Homepage: https://trevorsandy.github.io/lpub3d/ Standards-Version: 3.9.7 diff --git a/builds/linux/obs/alldeps/lpub3d.spec b/builds/linux/obs/alldeps/lpub3d.spec index 5087ec956..a67559207 100644 --- a/builds/linux/obs/alldeps/lpub3d.spec +++ b/builds/linux/obs/alldeps/lpub3d.spec @@ -120,7 +120,7 @@ BuildRequires: fdupes Summary: An LDraw Building Instruction Editor Name: lpub3d Icon: lpub3d.xpm -Version: 2.4.6.3361 +Version: 2.4.6.3362 Release: %{?dist} URL: https://trevorsandy.github.io/lpub3d Vendor: Trevor SANDY @@ -797,7 +797,7 @@ update-desktop-database || true %endif %changelog -* Tue May 09 2023 - trevor.dot.sandy.at.gmail.dot.com 2.4.6.3361 +* Tue May 09 2023 - trevor.dot.sandy.at.gmail.dot.com 2.4.6.3362 - LPub3D 2.4.4 enhancements and fixes - see RELEASE_NOTES for details * Tue May 31 2022 - trevor dot sandy at gmail dot com 2.4.4.2670 diff --git a/builds/linux/obs/debian/changelog b/builds/linux/obs/debian/changelog index 424bb9f17..7c82e19ea 100644 --- a/builds/linux/obs/debian/changelog +++ b/builds/linux/obs/debian/changelog @@ -1,5 +1,5 @@ -lpub3d (2.4.6.3361) debian; urgency=medium +lpub3d (2.4.6.3362) debian; urgency=medium - * LPub3D version 2.4.6.250.3361_20230509 for Linux + * LPub3D version 2.4.6.251.3362_20230509 for Linux - -- Trevor SANDY Tue, 09 May 2023 01:15:58 +0200 + -- Trevor SANDY Tue, 09 May 2023 01:16:21 +0200 diff --git a/builds/linux/obs/debian/lpub3d.dsc b/builds/linux/obs/debian/lpub3d.dsc index 21ecd8eb3..d1dbff662 100755 --- a/builds/linux/obs/debian/lpub3d.dsc +++ b/builds/linux/obs/debian/lpub3d.dsc @@ -2,7 +2,7 @@ Format: 1.0 Source: lpub3d Binary: lpub3d Architecture: any -Version: 2.4.6.3361 +Version: 2.4.6.3362 Maintainer: Trevor SANDY Homepage: https://trevorsandy.github.io/lpub3d/ Standards-Version: 3.9.7 diff --git a/builds/linux/obs/lpub3d.spec b/builds/linux/obs/lpub3d.spec index 6b6e23092..6ab0dd477 100755 --- a/builds/linux/obs/lpub3d.spec +++ b/builds/linux/obs/lpub3d.spec @@ -82,7 +82,7 @@ BuildRequires: fdupes Summary: An LDraw Building Instruction Editor Name: lpub3d Icon: lpub3d.xpm -Version: 2.4.6.3361 +Version: 2.4.6.3362 Release: 1%{?dist} URL: https://trevorsandy.github.io/lpub3d Vendor: Trevor SANDY @@ -313,7 +313,7 @@ update-desktop-database || true %endif %changelog -* Tue May 09 2023 - trevor.dot.sandy.at.gmail.dot.com 2.4.6.3361 +* Tue May 09 2023 - trevor.dot.sandy.at.gmail.dot.com 2.4.6.3362 - LPub3D 2.4.4 enhancements and fixes - see RELEASE_NOTES for details * Tue May 31 2022 - trevor dot sandy at gmail dot com 2.4.4.2670 diff --git a/builds/utilities/version.info b/builds/utilities/version.info index 1da5185f6..42f4d4f28 100755 --- a/builds/utilities/version.info +++ b/builds/utilities/version.info @@ -1 +1 @@ -2 4 6 250 3361 d96c48185 +2 4 6 251 3362 3f873046d diff --git a/gitversion.pri b/gitversion.pri index 274d1dd7d..f27038e67 100644 --- a/gitversion.pri +++ b/gitversion.pri @@ -41,7 +41,7 @@ equals(GIT_DIR, undefined) { # Check if we do not have a valid version number (i.e. no version tag found) isEmpty(GIT_VERSION) { - GIT_REVISION = 250 + GIT_REVISION = 251 GIT_SHA = $$system($$GIT_BASE_COMMAND rev-parse --short HEAD 2> $$NULL_DEVICE) GIT_COMMIT = $$system($$GIT_BASE_COMMAND rev-list --count HEAD 2> $$NULL_DEVICE) GIT_VERSION = v$${VERSION}-$${GIT_REVISION}-$${GIT_SHA} @@ -69,7 +69,7 @@ equals(GIT_DIR, undefined) { # Get commit count GIT_COMMIT = $$system($$GIT_BASE_COMMAND rev-list --count HEAD 2> $$NULL_DEVICE) isEmpty(GIT_COMMIT) { - GIT_COMMIT = 3361 + GIT_COMMIT = 3362 message("~~~ ERROR! GIT_COMMIT NOT DEFINED, USING $$GIT_COMMIT ~~~") } @@ -117,7 +117,7 @@ if (equals(USE_GIT_VER_FILE, true)|equals(USE_VERSION_INFO_VAR, true)) { GIT_VERSION = $$cat($$GIT_VER_FILE, lines) } else { message("~~~ ERROR! $$GIT_DIR_ENV VERSION_INFO FILE $$GIT_VER_FILE NOT FOUND ~~~") - GIT_VERSION = $${VERSION}.250.3361.d96c48185 + GIT_VERSION = $${VERSION}.251.3362.3f873046d message("~~~ GIT_DIR [$$GIT_DIR_ENV, USING VERSION] $$GIT_VERSION ~~~") GIT_VERSION ~= s/\./" " } diff --git a/mainApp/docs/README.txt b/mainApp/docs/README.txt index ac95ff966..e838dfa8f 100755 --- a/mainApp/docs/README.txt +++ b/mainApp/docs/README.txt @@ -1,4 +1,4 @@ -LPub3D 2.4.6.250.3361 (09 05 2023 01:15:58) +LPub3D 2.4.6.251.3362 (09 05 2023 01:16:21) Features, enhancements, fixes and changes ------------ diff --git a/mainApp/docs/RELEASE_NOTES.html b/mainApp/docs/RELEASE_NOTES.html index 412da2fe5..3153fa084 100644 --- a/mainApp/docs/RELEASE_NOTES.html +++ b/mainApp/docs/RELEASE_NOTES.html @@ -18,7 +18,7 @@
-

LPub3D 2.4.6.250.3361 (09 05 2023 01:15:58)

+

LPub3D 2.4.6.251.3362 (09 05 2023 01:16:21)


LPub3D Official release.
diff --git a/mainApp/extras/LPub3D_Npp_UDL.xml b/mainApp/extras/LPub3D_Npp_UDL.xml index fea7efe94..7be057f47 100644 --- a/mainApp/extras/LPub3D_Npp_UDL.xml +++ b/mainApp/extras/LPub3D_Npp_UDL.xml @@ -14,8 +14,8 @@ ;; ;; Author......: Trevor SANDY ;; Name........: LPub3D_Npp_UDL.xml -;; Version.....: 2.4.6.250.3361 -;; Last Update.: Tue, 09 May 2023 01:15:58 +0200 +;; Version.....: 2.4.6.251.3362 +;; Last Update.: Tue, 09 May 2023 01:16:21 +0200 ;; License.....: GPLv3 ;; Homepage....: https://trevorsandy.github.io/lpub3d ;; Copyright (C) 2021 - 2023 by Trevor SANDY diff --git a/mainApp/preferences.ui b/mainApp/preferences.ui index 0eba90299..3e7d80d82 100644 --- a/mainApp/preferences.ui +++ b/mainApp/preferences.ui @@ -946,7 +946,7 @@ - 3 + 0 @@ -2343,6 +2343,20 @@ + + + Blender + + + + + + Blender LDraw Addon Is Installed + + + + + @@ -3379,7 +3393,7 @@ Check if LSynth parts exist in LDraw folder but not included in search paths -e. - 1 + 0 @@ -3780,6 +3794,7 @@ p, li { white-space: pre-wrap; } applyCARendererRadio optionsButton preferredRenderer + projectionCombo rendererTimeout antiAliasing antiAliasingSamples @@ -3789,6 +3804,7 @@ p, li { white-space: pre-wrap; } MeshLODSlider ShadingMode studStyleCombo + HighContrastButton LPubFadeHighlight ConditionalLinesCheckBox FadeSteps @@ -3797,7 +3813,6 @@ p, li { white-space: pre-wrap; } HighlightNewParts HighlightNewPartsColor ResetHighlightNewPartsButton - HighContrastButton AutomateEdgeColor AutomateEdgeColorButton ViewpointsCombo @@ -3869,10 +3884,17 @@ p, li { white-space: pre-wrap; } includeAllLogAttribBox logLevelGrpBox logLevelCombo + suppressFPrintBox logLevelsGrpBox fatalLevelBox errorLevelBox statusLevelBox + warningLevelBox + allLogLevelsBox + infoLevelBox + noticeLevelBox + traceLevelBox + debugLevelBox commandList KeyboardFilterEdit shortcutsImport @@ -3881,9 +3903,9 @@ p, li { white-space: pre-wrap; } shortcutEdit shortcutAssign shortcutRemove + othersTabWidget lineEditIniFile textEditSearchDirs - othersTabWidget checkUpdateFrequency_Combo moduleVersion_Combo showAllNotificstions_Chk @@ -3894,6 +3916,7 @@ p, li { white-space: pre-wrap; } autoUpdateChangeLogBox updateChangeLogBtn changeLog_txbr + renderersTabWidget diff --git a/mainApp/preferencesdialog.cpp b/mainApp/preferencesdialog.cpp index 645e67b44..1f9e76180 100644 --- a/mainApp/preferencesdialog.cpp +++ b/mainApp/preferencesdialog.cpp @@ -34,6 +34,7 @@ #include "application.h" #include "updatecheck.h" #include "commonmenus.h" +#include "blenderpreferences.h" #include @@ -394,6 +395,8 @@ void PreferencesDialog::setPreferences() // end preferred renderer + setBlenderAddonPreferences(); + ui.fadeStepsUseColourGrpBox->setTitle( fadeStepsColorTitle); ui.pliControlEdit->setText( Preferences::pliControlFile); ui.altLDConfigPath->setText( Preferences::altLDConfigPath); @@ -760,6 +763,48 @@ void PreferencesDialog::installRenderer() } } +void PreferencesDialog::setBlenderAddonPreferences() +{ + ui.blenderGrpBox->setTitle(tr("Blender Render Settings")); + blenderAddonPreferences = + new BlenderPreferences( + RENDER_DEFAULT_WIDTH, + RENDER_DEFAULT_HEIGHT, + 1.0, + false, + ui.blenderGrpBox); + + QDialogButtonBox *buttonBox; + buttonBox = new QDialogButtonBox(this); + QPushButton *applyBtn = new QPushButton(tr("Apply")); + buttonBox->addButton(applyBtn,QDialogButtonBox::ActionRole); + connect(applyBtn,SIGNAL(clicked()),this,SLOT(applyBlenderAddonPreferences())); + + blenderAddonPathsBtn = new QPushButton(tr("Show Paths")); + buttonBox->addButton(blenderAddonPathsBtn,QDialogButtonBox::ActionRole); + connect(blenderAddonPathsBtn,SIGNAL(clicked()),this,SLOT(showBlenderAddonPaths())); + + QPushButton *resetBtn = new QPushButton(tr("Reset")); + buttonBox->addButton(resetBtn,QDialogButtonBox::ActionRole); + QObject::connect(resetBtn,SIGNAL(clicked()),blenderAddonPreferences,SLOT(resetSettings())); + + ui.blenderGrpBox->layout()->addWidget(buttonBox); +} + +void PreferencesDialog::applyBlenderAddonPreferences() +{ + blenderAddonPreferences->apply(QDialog::Accepted); +} + +void PreferencesDialog::showBlenderAddonPaths() +{ + if(blenderAddonPathsBtn->text().startsWith("Hide")) + blenderAddonPathsBtn->setText(tr("Show Paths")); + else + blenderAddonPathsBtn->setText(tr("Hide Paths")); + blenderAddonPreferences->showPathsGroup(); +} + void PreferencesDialog::sceneColorButtonClicked() { QObject *button = sender(); @@ -771,31 +816,31 @@ void PreferencesDialog::sceneColorButtonClicked() { oldColor = QColor(sceneBackgroundColorStr); title = tr("Select Scene Background Color"); - dialogOptions = nullptr; + dialogOptions = QColorDialog::ShowAlphaChannel; } else if (button == ui.sceneGridColorButton) { oldColor = QColor(sceneGridColorStr); title = tr("Select Scene Grid Color"); - dialogOptions = nullptr; + dialogOptions = QColorDialog::ShowAlphaChannel; } else if (button == ui.sceneRulerTickColorButton) { oldColor = QColor(sceneRulerTickColorStr); title = tr("Select Scene Ruler Tick Color"); - dialogOptions = nullptr; + dialogOptions = QColorDialog::ShowAlphaChannel; } else if (button == ui.sceneRulerTrackingColorButton) { oldColor = QColor(sceneRulerTrackingColorStr); title = tr("Select Ruler Tracking Color"); - dialogOptions = nullptr; + dialogOptions = QColorDialog::ShowAlphaChannel; } else if (button == ui.sceneGuideColorButton) { oldColor = QColor(sceneGuideColorStr); title = tr("Select Scene Guide Color"); - dialogOptions = nullptr; + dialogOptions = QColorDialog::ShowAlphaChannel; } else return; diff --git a/mainApp/preferencesdialog.h b/mainApp/preferencesdialog.h index f54f57483..494d784f1 100644 --- a/mainApp/preferencesdialog.h +++ b/mainApp/preferencesdialog.h @@ -75,6 +75,7 @@ namespace Ui{ class PreferencesDialog; } +class BlenderPreferences; class ThemeColorsDialog; class PreferencesDialog : public QDialog { @@ -277,6 +278,9 @@ class PreferencesDialog : public QDialog void shortcutEditReset(); void enableShortcutEditReset(const QString &displayText); + void applyBlenderAddonPreferences(); + void showBlenderAddonPaths(); + bool maybeSave(); void closeEvent(QCloseEvent *event) override; @@ -292,6 +296,11 @@ class PreferencesDialog : public QDialog bool isValidKeyboardShortcut(const QString &ObjectName, const QString &NewShortcut); bool isValidKeyboardShortcut(const QString &ObjectName, const QString &NewShortcut, QString &Result, bool Loading); + void setBlenderAddonPreferences(); + + QPushButton *blenderAddonPathsBtn; + BlenderPreferences *blenderAddonPreferences; + QDialog *messageDialog; QToolButton *parseErrorTBtn; QLabel *parseErrorLbl;