Update building_asset.rs

This commit is contained in:
2024-11-26 09:30:24 -05:00
parent 358b88e7fe
commit 9800d1fd74

View File

@@ -111,7 +111,7 @@ impl BuildingAsset {
fn get_component_def(&self, path: &String) -> Option<&ComponentDefination> {
if let Some(components) = &self.components {
for c in components {
if c.path.eq(path) {
if c.path.ends_with(path) {
return Some(c);
}
}