mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
fix replication of vertices on bam loading
This commit is contained in:
parent
656bc2105f
commit
b53fd1a9db
@ -1500,7 +1500,9 @@ finalize(BamReader *manager) {
|
|||||||
// in the data getting finalized multiple times, but it doesn't mind
|
// in the data getting finalized multiple times, but it doesn't mind
|
||||||
// that.
|
// that.
|
||||||
if (!cdata->_data.is_null()) {
|
if (!cdata->_data.is_null()) {
|
||||||
cdata->_data.get_write_pointer()->finalize(manager);
|
// We shouldn't call get_write_pointer(), which might replicate
|
||||||
|
// the GeomVertexData unnecessarily.
|
||||||
|
cdata->_data.get_unsafe_pointer()->finalize(manager);
|
||||||
}
|
}
|
||||||
|
|
||||||
reset_geom_rendering(cdata);
|
reset_geom_rendering(cdata);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user