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

« back to all changes in this revision

Viewing changes to source/blender/src/poseobject.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: poseobject.c,v 1.3 2002/11/25 12:02:05 mein Exp $
 
2
 * $Id: poseobject.c,v 1.7 2005/03/19 21:08:12 zuster Exp $
3
3
 *
4
4
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
5
5
 *
35
35
#include <config.h>
36
36
#endif
37
37
 
38
 
#ifdef WIN32
39
 
#include "BLI_winstuff.h"
40
 
#endif
 
38
#include <stdlib.h>
41
39
 
42
40
#include "BLI_arithb.h"
43
41
#include "BLI_blenlib.h"
121
119
        case OB_ARMATURE:
122
120
                arm= get_armature(ob);
123
121
                if( arm==0 ) return;
 
122
                
124
123
                G.obpose= ob;
125
 
                /*              make_poseMesh();        */
 
124
                ob->flag |= OB_POSEMODE;
 
125
                base->flag= ob->flag;
 
126
                
 
127
                allqueue(REDRAWHEADERS, 0);     
 
128
                allqueue(REDRAWBUTSALL, 0);     
 
129
                allqueue(REDRAWOOPS, 0);
126
130
                allqueue(REDRAWVIEW3D, 0);
127
131
                break;
128
132
        default:
204
208
void exit_posemode (int freedata)
205
209
{
206
210
        Object *ob;
 
211
        Base *base= BASACT;
207
212
 
208
 
        if(G.obpose==0) return;
 
213
        if(G.obpose==NULL) return;
209
214
 
210
215
        ob= G.obpose;
 
216
        ob->flag &= ~OB_POSEMODE;
 
217
        base->flag= ob->flag;
211
218
        
212
 
        G.obpose= 0;
 
219
        G.obpose= NULL;
 
220
 
213
221
        makeDispList(ob);
214
222
        
215
223
        if(freedata) {
217
225
                
218
226
                countall();
219
227
                allqueue(REDRAWVIEW3D, 0);
 
228
                allqueue(REDRAWOOPS, 0);
 
229
                allqueue(REDRAWHEADERS, 0);     
 
230
                allqueue(REDRAWBUTSALL, 0);     
220
231
        }
221
232
        else {
222
233
                G.obpose= ob;