diff --git a/assets/tiled_class_property.tmx b/assets/tiled_class_property.tmx index 9a31472..000ff53 100644 --- a/assets/tiled_class_property.tmx +++ b/assets/tiled_class_property.tmx @@ -1,5 +1,5 @@ - + 0,0, @@ -11,7 +11,7 @@ - + diff --git a/src/properties.rs b/src/properties.rs index 6bb41c2..fb2b033 100644 --- a/src/properties.rs +++ b/src/properties.rs @@ -163,7 +163,7 @@ pub(crate) fn parse_properties( HashMap::new() }; p.insert(k, PropertyValue::ClassValue { - property_type: p_t.unwrap_or_else(|| "class".to_owned()), + property_type: p_t.unwrap_or_default(), properties, }); return Ok(());