forked from bartvdbraak/blender
* One more fix for Collada.
This commit is contained in:
parent
48cfe610db
commit
dad053a152
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user