Skip to content

Commit 50d42bc

Browse files
authored
fix deprecated names, oglgrid and oglaxis (#334)
1 parent 2c3fabc commit 50d42bc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

examples/ReadTheDocs_Example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
SofaRuntime.importPlugin("Sofa.GL.Component")
1313

1414
def createScene(rootNode):
15-
rootNode.addObject("OglGrid", nbSubdiv=10, size=1000)
15+
rootNode.addObject("VisualGrid", nbSubdiv=10, size=1000)
1616

1717
rootNode.findData('gravity').value=[0.0,-981.0,0.0];
1818
rootNode.findData('dt').value=0.01

examples/example-forcefield.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def createScene(node):
3333
node.addObject("RequiredPlugin", name="Sofa.GL.Component")
3434
node.addObject("RequiredPlugin", name="Sofa.Component.LinearSolver.Direct")
3535
node.addObject("RequiredPlugin", name="Sofa.Component.ODESolver.Backward")
36-
node.addObject("OglLineAxis")
36+
node.addObject("LineAxis")
3737
node.addObject("DefaultAnimationLoop", name="loop")
3838
node.addObject("EulerImplicitSolver")
3939
node.addObject("CGLinearSolver", tolerance=1e-12, threshold=1e-12, iterations=25)

0 commit comments

Comments
 (0)