Skip to content

Commit fe01351

Browse files
committed
fix(grid): only disable when property exists
1 parent d45811b commit fe01351

4 files changed

Lines changed: 11 additions & 4 deletions

File tree

CHANGELOG.md

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

3+
## [2.1.1] - 2024-11-10
4+
5+
### Fixed
6+
7+
* Only disable `ExtraBottomMaterial` when it exists
8+
39
## [2.1.0] - 2024-11-10
410

511
### Added
@@ -128,3 +134,4 @@
128134
[2.0.0]: https://github.com/instancezero/in3dca-freegrid/releases/tag/2.0.0
129135
[2.0.1]: https://github.com/instancezero/in3dca-freegrid/releases/tag/2.0.1
130136
[2.1.0]: https://github.com/instancezero/in3dca-freegrid/releases/tag/2.1.0
137+
[2.1.1]: https://github.com/instancezero/in3dca-freegrid/releases/tag/2.1.1

freecad/freegrid/FreeGridCmd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def onChanged(self, obj, prop):
420420
if prop == "IncludeMagnets":
421421
obj.setEditorMode("MagnetDiameter", not obj.IncludeMagnets)
422422
obj.setEditorMode("MagnetHeight", not obj.IncludeMagnets)
423-
elif prop == "IsSubtractive":
423+
elif prop == "IsSubtractive" and hasattr(self, "ExtraBottomMaterial"):
424424
obj.setEditorMode("ExtraBottomMaterial", not obj.IsSubtractive)
425425

426426
def generate_grid(self, obj) -> Part.Shape:

freecad/freegrid/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import FreeCAD
33

4-
__version__ = "2.1.0"
4+
__version__ = "2.1.1"
55

66
path = os.path.join(os.path.dirname(__file__), "resources")
77

package.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
<description>A simple tools workbench for generating FreeGrid storage system components.</description>
77

8-
<version>2.1.0</version>
8+
<version>2.1.1</version>
99

10-
<date>2024-11-07</date>
10+
<date>2024-11-10</date>
1111

1212
<maintainer>Alan Langford</maintainer>
1313

0 commit comments

Comments
 (0)