File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ def findName(cname, names):
2626 isNode = True
2727 elif isinstance (typeName , type ) and issubclass (typeName , Sofa .Core .Object ):
2828 params ["name" ] = typeName .name .value
29- elif isinstance (typeName , type ) and issubclass (typeName , Sofa .Core .ObjectDeclaration ):
29+ elif isinstance (typeName , type ) and issubclass (typeName , Sofa .Core .ObjectDeclaration ):
3030 params ["name" ] = typeName .__name__
3131 else :
3232 raise RuntimeError ("Invalid argument " , typeName )
@@ -40,10 +40,8 @@ def findName(cname, names):
4040 # Dispatch the creation to either addObject or addChild
4141 if isinstance (typeName , type ) and issubclass (typeName , Sofa .Core .Node ):
4242 pref = self .addChild (typeName (params ["name" ]))
43- pref .init ()
4443 elif isinstance (typeName , Sofa .Core .Node ):
4544 pref = self .addChild (typeName )
46- pref .init ()
4745 elif isinstance (typeName , type ) and issubclass (typeName , Sofa .Core .Object ):
4846 pref = self .addObject (typeName (** params ))
4947 elif isinstance (typeName , type ) and issubclass (typeName , Sofa .Core .ObjectDeclaration ):
You can’t perform that action at this time.
0 commit comments