The following line can be problematic:
|
node.addObject('VisualStyle') |
The reason is that the Sofa.Component.Visual plugin is not necessarily loaded at the time. The code loading the plugins is a few lines below (
|
for name in plugins: |
|
confignode.addObject('RequiredPlugin', name=name, printLog=False) |
). This will make an error, even in the user calling the function explicitly adds "Sofa.Component.Visual".
I would either remove this call if it's not strictly needed, or add the Sofa.Component.Visual plugin right before.
The following line can be problematic:
STLIB/python3/src/stlib3/scene/mainheader.py
Line 33 in ab95265
The reason is that the
Sofa.Component.Visualplugin is not necessarily loaded at the time. The code loading the plugins is a few lines below (STLIB/python3/src/stlib3/scene/mainheader.py
Lines 47 to 48 in ab95265
I would either remove this call if it's not strictly needed, or add the
Sofa.Component.Visualplugin right before.