Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-11-25 14:05:11 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-11-25 14:05:11 +0300
commitb40307df1630e7bd51a181878bd61693b32dd817 (patch)
tree7c45568b31032a8bd2e7a709de9f77f0b2d21dc0 /source/blender/collada
parent50e3bb7f5f34516718c9d0cd36c0ff1677bf2e55 (diff)
add access to bone add/remove from rna. eg.
bone = arm.edit_bones.new("SomeBone") arm.edit_bones.remove(bone) regify (WIP)
Diffstat (limited to 'source/blender/collada')
-rw-r--r--source/blender/collada/DocumentImporter.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/collada/DocumentImporter.cpp b/source/blender/collada/DocumentImporter.cpp
index b844f74ff44..f50df355a82 100644
--- a/source/blender/collada/DocumentImporter.cpp
+++ b/source/blender/collada/DocumentImporter.cpp
@@ -94,9 +94,6 @@ extern "C"
char *CustomData_get_layer_name(const struct CustomData *data, int type, int n);
-// armature module internal func, it's not good to use it here? (Arystan)
-struct EditBone *addEditBone(struct bArmature *arm, char *name);
-
const char *primTypeToStr(COLLADAFW::MeshPrimitive::PrimitiveType type)
{
using namespace COLLADAFW;
@@ -592,7 +589,7 @@ private:
}
// TODO rename from Node "name" attrs later
- EditBone *bone = addEditBone(arm, (char*)get_joint_name(node));
+ EditBone *bone = ED_armature_edit_bone_add(arm, (char*)get_joint_name(node));
totbone++;
if (parent) bone->parent = parent;