Skip to content

Commit 4fae819

Browse files
committed
Fix regression (since 6f8b379) causing crash in flattening edge case
1 parent e3d8123 commit 4fae819

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

panda/src/gobj/geom.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,7 @@ unify_in_place(int max_indices, bool preserve_order) {
683683
int num_vertices = copy_primitives * total_vertices_per_primitive;
684684
nassertv(num_vertices > 0);
685685
{
686+
smaller->set_index_type(reader.get_index_type());
686687
GeomVertexArrayDataHandle writer(smaller->modify_vertices(), current_thread);
687688
writer.unclean_set_num_rows(num_vertices);
688689
memcpy(writer.get_write_pointer(), ptr, stride * (size_t)(num_vertices - num_unused_vertices_per_primitive));

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy