[Bf-blender-cvs] [f71d8f6b488] blender2.8: Fix Collada importer (crash)
Dalai Felinto
noreply at git.blender.org
Fri Jan 26 12:17:13 CET 2018
Commit: f71d8f6b4889a97f79c37e878145a51d43cd619e
Author: Dalai Felinto
Date: Fri Jan 26 09:16:28 2018 -0200
Branches: blender2.8
https://developer.blender.org/rBf71d8f6b4889a97f79c37e878145a51d43cd619e
Fix Collada importer (crash)
We were not tagging depsgraph to update its nodes after importing new objects.
===================================================================
M source/blender/editors/io/io_collada.c
===================================================================
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 {
More information about the Bf-blender-cvs
mailing list