diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-01-26 14:16:28 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-01-26 14:16:31 +0300 |
commit | f71d8f6b4889a97f79c37e878145a51d43cd619e (patch) | |
tree | 1e6e264003173896efc489150e537a7e329d965e /source/blender/editors/io | |
parent | 0e2bc1a4ac01465b935511b9ad65d47186ade649 (diff) |
Fix Collada importer (crash)
We were not tagging depsgraph to update its nodes after importing new objects.
Diffstat (limited to 'source/blender/editors/io')
-rw-r--r-- | source/blender/editors/io/io_collada.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/io/io_collada.c b/source/blender/editors/io/io_collada.c index fc227a2aa75..1b7fd319da0 100644 --- a/source/blender/editors/io/io_collada.c +++ b/source/blender/editors/io/io_collada.c @@ -40,6 +40,8 @@ #include "BKE_main.h" #include "BKE_report.h" +#include "DEG_depsgraph.h" + #include "ED_screen.h" #include "ED_object.h" @@ -447,6 +449,7 @@ static int wm_collada_import_exec(bContext *C, wmOperator *op) min_chain_length, keep_bind_info) ) { + DEG_id_tag_update(&CTX_data_scene(C)->id, DEG_TAG_BASE_FLAGS_UPDATE); return OPERATOR_FINISHED; } else { |