mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
fix flat-shaded multicolored polys
This commit is contained in:
parent
6831a5ed7f
commit
57fece98d8
@ -176,6 +176,14 @@ build_graph() {
|
|||||||
_data->get_connected_shading();
|
_data->get_connected_shading();
|
||||||
_data->unify_attributes(true, true);
|
_data->unify_attributes(true, true);
|
||||||
|
|
||||||
|
// Now we need to get the connected shading again, since in unifying
|
||||||
|
// the attributes we may have made vertices suddenly become
|
||||||
|
// identical to each other, thereby connecting more primitives than
|
||||||
|
// before.
|
||||||
|
_data->clear_connected_shading();
|
||||||
|
_data->remove_unused_vertices(true);
|
||||||
|
_data->get_connected_shading();
|
||||||
|
|
||||||
// Sequences and switches have special needs. Make sure that
|
// Sequences and switches have special needs. Make sure that
|
||||||
// primitives parented directly to a sequence or switch are sorted
|
// primitives parented directly to a sequence or switch are sorted
|
||||||
// into sub-groups first, to prevent them being unified into a
|
// into sub-groups first, to prevent them being unified into a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user