~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-07-23 08:54:18 UTC
  • mfrom: (14.2.16 sid)
  • mto: (14.2.19 sid)
  • mto: This revision was merged to the branch mainline in revision 42.
  • Revision ID: package-import@ubuntu.com-20120723085418-9foz30v6afaf5ffs
Tags: 2.63a-2
* debian/: Cycles support added (Closes: #658075)
  For now, this top feature has been enabled only
  on [any-amd64 any-i386] architectures because
  of OpenImageIO failing on all others
* debian/: scripts installation path changed
  from /usr/lib to /usr/share:
  + debian/patches/: patchset re-worked for path changing
  + debian/control: "Breaks" field added on yafaray-exporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**
2
 
 * $Id: BL_ArmatureConstraint.cpp 28254 2010-04-18 10:28:37Z campbellbarton $
 
1
/*
3
2
 * ***** BEGIN GPL LICENSE BLOCK *****
4
3
 *
5
4
 * This program is free software; you can redistribute it and/or
26
25
 * ***** END GPL LICENSE BLOCK *****
27
26
 */
28
27
 
 
28
/** \file gameengine/Converter/BL_ArmatureConstraint.cpp
 
29
 *  \ingroup bgeconv
 
30
 */
 
31
 
 
32
 
29
33
#include "DNA_constraint_types.h"
30
34
#include "DNA_action_types.h"
31
35
#include "BL_ArmatureConstraint.h"
33
37
#include "BLI_math.h"
34
38
#include "BLI_string.h"
35
39
 
36
 
#ifndef DISABLE_PYTHON
 
40
#ifdef WITH_PYTHON
37
41
 
38
42
PyTypeObject BL_ArmatureConstraint::Type = {
39
43
        PyVarObject_HEAD_INIT(NULL, 0)
62
66
        return PyUnicode_FromString(m_name);
63
67
}
64
68
 
65
 
#endif // DISABLE_PYTHON
 
69
#endif // WITH_PYTHON
66
70
 
67
71
BL_ArmatureConstraint::BL_ArmatureConstraint(
68
72
        BL_ArmatureObject *armature, 
142
146
        }
143
147
}
144
148
 
145
 
void BL_ArmatureConstraint::Relink(GEN_Map<GEN_HashedPtr, void*> *obj_map)
 
149
void BL_ArmatureConstraint::Relink(CTR_Map<CTR_HashedPtr, void*> *obj_map)
146
150
{
147
151
        void **h_obj = (*obj_map)[m_target];
148
152
        if (h_obj) {
237
241
 
238
242
}
239
243
 
240
 
#ifndef DISABLE_PYTHON
 
244
#ifdef WITH_PYTHON
241
245
 
242
246
// PYTHON
243
247
 
447
451
        return PY_SET_ATTR_FAIL;
448
452
}
449
453
 
450
 
#endif // DISABLE_PYTHON
 
454
#endif // WITH_PYTHON