Dont add base pragma for PhysicsBody methods
This commit is contained in:
parent
daa56270e5
commit
4b6c76e776
1 changed files with 2 additions and 1 deletions
|
|
@ -603,7 +603,8 @@ proc doGenerateMethod(tree: PNode, methodBindRegistry: var HashSet[string],
|
|||
pragma.add(ident("gcsafe"))
|
||||
pragma.add(newNode(nkExprColonExpr).addChain(ident("locks"),
|
||||
newIntLit(0)))
|
||||
if isVirtual and isBase:
|
||||
if isVirtual and isBase and typ.name != "PhysicsBody":
|
||||
# Nim doesn't like `base` on PhysicsBody methods - wtf
|
||||
pragma.add(ident("base"))
|
||||
procDecl.sons[4] = pragma
|
||||
tree.add(procDecl)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue