mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-16 23:42:27 +00:00
Merge branch 'codex/fbx-parent-policy' into codex/fbx-integration
This commit is contained in:
commit
afea2ec3c5
1 file changed
+4
-4
@@ -1411,10 +1411,10 @@ impl<'a> Build<'a, '_> {
|
||||
("LayerElementMaterial", &["Materials"][..]),
|
||||
("LayerElementColor", &["Colors", "ColorIndex"][..]),
|
||||
] {
|
||||
if let Some(layer) = geom.children_named(element).min_by_key(|e| e.props.first().and_then(Prop::as_i64) != Some(0)) {
|
||||
if names.iter().filter_map(|n| layer.child(n)).any(|r| !valid(r, false)) {
|
||||
return Err(malformed(KIND, "mesh array contains a non-numeric or non-finite value"));
|
||||
}
|
||||
if let Some(layer) = geom.children_named(element).min_by_key(|e| e.props.first().and_then(Prop::as_i64) != Some(0))
|
||||
&& names.iter().filter_map(|n| layer.child(n)).any(|r| !valid(r, false))
|
||||
{
|
||||
return Err(malformed(KIND, "mesh array contains a non-numeric or non-finite value"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user