I need to read the vertex groups in objects for an exporter I'm working on. I'm using evaluated_get to get the objects with modifiers applied in a non-destructive way. However doing this makes the object have no vertex groups on vertices. Basically any mesh I read is exported as if it was rigid instead of rigged. Is there a way around this?
modifier_list =  if triangulate_faces: for modifier in obj.modifiers: modifier.show_render = True modifier.show_viewport = True modifier.show_in_editmode = True modifier_list.append(modifier.type) if not 'TRIANGULATE' in modifier_list: obj.modifiers.new("Triangulate", type='TRIANGULATE') depsgraph = bpy.context.evaluated_depsgraph_get() object_eval = obj.evaluated_get(depsgraph) geometry_list.append(object_eval)