@@ -165,30 +165,21 @@ def __init__(
165165 def _add_entity (self , morph : Morph , material , surface , visualize_contact = False ):
166166 if isinstance (material , gs .materials .Tool ):
167167 entity = self .tool_solver .add_entity (self .n_entities , material , morph , surface )
168-
169168 elif isinstance (material , gs .materials .Avatar ):
170169 entity = self .avatar_solver .add_entity (self .n_entities , material , morph , surface , visualize_contact )
171-
172170 elif isinstance (material , gs .materials .Rigid ):
173171 entity = self .rigid_solver .add_entity (self .n_entities , material , morph , surface , visualize_contact )
174-
175172 elif isinstance (material , gs .materials .MPM .Base ):
176173 entity = self .mpm_solver .add_entity (self .n_entities , material , morph , surface )
177-
178174 elif isinstance (material , gs .materials .SPH .Base ):
179175 entity = self .sph_solver .add_entity (self .n_entities , material , morph , surface )
180-
181176 elif isinstance (material , gs .materials .PBD .Base ):
182177 entity = self .pbd_solver .add_entity (self .n_entities , material , morph , surface )
183-
184178 elif isinstance (material , gs .materials .FEM .Base ):
185179 entity = self .fem_solver .add_entity (self .n_entities , material , morph , surface )
186-
187180 elif isinstance (material , gs .materials .Hybrid ):
188- entity = HybridEntity (
189- self .n_entities , self .scene , material , morph , surface
190- ) # adding to solver is handled in the hybrid entity
191-
181+ # Note that adding to solver is handled in the hybrid entity
182+ entity = HybridEntity (self .n_entities , self .scene , material , morph , surface )
192183 else :
193184 gs .raise_exception (f"Material not supported.: { material } " )
194185
0 commit comments