[BUG] Certain non-empty groups are discarded
See original GitHub issueIn the following model, certain non-empty groups are discarded. Pill1_V2.zip
If you open it up in GLTFViewer and check the console, you’ll see this structure:
However, if I run npx gltfjsx Pill_V2.glb
I get this structure:
<group rotation={[-Math.PI / 2, 0, 0]} scale={100}>
<group position={[0, 0, 0]}>
<mesh geometry={nodes.front.geometry} material={nodes.front.material} position={[0, 0, 0]} />
<mesh geometry={nodes.border.geometry} material={nodes.border.material} position={[0, 0, 0]} />
</group>
<mesh geometry={nodes.border_1.geometry} material={nodes.border_1.material} position={[0, 0, 0]} />
<mesh geometry={nodes.front_1.geometry} material={nodes.front_1.material} position={[0, 0, 0]} />
<mesh geometry={nodes.circle.geometry} material={materials.mat_pill_circle} position={[0, 0, 0]} />
<mesh geometry={nodes.front_2.geometry} material={nodes.front_2.material} position={[0, 0, 0]} />
<mesh geometry={nodes.border_2.geometry} material={nodes.border_2.material} position={[0, 0, 0]} />
</group>
The center
and start
groups have been discarded, although end
is preserved.
Examining the groups, the only difference I can see is that end
has position
equal to 1.49011608607807e-10, 0, 0]
, while center
and start
have position of [0,0,0]
.
If I run npx gltfjsx Pill_V2.glb -verbose
I get the correct structure:
<group name="Pill1" rotation={[-Math.PI / 2, 0, 0]} scale={100}>
<group name="end" position={[0, 0, 0]}>
<mesh name="front" geometry={nodes.front.geometry} material={nodes.front.material} position={[0, 0, 0]} />
<mesh
name="border"
geometry={nodes.border.geometry}
material={nodes.border.material}
position={[0, 0, 0]}
/>
</group>
<group name="center">
<mesh
name="border_1"
geometry={nodes.border_1.geometry}
material={nodes.border_1.material}
position={[0, 0, 0]}
/>
<mesh
name="front_1"
geometry={nodes.front_1.geometry}
material={nodes.front_1.material}
position={[0, 0, 0]}
/>
</group>
<group name="start">
<mesh
name="circle"
geometry={nodes.circle.geometry}
material={materials.mat_pill_circle}
position={[0, 0, 0]}
/>
<mesh
name="front_2"
geometry={nodes.front_2.geometry}
material={nodes.front_2.material}
position={[0, 0, 0]}
/>
<mesh
name="border_2"
geometry={nodes.border_2.geometry}
material={nodes.border_2.material}
position={[0, 0, 0]}
/>
</group>
</group>
However, according to the docs verbose is only supposed to affect empty groups:
--verbose, -v Verbose output w/ names and empty groups
(unrelated: shouldn’t the `position={[0,0,0]} be omitted as well?)
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Getting GroupNotEmptyException when trying to delete a ...
Error: Deletion of some consumer groups failed: * Group 'console-consumer-961' could not be deleted due to: java.util.concurrent.
Read more >Password Safe / Bugs / #1327 Empty Group Gets Deleted When I ...
The database can be saved with the empty Group, which is great. If I populate the Group with an entry and then immediately...
Read more >Allow deleting non-empty directory when c ... - GitHub
I can imagine one way to resolve this is to have a force flag in the rest api, like the -f in rm...
Read more >Bug descriptions — spotbugs 4.7.3 documentation
We strive to make this analysis accurate, although some groups may not care about some ... Empty finalize() methods are useless, so they...
Read more >Solved: JQL filter for "custom field is not EMPTY" returns...
If the field name is not visible in view, then it is genuinely empty, and yes, the bug you mention is the most...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
it’s in sorry for the wait
I’ll implement that