Skip to content

Commit fa464a8

Browse files
committed
component change
1 parent 06ddd52 commit fa464a8

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Sofa/framework/Helper/src/sofa/helper/ComponentChange.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,9 @@ const std::map<std::string, ComponentChange, std::less<> > movedComponents = {
622622
{ "SparseLUSolver", Moved("v23.12", "Sofa.Component.LinearSolver.Direct", "CSparseSolvers") },
623623

624624
// Moved to Sofa.Component.MechanicalLoad
625-
{ "Gravity", Moved("v24.12", "SofaGraphComponent", "Sofa.Component.Mechanicalload") }
625+
{ "Gravity", Moved("v24.12", "SofaGraphComponent", "Sofa.Component.Mechanicalload") },
626+
627+
{ "OglCylinderModel", Moved("v24.12", "Sofa.GL.Component.Rendering3D", "Sofa.Component.Visual")}
626628
};
627629

628630
const std::map<std::string, ComponentChange, std::less<> > uncreatableComponents = {
@@ -760,8 +762,8 @@ const std::map< std::string, Renamed, std::less<> > renamedComponents = {
760762
{"UnilateralInteractionConstraint", Renamed("v24.06","v25.06","UnilateralLagrangianConstraint")},
761763
{"StiffSpringForceField", Renamed("v24.06","v25.06","SpringForceField")},
762764
{"ParallelStiffSpringForceField", Renamed("v24.06","v25.06","ParallelSpringForceField")},
763-
{"ShewchukPCGLinearSolver", Renamed("v24.12","v25.12","PCGLinearSolver")}
764-
765+
{"ShewchukPCGLinearSolver", Renamed("v24.12","v25.12","PCGLinearSolver")},
766+
{"OglCylinderModel", Renamed("v24.12", "v25.06", "CylinderVisualModel")}
765767
};
766768

767769

examples/Component/Visual/CylinderVisualModel.scn

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?xml version="1.0"?>
22
<Node name="root" dt="0.02">
3-
<RequiredPlugin name="Sofa.Component.Visual"/> <!-- Needed to use components [VisualStyle] -->
4-
<RequiredPlugin name="Sofa.GL.Component.Rendering3D"/> <!-- Needed to use components [OglCylinderModel] -->
3+
<RequiredPlugin name="Sofa.Component.Visual"/> <!-- Needed to use components [VisualStyle, CylinderVisualModel] -->
54
<DefaultAnimationLoop/>
65
<VisualStyle displayFlags="showVisual" />
76
<CylinderVisualModel position="0 0 0 10 0 0 " edges="0 1" color="yellow" />

0 commit comments

Comments
 (0)