question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Certain non-empty groups are discarded

See original GitHub issue

In 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:

1

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:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
drcmdacommented, Sep 23, 2021

it’s in sorry for the wait

1reaction
drcmdacommented, Aug 5, 2021

I’ll implement that

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found