diff options
author | Johnny Matthews <johnny.matthews@gmail.com> | 2005-10-29 17:26:31 +0400 |
---|---|---|
committer | Johnny Matthews <johnny.matthews@gmail.com> | 2005-10-29 17:26:31 +0400 |
commit | 1d366b3fe9b81d468e55512f3ea5cd362d754098 (patch) | |
tree | b4c35fb6ed55f58a8df6c90a67ca05638469223e /intern | |
parent | 607777d9495d73cd5eb3d2fecbe67a310d285e91 (diff) |
Scons files for Boolop
also a fix in BOP_Material so that MSVC won't complain about template issues
Diffstat (limited to 'intern')
-rw-r--r-- | intern/SConscript | 1 | ||||
-rw-r--r-- | intern/boolop/SConscript | 34 | ||||
-rw-r--r-- | intern/boolop/intern/BOP_Material.cpp | 2 | ||||
-rw-r--r-- | intern/boolop/intern/BOP_Material.h | 2 |
4 files changed, 37 insertions, 2 deletions
diff --git a/intern/SConscript b/intern/SConscript index a9f8196e23e..ec6a61f6c71 100644 --- a/intern/SConscript +++ b/intern/SConscript @@ -9,6 +9,7 @@ SConscript(['SoundSystem/SConscript', 'memutil/SConscript/', 'decimation/SConscript', 'iksolver/SConscript', + 'boolop/SConscript', 'elbeem/SConscript', 'opennl/SConscript']) 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; }; |