diff options
author | Juha Mäki-Kanto <ih5235252@gmail.com> | 2012-02-18 20:55:41 +0400 |
---|---|---|
committer | Juha Mäki-Kanto <ih5235252@gmail.com> | 2012-02-18 20:55:41 +0400 |
commit | f75bf20c817d9e09b23513d007bc8cc69ff00d48 (patch) | |
tree | 7fc3a9ea0327a0ab22c9a65d3d77d2f8cf0e095d /source/blender/collada/SceneExporter.h | |
parent | 7beddb750610982ebccfd64d87759baa91e011a5 (diff) |
Fix rest of #27022, collada export: add bone parenting of objects
- SceneExporter collects a list of child-objects for armature-object and passes it onto ArmatureExporter
- SceneExporter's writeNodes is then called from ArmatureExporter for matching child-objects for bone.
- ArmatureExporter removes written child-objects from list, objects not exported as being bone parented are exported as direct children of the armature-node.
- Should play nice with current Second Life-compatibility.
A nicer implementation would require some design changes, will have to wait.
Diffstat (limited to 'source/blender/collada/SceneExporter.h')
-rw-r--r-- | source/blender/collada/SceneExporter.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/collada/SceneExporter.h b/source/blender/collada/SceneExporter.h index de01eb6e459..31b471a3e4c 100644 --- a/source/blender/collada/SceneExporter.h +++ b/source/blender/collada/SceneExporter.h @@ -97,6 +97,8 @@ public: void exportScene(Scene *sce); private: + // required for writeNodes() for bone-parented objects + friend class ArmatureExporter; void exportHierarchy(Scene *sce); void writeNodes(Object *ob, Scene *sce); |