mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
parent
ecb2b6f546
commit
3417b9df09
@ -677,7 +677,15 @@ transform(const LMatrix4d &mat) {
|
||||
typedef pvector<EggVertex *> Verts;
|
||||
Verts verts;
|
||||
verts.reserve(size());
|
||||
|
||||
// Work around MSVC 2017 compiler bug, see GitHub issue #379
|
||||
#ifdef _MSC_VER
|
||||
for (const IndexVertices::value_type &v : _index_vertices) {
|
||||
verts.push_back(v.second);
|
||||
}
|
||||
#else
|
||||
std::copy(begin(), end(), std::back_inserter(verts));
|
||||
#endif
|
||||
|
||||
Verts::const_iterator vi;
|
||||
for (vi = verts.begin(); vi != verts.end(); ++vi) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user