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

« back to all changes in this revision

Viewing changes to source/blender/src/editkey.c

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2005-11-06 12:40:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051106124003-3pgs7tcg5rox96xg
Tags: 2.37a-1.1
* Non-maintainer upload.
* Split out parts of 01_SConstruct_debian.dpatch again: root_build_dir
  really needs to get adjusted before the clean target runs - closes: #333958,
  see #288882 for reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
 
 * $Id: editkey.c,v 1.12 2004/04/20 18:27:09 ton Exp $
 
2
 * $Id: editkey.c,v 1.21 2005/03/19 21:08:12 zuster Exp $
3
3
 *
4
4
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
5
5
 *
40
40
#include <unistd.h>
41
41
#else
42
42
#include <io.h>
43
 
#include "BLI_winstuff.h"
44
43
#endif   
45
44
#include "MEM_guardedalloc.h"
46
45
 
86
85
 
87
86
#include "blendef.h"
88
87
#include "mydevice.h"
89
 
#include "ipo.h"
90
88
 
91
89
extern ListBase editNurb; /* in editcurve.c */
92
90
 
 
91
 
 
92
/* local prototypes ------------------ */
 
93
void make_rvk_slider(uiBlock *, Key *, int , int , int , int , int );  /* used in drawaction.c too */
 
94
 
93
95
/* temporary storage for slider values */
94
 
float meshslidervals[32] = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
 
96
float meshslidervals[64] = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
 
97
                            0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
 
98
                            0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
 
99
                            0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
 
100
                                                        0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
95
101
                            0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
96
102
                            0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
97
103
                            0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0};
255
261
        static int keynums[] = {0,1,2,3,4,5,6,7,
256
262
                                                        8,9,10,11,12,13,14,15,
257
263
                                                        16,17,18,19,20,21,22,23,
258
 
                                                        24,25,26,27,28,29,30,31};
 
264
                                                        24,25,26,27,28,29,30,31,
 
265
                                                        32,33,34,35,36,37,38,39,
 
266
                                                        40,41,42,43,44,45,46,47,
 
267
                                                        48,49,50,51,52,53,54,55,
 
268
                                                        56,57,58,59,60,61,62,63};
259
269
 
260
270
        meshslidervals[keynum] = getrvkval(key, keynum);
261
271
 
370
380
 
371
381
                if (!offline) /* interactive */
372
382
                        rel = pupmenu("Insert Vertex Keys %t|"
373
 
                                                                                "Relative keys %x1|Absolute keys %x2");
 
383
                                                                                "Relative Keys %x1|Absolute Keys %x2");
374
384
                else /* we were called from a script */
375
385
                        rel = offline;
376
386
 
525
535
                                fp+= 3;
526
536
                                VECCOPY(fp, bezt->vec[2]);
527
537
                                fp+= 3;
 
538
                                fp[0]= bezt->alfa;
528
539
                                fp+= 3; /* alphas */
529
540
                                bezt++;
530
541
                        }
571
582
                                fp+= 3;
572
583
                                VECCOPY(bezt->vec[2], fp);
573
584
                                fp+= 3;
 
585
                                bezt->alfa= fp[0];
574
586
                                fp+= 3; /* alphas */
575
 
                                
 
587
                        
576
588
                                tot-= 3;
577
589
                                bezt++;
578
590
                        }
829
841
                        xo= mval[0];
830
842
                        yo= mval[1];
831
843
                                
832
 
                        force_draw();
 
844
                        force_draw(0);
833
845
                }
834
846
                else BIF_wait_for_statechange();
835
847