Example builds now
Seg faults on running though
This commit is contained in:
@ -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()
|
@ -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;
|
||||
|
Reference in New Issue
Block a user