Skip to content

Commit 6c194aa

Browse files
authored
Fix usability for simple groups
Address the issue where it was impossible to use simple groups in assembly workbenches, by adding an additional check to deal with this case.
1 parent 562c05f commit 6c194aa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ExplodedAssembly.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,11 @@ def createSimpleDisassemble():
213213
dir_vector = selection[-1].SubObjects[-1].normalAt(0, 0)
214214
# the rotation center is the center of mass of the last face selected
215215
rot_center = selection[-1].SubObjects[-1].CenterOfMass
216+
217+
# ignore last object if it cannot be moved, it is only used for positioning
218+
if FreeCAD.ActiveDocument.getObject(selection[-1].Object.Name) is None:
219+
del selection[-1]
220+
216221
# create trajectory data
217222
for sel_obj in selection:
218223
# append object name

0 commit comments

Comments
 (0)