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
|
||||
}
|
||||
|
||||
if (cdata->_primitive_type == PT_polygons ||
|
||||
cdata->_primitive_type == PT_patches) {
|
||||
cdata->_primitive_type = PT_lines;
|
||||
}
|
||||
|
||||
cdata->_modified = Geom::get_next_modified();
|
||||
reset_geom_rendering(cdata);
|
||||
clear_cache_stage(current_thread);
|
||||
|
|
@ -842,6 +847,10 @@ make_points_in_place() {
|
|||
#endif
|
||||
}
|
||||
|
||||
if (cdata->_primitive_type != PT_none) {
|
||||
cdata->_primitive_type = PT_points;
|
||||
}
|
||||
|
||||
cdata->_modified = Geom::get_next_modified();
|
||||
reset_geom_rendering(cdata);
|
||||
clear_cache_stage(current_thread);
|
||||
|
|
@ -879,6 +888,10 @@ make_patches_in_place() {
|
|||
#endif
|
||||
}
|
||||
|
||||
if (cdata->_primitive_type != PT_none) {
|
||||
cdata->_primitive_type = PT_patches;
|
||||
}
|
||||
|
||||
cdata->_modified = Geom::get_next_modified();
|
||||
reset_geom_rendering(cdata);
|
||||
clear_cache_stage(current_thread);
|
||||
|
|
|
|||
Loading…
Reference in New Issue