diff --git a/UnitySDK/Assets/TiltBrush/Scripts/Gltf/ImportGltf.cs b/UnitySDK/Assets/TiltBrush/Scripts/Gltf/ImportGltf.cs index 6e99bde0..fb02e6dc 100644 --- a/UnitySDK/Assets/TiltBrush/Scripts/Gltf/ImportGltf.cs +++ b/UnitySDK/Assets/TiltBrush/Scripts/Gltf/ImportGltf.cs @@ -430,7 +430,13 @@ static IEnumerable CreateGameObjectsFromNode( ImportState state, Transform parent, GltfNodeBase node, GltfImportResult result, GltfMaterialConverter matConverter, Vector3 translationToApply) { if (node.Mesh == null && !node.Children.Any()) { - yield break; + if (node.name != null && node.name.StartsWith("empty_")) { + // explicitly-empty nodes are used to mark things like non-exportable models + /* fall through */ + } else { + // Other empty nodes can creep in, like the SceneLight_ nodes. Don't want those. + yield break; + } } GameObject obj = new GameObject(node.name);