View Revisions: Issue #4421
Summary | 0004421: Part.CompoundTools.Explode.explodeCompound access a property of a sometimes null object with an error | ||
---|---|---|---|
Revision | 2021-02-21 03:54 by Kunda1 | ||
Description | Python code, file "src/Mod/Part/CompoundTools/Explode.py". The "explodeCompound" function can be called in a context without assigning the "ViewObject" property, for example from a command line script. The error:
I attach the simple patch to the code to correct it. |
||
Revision | 2020-08-20 08:20 by marioamb | ||
Description | Python code, file "src/Mod/Part/CompoundTools/Explode.py". The "explodeCompound" function can be called in a context without assigning the "ViewObject" property, for example from a command line script. The error: [code=traceback (most recent call last): ... file "/opt/freecad/mod/part/compoundtools/explode.py", line 23, in explodecompound cf.viewobject.dontunhideondelete = true attributeerror: 'nonetype' object has no attribute 'dontunhideondelete'][/code] I attach the simple patch to the code to correct it. |