mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-15 13:16:01 +08:00
Bugfix: rare crash when loading 3D preview. #3636
This commit is contained in:
parent
cb72afc10e
commit
73763a8417
@ -8,6 +8,8 @@ _3DScene::_extrusionentity_to_verts_do(const Lines &lines, const std::vector<dou
|
||||
const std::vector<double> &heights, bool closed, double top_z, const Point ©,
|
||||
GLVertexArray* qverts, GLVertexArray* tverts)
|
||||
{
|
||||
if (lines.empty()) return;
|
||||
|
||||
/* It looks like it's faster without reserving capacity...
|
||||
// each segment has 4 quads, thus 16 vertices; + 2 caps
|
||||
qverts->reserve_more(3 * 4 * (4 * lines.size() + 2));
|
||||
|
Loading…
x
Reference in New Issue
Block a user