Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ldraw/src/color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ pub enum Material {
Rubber,
MatteMetallic,
Metal,
Fabric,
Custom(CustomizedMaterial),
}
Comment thread
bkfunk marked this conversation as resolved.

Expand Down
3 changes: 3 additions & 0 deletions ldraw/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,9 @@ pub async fn parse_color_definitions<T: AsyncBufRead + Unpin>(
"MATTE_METALLIC" => {
material = Material::MatteMetallic;
}
"FABRIC" => {
material = Material::Fabric;
}
"MATERIAL" => {
material = Material::Custom(parse_customized_material(&mut it)?);
}
Comment thread
bkfunk marked this conversation as resolved.
Expand Down
Loading