Skip to content

Commit

Permalink
Fix final type issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamenot committed Jan 30, 2024
1 parent b862a4b commit 2b55825
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion smarts/core/actor_capture_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion smarts/core/utils/glb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2b55825

Please sign in to comment.