rename and negate DISABLE_PYTHON --> WITH_PYTHON
This commit is contained in:
@@ -55,8 +55,8 @@ IF(WIN32)
|
||||
LIST(APPEND INC ${PTHREADS_INC})
|
||||
ENDIF(WIN32)
|
||||
|
||||
IF(NOT WITH_PYTHON)
|
||||
ADD_DEFINITIONS(-DDISABLE_PYTHON)
|
||||
ENDIF(NOT WITH_PYTHON)
|
||||
IF(WITH_PYTHON)
|
||||
ADD_DEFINITIONS(-DWITH_PYTHON)
|
||||
ENDIF(WITH_PYTHON)
|
||||
|
||||
BLENDERLIB(bf_editor_object "${SRC}" "${INC}")
|
||||
|
||||
@@ -17,7 +17,7 @@ if env['OURPLATFORM'] == 'linux2':
|
||||
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):
|
||||
incs += ' ' + env['BF_PTHREADS_INC']
|
||||
|
||||
if not env['WITH_BF_PYTHON']:
|
||||
defs.append('DISABLE_PYTHON')
|
||||
if env['WITH_BF_PYTHON']:
|
||||
defs.append('WITH_PYTHON')
|
||||
|
||||
env.BlenderLib ( 'bf_editors_object', sources, Split(incs), defs, libtype=['core'], priority=[35] )
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
#include "BKE_report.h"
|
||||
#include "BIK_api.h"
|
||||
|
||||
#ifndef DISABLE_PYTHON
|
||||
#ifdef WITH_PYTHON
|
||||
#include "BPY_extern.h"
|
||||
#endif
|
||||
|
||||
@@ -154,7 +154,7 @@ void validate_pyconstraint_cb (void *arg1, void *arg2)
|
||||
data->text = text;
|
||||
}
|
||||
|
||||
#ifndef DISABLE_PYTHON
|
||||
#ifdef WITH_PYTHON
|
||||
/* this returns a string for the list of usable pyconstraint script names */
|
||||
char *buildmenu_pyconstraints (Text *con_text, int *pyconindex)
|
||||
{
|
||||
@@ -195,12 +195,12 @@ char *buildmenu_pyconstraints (Text *con_text, int *pyconindex)
|
||||
|
||||
return str;
|
||||
}
|
||||
#endif /* DISABLE_PYTHON */
|
||||
#endif /* WITH_PYTHON */
|
||||
|
||||
/* this callback gets called when the 'refresh' button of a pyconstraint gets pressed */
|
||||
void update_pyconstraint_cb (void *arg1, void *arg2)
|
||||
{
|
||||
#ifdef DISABLE_PYTHON
|
||||
#ifndef WITH_PYTHON
|
||||
(void)arg1; /* unused */
|
||||
(void)arg2; /* unused */
|
||||
#else
|
||||
@@ -1297,7 +1297,7 @@ static int constraint_add_exec(bContext *C, wmOperator *op, Object *ob, ListBase
|
||||
|
||||
case CONSTRAINT_TYPE_PYTHON: // FIXME: this code is not really valid anymore
|
||||
{
|
||||
#ifndef DISABLE_PYTHON
|
||||
#ifdef WITH_PYTHON
|
||||
char *menustr;
|
||||
int scriptint= 0;
|
||||
/* popup a list of usable scripts */
|
||||
|
||||
Reference in New Issue
Block a user