diff options
author | Thomas Dinges <blender@dingto.org> | 2013-02-05 17:16:21 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2013-02-05 17:16:21 +0400 |
commit | dad053a1524dd4e697a3db3651503edff710510c (patch) | |
tree | 46a28502d8ef4cd1f3fc758ee68024d6c895d2a9 /source/blender/collada/collada_utils.cpp | |
parent | 48cfe610db32778d5e1bb4451592236f13e3d5e7 (diff) |
* One more fix for Collada.
Diffstat (limited to 'source/blender/collada/collada_utils.cpp')
-rw-r--r-- | source/blender/collada/collada_utils.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/collada/collada_utils.cpp b/source/blender/collada/collada_utils.cpp index e000e603eae..58e6301a084 100644 --- a/source/blender/collada/collada_utils.cpp +++ b/source/blender/collada/collada_utils.cpp @@ -49,6 +49,7 @@ extern "C" { #include "BKE_customdata.h" #include "BKE_depsgraph.h" #include "BKE_object.h" +#include "BKE_global.h" #include "BKE_mesh.h" #include "BKE_scene.h" #include "BKE_DerivedMesh.h" @@ -124,7 +125,7 @@ int bc_set_parent(Object *ob, Object *par, bContext *C, bool is_parent_space) Object *bc_add_object(Scene *scene, int type, const char *name) { - Object *ob = BKE_object_add_only_object(type, name); + Object *ob = BKE_object_add_only_object(G.main, type, name); ob->data = BKE_object_obdata_add_from_type(type); ob->lay = scene->lay; |