mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
gobj: make_lines_in_place() (& points, patches) should change primitive type
This commit is contained in:
parent
c1babd1ad1
commit
2ed61c91fc
@ -805,6 +805,11 @@ make_lines_in_place() {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cdata->_primitive_type == PT_polygons ||
|
||||||
|
cdata->_primitive_type == PT_patches) {
|
||||||
|
cdata->_primitive_type = PT_lines;
|
||||||
|
}
|
||||||
|
|
||||||
cdata->_modified = Geom::get_next_modified();
|
cdata->_modified = Geom::get_next_modified();
|
||||||
reset_geom_rendering(cdata);
|
reset_geom_rendering(cdata);
|
||||||
clear_cache_stage(current_thread);
|
clear_cache_stage(current_thread);
|
||||||
@ -842,6 +847,10 @@ make_points_in_place() {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cdata->_primitive_type != PT_none) {
|
||||||
|
cdata->_primitive_type = PT_points;
|
||||||
|
}
|
||||||
|
|
||||||
cdata->_modified = Geom::get_next_modified();
|
cdata->_modified = Geom::get_next_modified();
|
||||||
reset_geom_rendering(cdata);
|
reset_geom_rendering(cdata);
|
||||||
clear_cache_stage(current_thread);
|
clear_cache_stage(current_thread);
|
||||||
@ -879,6 +888,10 @@ make_patches_in_place() {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cdata->_primitive_type != PT_none) {
|
||||||
|
cdata->_primitive_type = PT_patches;
|
||||||
|
}
|
||||||
|
|
||||||
cdata->_modified = Geom::get_next_modified();
|
cdata->_modified = Geom::get_next_modified();
|
||||||
reset_geom_rendering(cdata);
|
reset_geom_rendering(cdata);
|
||||||
clear_cache_stage(current_thread);
|
clear_cache_stage(current_thread);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user