Skip to content

Commit

Permalink
Assign default texture to new walls / floors
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Della Vedova <[email protected]>
  • Loading branch information
luca-della-vedova committed Jul 14, 2023
1 parent 4eba1f9 commit d956cfb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion rmf_site_format/src/floor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ impl<T: RefTrait> From<Path<T>> for Floor<T> {
fn from(path: Path<T>) -> Self {
Floor {
anchors: path,
texture: Default::default(),
texture: Texture {
source: AssetSource::Remote(
"OpenRobotics/RMF_Materials/textures/blue_linoleum.png".to_owned(),
),
..Default::default()
},
marker: Default::default(),
}
}
Expand Down
7 changes: 6 additions & 1 deletion rmf_site_format/src/wall.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ impl<T: RefTrait> From<Edge<T>> for Wall<T> {
fn from(anchors: Edge<T>) -> Self {
Self {
anchors,
texture: Default::default(),
texture: Texture {
source: AssetSource::Remote(
"OpenRobotics/RMF_Materials/textures/default.png".to_owned(),
),
..Default::default()
},
marker: Default::default(),
}
}
Expand Down

0 comments on commit d956cfb

Please sign in to comment.