rename and negate DISABLE_PYTHON --> WITH_PYTHON
[blender.git] / source / blender / editors / interface / interface.c
index f65b10eaaeae7a590c6bc8d7ac82d219003e07ab..eee4f1330432425e86a85d63381813560a29850d 100644 (file)
@@ -1645,7 +1645,7 @@ int ui_set_but_string(bContext *C, uiBut *but, const char *str)
                /* number editing */
                double value;
 
-#ifndef DISABLE_PYTHON
+#ifdef WITH_PYTHON
                {
                        char str_unit_convert[256];
                        int unit_type;
@@ -1672,7 +1672,7 @@ int ui_set_but_string(bContext *C, uiBut *but, const char *str)
                }
 #else
                value= atof(str);
-#endif
+#endif // WITH_PYTHON
 
                if(!ui_is_but_float(but)) value= (int)floor(value + 0.5);
                if(but->type==NUMABS) value= fabs(value);