~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/blender/blenkernel/intern/exotic.c

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2007-05-17 11:47:59 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20070517114759-yp4ybrnhp2u7pk66
Tags: 2.44-1
* New upstream release.
* Drop debian/patches/01_64bits_stupidity, not needed anymore: as of this
  version blender is 64 bits safe again. Adjust README.Debian accordingly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*  exotic.c   
2
 
 * 
3
 
 *  $Id: exotic.c,v 1.62 2007/02/07 10:56:44 blendix Exp $
4
2
 *
5
3
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
6
4
 *
2252
2250
        /* irst this: is still active */
2253
2251
        if(ivsurf) {
2254
2252
                where_is_object(ivsurf);
2255
 
                docentre_new();
 
2253
                docenter_new();
2256
2254
        }
2257
2255
 
2258
2256
        dl= lbase->first;
2446
2444
/* ************************ WRITE ************************** */
2447
2445
 
2448
2446
 
2449
 
char videosc_dir[160]= {0, 0};
 
2447
char temp_dir[160]= {0, 0};
2450
2448
 
2451
2449
static void write_vert_stl(Object *ob, MVert *verts, int index, FILE *fpSTL)
2452
2450
{
2528
2526
                if (!during_script()) error("Can't write file");
2529
2527
                return;
2530
2528
        }
2531
 
        strcpy(videosc_dir, str);
 
2529
        strcpy(temp_dir, str);
2532
2530
        
2533
2531
        waitcursor(1);
2534
2532
        
2694
2692
        close(file);
2695
2693
        if(file>-1) if(!during_script() && saveover(str)==0) return;
2696
2694
 
2697
 
        strcpy(videosc_dir, str);
 
2695
        strcpy(temp_dir, str);
2698
2696
 
2699
2697
        base= G.scene->base.first;
2700
2698
        while(base) {
3016
3014
                error("Can't write file");
3017
3015
                return;
3018
3016
        }
3019
 
        strcpy(videosc_dir, str);
 
3017
        strcpy(temp_dir, str);
3020
3018
 
3021
3019
        waitcursor(1);
3022
3020
        
3324
3322
                error("Can't write file");
3325
3323
                return;
3326
3324
        }
3327
 
        strcpy(videosc_dir, str);
 
3325
        strcpy(temp_dir, str);
3328
3326
        
3329
3327
        waitcursor(1);
3330
3328
        
3626
3624
        } 
3627
3625
        else {
3628
3626
                *o = NULL;
3629
 
                *m = add_mesh(); G.totmesh++;
 
3627
                *m = add_mesh("Mesh"); G.totmesh++;
3630
3628
 
3631
3629
                me = *m;
3632
3630
                ob = *o;
3946
3944
        x = a * sin(phi);
3947
3945
        y = b * cos(phi);       
3948
3946
 
3949
 
#ifndef DEBUG_CENTRE
 
3947
#ifndef DEBUG_CENTER
3950
3948
        epoint[0] = center[0] + x*cos(theta) - y*sin(theta);
3951
3949
        epoint[1] = center[1] + x*sin(theta) + y*cos(theta);
3952
3950
        epoint[2] = center[2];