Closed GoogleCodeExporter closed 8 years ago
The following does not behave as expected:
1: BatchNode batchNode = new BatchNode();
2: batchNode.attachChild( geom );
3: batchNode.batch();
4: geom.removeFromParent();
Expected:
geom's mesh no longer appears on the screen because "removeFromParent" re-calls
"batch" on the batch node after removing itself.
Reality:
The mesh still appears on the screen because its batched version remains in
"children".
Commenting out line 3 results in the expected behavior.
Original comment by roja...@gmail.com
on 12 Feb 2012 at 8:14
This seems like a valid bug and it includes test code to show that it fails.
Although it was submitted in February so it could have been fixed at this point.
Original comment by ShadowIs...@gmail.com
on 1 Jun 2012 at 4:07
This should not occur with actual stable version.
@Kirill if you feel it's not going fast enough feel free to step in.
Original comment by remy.bou...@gmail.com
on 1 Jun 2012 at 6:26
Actually re-reading this issue, and this is expected behavior...
No Add or remove operation from the batch node won't be applied until the
batch() method is called again.
"Commenting out line 3 results in the expected behavior."
Absolutely not...because the batch is not batched...and it's not what one would
expect.
this however works fine:
1: BatchNode batchNode = new BatchNode();
2: batchNode.attachChild( geom );
3: batchNode.batch();
4: geom.removeFromParent();
5: batchNode.batch();
Original comment by remy.bou...@gmail.com
on 1 Jun 2012 at 5:23
When I wrote this, calling "removeFromParent" would call batch automatically.
Even if you called batch yourself afterwards, the removed geometry would still
show up, but that was fixed a couple months ago.
Original comment by roja...@gmail.com
on 1 Jun 2012 at 5:46
oh ok makes sense.
I'm gonna update the javadoc though, i read it again and the fact that you have
to batch again is not clearly mentioned.
Original comment by remy.bou...@gmail.com
on 1 Jun 2012 at 6:56
Original issue reported on code.google.com by
roja...@gmail.com
on 12 Feb 2012 at 8:06