Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Matthews <johnny.matthews@gmail.com>2005-10-29 17:26:31 +0400
committerJohnny Matthews <johnny.matthews@gmail.com>2005-10-29 17:26:31 +0400
commit1d366b3fe9b81d468e55512f3ea5cd362d754098 (patch)
treeb4c35fb6ed55f58a8df6c90a67ca05638469223e /intern/boolop
parent607777d9495d73cd5eb3d2fecbe67a310d285e91 (diff)
Scons files for Boolop
also a fix in BOP_Material so that MSVC won't complain about template issues
Diffstat (limited to 'intern/boolop')
-rw-r--r--intern/boolop/SConscript34
-rw-r--r--intern/boolop/intern/BOP_Material.cpp2
-rw-r--r--intern/boolop/intern/BOP_Material.h2
3 files changed, 36 insertions, 2 deletions
diff --git a/intern/boolop/SConscript b/intern/boolop/SConscript
new file mode 100644
index 00000000000..87ee4ea7198
--- /dev/null
+++ b/intern/boolop/SConscript
@@ -0,0 +1,34 @@
+#!/usr/bin/python
+Import ('user_options_dict')
+Import ('library_env')
+
+bop_env = library_env.Copy ()
+
+source_files = [
+ 'intern/BOP_BBox.cpp',
+ 'intern/BOP_BSPNode.cpp',
+ 'intern/BOP_BSPTree.cpp',
+ 'intern/BOP_Edge.cpp',
+ 'intern/BOP_Face.cpp',
+ 'intern/BOP_Face2Face.cpp',
+ 'intern/BOP_Interface.cpp',
+ 'intern/BOP_Material.cpp',
+ 'intern/BOP_MaterialContainer.cpp',
+ 'intern/BOP_MathUtils.cpp',
+ 'intern/BOP_Merge.cpp',
+ 'intern/BOP_Mesh.cpp',
+ 'intern/BOP_Segment.cpp',
+ 'intern/BOP_Splitter.cpp',
+ 'intern/BOP_Tag.cpp',
+ 'intern/BOP_Triangulator.cpp',
+ 'intern/BOP_Vertex.cpp'
+ ]
+
+bop_env.Append (CPPPATH = [ '.',
+ 'intern',
+ 'extern',
+ '#intern/moto/include',
+ '#intern/container',
+ '#intern/memutil'])
+
+bop_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_BOP', source=source_files)
diff --git a/intern/boolop/intern/BOP_Material.cpp b/intern/boolop/intern/BOP_Material.cpp
index 2d1e747eb49..96f24f11cdb 100644
--- a/intern/boolop/intern/BOP_Material.cpp
+++ b/intern/boolop/intern/BOP_Material.cpp
@@ -117,7 +117,7 @@ void BOP_Material::duplicate(const BOP_Material& other)
/**
* Implements operator =
*/
-BOP_Material& BOP_Material::operator = (BOP_Material& other)
+BOP_Material& BOP_Material::operator = (const BOP_Material& other)
{
if (other.getFaceWidth() == m_faceWidth && other.getFaceVertexWidth() == m_faceVertexWidth)
duplicate(other);
diff --git a/intern/boolop/intern/BOP_Material.h b/intern/boolop/intern/BOP_Material.h
index a057384bf01..079cc614410 100644
--- a/intern/boolop/intern/BOP_Material.h
+++ b/intern/boolop/intern/BOP_Material.h
@@ -55,7 +55,7 @@ public:
void setFaceVertexMaterial(char* faceVertexMaterial);
void setFaceVertexMaterial(char* faceVertexMaterial, int i);
void duplicate(const BOP_Material& other);
- BOP_Material& operator = (BOP_Material& other);
+ BOP_Material& operator = (const BOP_Material& other);
char* getFaceMaterial() const;
char* getFaceVertexMaterial(int i) const;
int getFaceWidth() const { return m_faceWidth; };