moved LARGEFILE defines to BLI_storage.h
authorCampbell Barton <ideasman42@gmail.com>
Mon, 18 Feb 2008 17:20:04 +0000 (17:20 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 18 Feb 2008 17:20:04 +0000 (17:20 +0000)
source/blender/blenlib/intern/BLI_storage.h
source/blender/blenlib/intern/storage.c
source/blender/src/buttons_object.c

index 5e9c377c410caaea670e71efbd7662cb58663ca4..9cbdfa327cd6e7393f0632adc9c7319caa33a0a4 100644 (file)
 #ifndef BLI_STORAGE_H
 #define BLI_STORAGE_H
 
+#ifndef WIN32
+#define _LARGEFILE_SOURCE 1
+#define _FILE_OFFSET_BITS 64
+#endif
+
 #include "BLI_storage_types.h"
 
 void   BLI_adddirstrings(void);
index 6ab44440feb1d2ad1209bb8919ad5f4266e6e38c..9d70d85939e70ce052cd02346070e3e4b5090502 100644 (file)
  * Some really low-level file thingies.
  */
 
-#ifndef WIN32
-#define _LARGEFILE_SOURCE 1
-#define _FILE_OFFSET_BITS 64
-#endif
-
 #include <sys/types.h>
 #include <stdio.h>
 #include <stdlib.h>    
index 5952dea3a2b244883ba68c16eebceaecbecc4598..2adf3209b5b15e4e0bf71f9254e5d72f7cdc350b 100644 (file)
@@ -3412,7 +3412,7 @@ static void object_panel_fields(Object *ob)
                                uiDefButF(block, NUM, B_FIELD_CHANGE, "MaxDist: ",      50,80,100,20, &pd->maxdist, 0, 1000.0, 10, 0, "Maximum distance for the field to work");
                        }
                        else {
-                               uiDefButF(block, NUM, B_FIELD_CHANGE, "Strength: ",     10,140,140,20, &pd->f_strength, -1000, 1000, 10, 0, "Strength of force field");
+                               uiDefButF(block, NUM, B_FIELD_CHANGE, "Strength: ",     10,140,140,20, &pd->f_strength, -1000, 1000, 10, 3, "Strength of force field");
                                
                                if(pd->forcefield == PFIELD_TEXTURE){
                                        uiDefIDPoinBut(block, field_testTexture, ID_TE, B_FIELD_CHANGE, "Texture: ", 10, 120, 140, 20, &pd->tex, "Texture to use as force");