OpenSCAD: [skip ci] Coverity: Bad use of null-like value

This commit is contained in:
wmayer
2020-09-22 14:22:10 +02:00
parent 8fe0d19ebe
commit ec5bbad626
2 changed files with 2 additions and 0 deletions

View File

@@ -381,6 +381,7 @@ def CGALFeatureObj(name,children,arguments=[]):
def p_offset_action(p):
'offset_action : offset LPAREN keywordargument_list RPAREN OBRACE block_list EBRACE'
subobj=None
if len(p[6]) == 0:
newobj = placeholder('group',[],'{}')
elif (len(p[6]) == 1 ): #single object

View File

@@ -86,6 +86,7 @@ class Node:
import FreeCAD,Part
if not doc:
doc=FreeCAD.newDocument()
obj=None
namel=self.name.lower()
multifeature={'union':"Part::MultiFuse",'imp_union':"Part::MultiFuse",
'intersection':"Part::MultiCommon"}