~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to source/gameengine/Converter/BL_ArmatureObject.cpp

  • Committer: Reinhard Tartler
  • Date: 2014-05-31 01:50:05 UTC
  • mfrom: (14.2.27 sid)
  • Revision ID: siretart@tauware.de-20140531015005-ml6druahuj82nsav
mergeĀ fromĀ debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
#include "BIK_api.h"
43
43
#include "BKE_action.h"
44
44
#include "BKE_armature.h"
 
45
#include "BKE_library.h"
45
46
 
46
47
#include "BKE_constraint.h"
47
48
#include "CTR_Map.h"
115
116
                        // BKE_copy_constraints NULLs listb, no need to make extern for this operation.
116
117
                        BKE_copy_constraints(&listb, &pchan->constraints, FALSE);
117
118
                        pchan->constraints= listb;
118
 
                } else {
119
 
                        pchan->constraints.first = NULL;
120
 
                        pchan->constraints.last = NULL;
 
119
                }
 
120
                else {
 
121
                        BLI_listbase_clear(&pchan->constraints);
 
122
                }
 
123
 
 
124
                if (pchan->custom) {
 
125
                        id_us_plus(&pchan->custom->id);
121
126
                }
122
127
 
123
128
                // fails to link, props are not used in the BGE yet.