Example builds now

Seg faults on running though
This commit is contained in:
Matt Williams
2009-03-30 13:09:23 +00:00
parent 1fb999966f
commit a4a8362dba
3 changed files with 4 additions and 7 deletions

View File

@ -6,9 +6,9 @@ if(SWIG_FOUND)
include_directories(${PYTHON_INCLUDE_PATH})
set(CMAKE_SWIG_FLAGS "")
set_source_files_properties(bindings/PolyVoxCore.i PROPERTIES CPLUSPLUS ON)
set_source_files_properties(PolyVoxCore.i PROPERTIES CPLUSPLUS ON)
swig_add_module(PolyVoxCore python bindings/PolyVoxCore.i)
swig_add_module(PolyVoxCore python PolyVoxCore.i)
swig_link_libraries(PolyVoxCore ${PYTHON_LIBRARIES} PolyVoxCore)
set_target_properties(${SWIG_MODULE_PolyVoxCore_REAL_NAME} PROPERTIES SUFFIX ".pyd")
endif()

View File

@ -169,7 +169,7 @@ namespace PolyVox
bool equal = true;
for(uint32 ct = 0; ct < Size; ++ct)
{
if(m_tElements[ct] != rhs(ct))
if(m_tElements[ct] != rhs.getElement(ct))
{
equal = false;
break;