Skip to content

Commit f5b3026

Browse files
committed
Fix #45: Invalid count of widgets
1 parent 5b358fc commit f5b3026

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Marz Workbench Changelog
22

3+
## 0.1.12 (Nov 15th 2024)
4+
5+
- Fix #45: Invalid count of widgets
6+
37
## 0.1.11 (Nov 7th 2024)
48

59
- Fix Issue 42: numpy.typing

freecad/marz/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# | along with Marz Workbench. If not, see <https://www.gnu.org/licenses/>. |
1919
# +---------------------------------------------------------------------------+
2020

21-
__version__ = "0.1.11"
21+
__version__ = "0.1.12"
2222
__author__ = "Frank David Martinez M <mnesarco at gmail.com>"
2323
__copyright__ = "Copyright (c) 2020, Frank David Martinez M."
2424
__license__ = "GPLv3"

freecad/marz/extension/fcui.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,10 +1102,10 @@ def value(self) -> Tuple[float, ...]:
11021102
return tuple(i.value() for i in self.inputs)
11031103

11041104
def setValue(self, value):
1105-
if len(value) != len(self.inputs):
1106-
raise ValueError(
1107-
f"value must contains exactly {len(self.inputs)} elements"
1108-
)
1105+
while len(value) > len(self.inputs):
1106+
self.addValue()
1107+
while len(value) < len(self.inputs):
1108+
self.removeLast()
11091109
for i, input in enumerate(self.inputs):
11101110
input.setValue(value[i])
11111111

manifest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
;* General identification metadata *
44
;***************************************************************************
55
[general]
6-
version=0.1.11
6+
version=0.1.12
77
name=Marz
88
title=Marz Guitar Design
99
description=Parametric Guitar Design

package.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package format="1">
33
<name>Marz Workbench</name>
44
<description>Parametric Guitar design workbench</description>
5-
<version>0.1.11</version>
5+
<version>0.1.12</version>
66
<maintainer email="twitter: @mnesarco">Frank Martinez</maintainer>
77
<license file="LICENSE">GPL-3.0</license>
88
<url type="repository" branch="master">https://github.com/mnesarco/MarzWorkbench</url>
@@ -13,7 +13,7 @@
1313
<name>Marz Workbench</name>
1414
<classname>MarzWorkbench</classname>
1515
<description>Parametric Guitar design workbench.</description>
16-
<version>0.1.11</version>
16+
<version>0.1.12</version>
1717
<subdirectory>./</subdirectory>
1818
<icon>Resources/icons/Marz.svg</icon>
1919
<freecadmin>0.21.0</freecadmin>

0 commit comments

Comments
 (0)