diff --git a/smarts/core/actor_capture_manager.py b/smarts/core/actor_capture_manager.py index 709e1793ea..1c0a68a537 100644 --- a/smarts/core/actor_capture_manager.py +++ b/smarts/core/actor_capture_manager.py @@ -140,7 +140,7 @@ def _gen_all_condition_kwargs( @staticmethod def _gen_mission_condition_kwargs( - agent_id: str, mission: NavigationMission, condition_requires: ConditionRequires + agent_id: str, mission: Optional[NavigationMission], condition_requires: ConditionRequires ) -> Dict[str, Any]: out_kwargs = dict() diff --git a/smarts/core/utils/glb.py b/smarts/core/utils/glb.py index d1b36318bd..50cd4548fa 100644 --- a/smarts/core/utils/glb.py +++ b/smarts/core/utils/glb.py @@ -147,7 +147,7 @@ def make_map_glb( meshes = _generate_meshes_from_polygons(polygons) material = PBRMaterial("RoadDefault") for mesh in meshes: - mesh.visual = trimesh.visual.TextureVisuals(material=material) + mesh.visual.material = material road_id = mesh.metadata["road_id"] lane_id = mesh.metadata.get("lane_id") name = str(road_id)