File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -214,7 +214,9 @@ def model_components(
214214 component_type = mesh_component .get ()
215215 for id in ids :
216216 geode_id = id .string ()
217- component_name = geode_id
217+ component_name = model .component_name (id )
218+ if not component_name :
219+ component_name = geode_id
218220 viewer_id = uuid_to_flat_index [geode_id ]
219221 boundaries = model .boundaries (id )
220222 boundaries_uuid = [boundary .id ().string () for boundary in boundaries ]
@@ -237,11 +239,14 @@ def model_components(
237239 component_type = collection_component .get ()
238240 for id in ids :
239241 geode_id = id .string ()
242+ component_name = model .component_name (id )
243+ if not component_name :
244+ component_name = geode_id
240245 items = model .items (id )
241246 items_uuid = [item .id ().string () for item in items ]
242247 collection_component_object = {
243248 "geode_id" : geode_id ,
244- "name" : geode_id ,
249+ "name" : component_name ,
245250 "type" : component_type ,
246251 "items" : items_uuid ,
247252 "is_active" : model .is_active (id ),
You can’t perform that action at this time.
0 commit comments