Skip to content

Commit

Permalink
OpenSCAD: [skip ci] Coverity: Bad use of null-like value
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Sep 22, 2020
1 parent 8fe0d19 commit ec5bbad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Mod/OpenSCAD/importCSG.py
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/Mod/OpenSCAD/prototype.py
Expand Up @@ -86,6 +86,7 @@ def center(obj,x,y,z):
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"}
Expand Down

0 comments on commit ec5bbad

Please sign in to comment.