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):
26
26
isNode = True
27
27
elif isinstance (typeName , type ) and issubclass (typeName , Sofa .Core .Object ):
28
28
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 ):
30
30
params ["name" ] = typeName .__name__
31
31
else :
32
32
raise RuntimeError ("Invalid argument " , typeName )
@@ -40,10 +40,8 @@ def findName(cname, names):
40
40
# Dispatch the creation to either addObject or addChild
41
41
if isinstance (typeName , type ) and issubclass (typeName , Sofa .Core .Node ):
42
42
pref = self .addChild (typeName (params ["name" ]))
43
- pref .init ()
44
43
elif isinstance (typeName , Sofa .Core .Node ):
45
44
pref = self .addChild (typeName )
46
- pref .init ()
47
45
elif isinstance (typeName , type ) and issubclass (typeName , Sofa .Core .Object ):
48
46
pref = self .addObject (typeName (** params ))
49
47
elif isinstance (typeName , type ) and issubclass (typeName , Sofa .Core .ObjectDeclaration ):
You can’t perform that action at this time.
0 commit comments