forked from bartvdbraak/blender
compile without python works again
This commit is contained in:
parent
224c26f891
commit
29575c9ac8
@ -2569,10 +2569,12 @@ static uiBut *ui_def_but(uiBlock *block, int type, int retval, const char *str,
|
||||
if(block->curlayout)
|
||||
ui_layout_add_but(block->curlayout, but);
|
||||
|
||||
#ifdef WITH_PYTHON
|
||||
/* if the 'UI_OT_editsource' is running, extract the source info from the button */
|
||||
if (UI_editsource_enable_check()) {
|
||||
UI_editsource_active_but_test(but);
|
||||
}
|
||||
#endif
|
||||
|
||||
return but;
|
||||
}
|
||||
|
@ -476,6 +476,7 @@ static void UI_OT_reports_to_textblock(wmOperatorType *ot)
|
||||
ot->exec= reports_to_text_exec;
|
||||
}
|
||||
|
||||
#ifdef WITH_PYTHON
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
/* EditSource Utility funcs and operator,
|
||||
@ -711,6 +712,7 @@ static void UI_OT_editsource(wmOperatorType *ot)
|
||||
ot->exec= editsource_exec;
|
||||
}
|
||||
|
||||
#endif /* WITH_PYTHON */
|
||||
|
||||
/* ********************************************************* */
|
||||
/* Registration */
|
||||
@ -723,6 +725,9 @@ void UI_buttons_operatortypes(void)
|
||||
WM_operatortype_append(UI_OT_reset_default_button);
|
||||
WM_operatortype_append(UI_OT_copy_to_selected_button);
|
||||
WM_operatortype_append(UI_OT_reports_to_textblock); // XXX: temp?
|
||||
|
||||
#ifdef WITH_PYTHON
|
||||
WM_operatortype_append(UI_OT_editsource);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -268,9 +268,6 @@ static void rna_Curve_active_textbox_index_range(PointerRNA *ptr, int *min, int
|
||||
static void rna_Curve_dimension_set(PointerRNA *ptr, int value)
|
||||
{
|
||||
Curve *cu= (Curve*)ptr->id.data;
|
||||
ListBase *nurbs= BKE_curve_nurbs(cu);
|
||||
Nurb *nu= nurbs->first;
|
||||
|
||||
if(value==CU_3D) cu->flag |= CU_3D;
|
||||
else cu->flag &= ~CU_3D;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user