~holger-seelig/titania/0.7.5

« back to all changes in this revision

Viewing changes to libtitania-x3d/Titania/X3D/Components/Geometry3D/Extrusion.cpp

  • Committer: Holger Seelig
  • Date: 2014-10-24 07:22:24 UTC
  • Revision ID: holger.seelig@yahoo.de-20141024072224-lur2kz2f6tm7li2u
Fixed fatal crash when importing nodes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
165
165
 
166
166
                if (beginCap ())
167
167
                {
168
 
                        for (const auto & point : std::make_pair (points .begin (), points .begin () + crossSection () .size ()))
 
168
                        for (const auto & point : basic::make_range (points .begin (), crossSection () .size ()))
169
169
                                points .emplace_back (point);
170
170
                }
171
171
 
172
172
                if (endCap ())
173
173
                {
174
 
                        for (const auto & point : std::make_pair (last, last + crossSection () .size ()))
 
174
                        for (const auto & point : basic::make_range (last, crossSection () .size ()))
175
175
                                points .emplace_back (point);
176
176
                }
177
177
        }