Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-12-19 22:11:02 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-12-19 22:11:02 +0300
commit3bda5490f7f50a795cd8b2c3d841c9375723aee9 (patch)
treecdcd6b5a08cc8566a0d3c8e8e1518fe990d5826f /source/blender/blenkernel/intern/exotic.c
parent12ad72ba8f4ab598c558428567707413e208eac7 (diff)
2.5: globals cleanup
* G.version removed, use BLENDER_VERSION * G.order removed, ENDIAN_ORDER * G.vd, G.sipo, G.buts, G.sima, .. removed. * G.qual removed * G.simulf removed (was unused in 2.4x) * error() and some other unused stubs removed
Diffstat (limited to 'source/blender/blenkernel/intern/exotic.c')
-rw-r--r--source/blender/blenkernel/intern/exotic.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/source/blender/blenkernel/intern/exotic.c b/source/blender/blenkernel/intern/exotic.c
index 28ed74aa9db..1570f735fc5 100644
--- a/source/blender/blenkernel/intern/exotic.c
+++ b/source/blender/blenkernel/intern/exotic.c
@@ -105,6 +105,7 @@
#include "BLI_arithb.h"
#include "BLI_editVert.h"
+#include "BKE_blender.h"
#include "BKE_global.h"
#include "BKE_main.h"
#include "BKE_mesh.h"
@@ -181,7 +182,7 @@ static int is_stl(char *str)
return; \
} \
else { \
- if (G.order==B_ENDIAN) { \
+ if (ENDIAN_ORDER==B_ENDIAN) { \
SWITCH_INT(mvert->co[0]); \
SWITCH_INT(mvert->co[1]); \
SWITCH_INT(mvert->co[2]); \
@@ -250,7 +251,7 @@ static void read_stl_mesh_binary(char *str)
fseek(fpSTL, 80, SEEK_SET);
fread(&numfacets, 4*sizeof(char), 1, fpSTL);
- if (G.order==B_ENDIAN) {
+ if (ENDIAN_ORDER==B_ENDIAN) {
SWITCH_INT(numfacets);
}
@@ -2459,7 +2460,7 @@ static void write_vert_stl(Object *ob, MVert *verts, int index, FILE *fpSTL)
VECCOPY(vert, verts[(index)].co);
Mat4MulVecfl(ob->obmat, vert);
- if (G.order==B_ENDIAN) {
+ if (ENDIAN_ORDER==B_ENDIAN) {
SWITCH_INT(vert[0]);
SWITCH_INT(vert[1]);
SWITCH_INT(vert[2]);
@@ -2564,7 +2565,7 @@ void write_stl(char *str)
*/
fseek(fpSTL, 80, SEEK_SET);
- if (G.order==B_ENDIAN) {
+ if (ENDIAN_ORDER==B_ENDIAN) {
SWITCH_INT(numfacets);
}
fwrite(&numfacets, 4*sizeof(char), 1, fpSTL);
@@ -2605,7 +2606,7 @@ static void write_videoscape_mesh(Object *ob, char *str)
cp[1]= (unsigned char) (255.0*ma->b);
cp[2]= (unsigned char) (255.0*ma->g);
cp[3]= (unsigned char) (255.0*ma->r);
- if(G.order==L_ENDIAN) SWITCH_INT(kleur[a]);
+ if(ENDIAN_ORDER==L_ENDIAN) SWITCH_INT(kleur[a]);
}
else kleur[a]= 0x00C0C0C0;
@@ -3026,7 +3027,7 @@ void write_vrml(char *str)
/* FIRST: write all the datablocks */
- fprintf(fp, "#VRML V1.0 ascii\n\n# Blender V%d\n\n# 'Switch' is used as a hack, to ensure it is not part of the drawing\n\n", G.version);
+ fprintf(fp, "#VRML V1.0 ascii\n\n# Blender V%d\n\n# 'Switch' is used as a hack, to ensure it is not part of the drawing\n\n", BLENDER_VERSION);
fprintf(fp, "Separator {\n");
fprintf(fp, "Switch {\n");