Fix #24775: boolean modifier crash in rendering on Mac. Problem was that this

ran out of stack memory, now it passes some arguments by reference instead of
by value to use less stack space.
This commit is contained in:
Brecht Van Lommel 2010-11-26 03:26:57 +00:00
parent a7cce73fd0
commit 9a6fee750a
2 changed files with 3 additions and 3 deletions

@ -59,7 +59,7 @@ BOP_BSPNode::~BOP_BSPNode()
* @param plane face plane.
*/
unsigned int BOP_BSPNode::addFace(BOP_BSPPoints pts,
unsigned int BOP_BSPNode::addFace(const BOP_BSPPoints& pts,
const MT_Plane3& plane )
{
unsigned int newDeep = 0;

@ -33,7 +33,7 @@
#include "BOP_Face.h"
typedef vector<MT_Point3> BOP_BSPPoints;
typedef vector<MT_Point3>::iterator BOP_IT_BSPPoints;
typedef vector<MT_Point3>::const_iterator BOP_IT_BSPPoints;
class BOP_BSPNode
{
@ -47,7 +47,7 @@ public:
// Construction methods
BOP_BSPNode(const MT_Plane3& plane);
~BOP_BSPNode();
unsigned int addFace(BOP_BSPPoints pts,
unsigned int addFace(const BOP_BSPPoints& pts,
const MT_Plane3& plane);
BOP_TAG classifyFace(const MT_Point3& p1,
const MT_Point3& p2,