[Bf-blender-cvs] [2d80f37bcec] blender2.8: Depsgraph: Remove old depsgraph header from python

Sergey Sharybin noreply at git.blender.org
Thu Apr 6 16:50:34 CEST 2017


Commit: 2d80f37bcec79621ef8f3a0c6dbf1bd7882e32b6
Author: Sergey Sharybin
Date:   Thu Apr 6 16:36:15 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB2d80f37bcec79621ef8f3a0c6dbf1bd7882e32b6

Depsgraph: Remove old depsgraph header from python

===================================================================

M	source/blender/python/bmesh/CMakeLists.txt
M	source/blender/python/bmesh/bmesh_py_types.c

===================================================================

diff --git a/source/blender/python/bmesh/CMakeLists.txt b/source/blender/python/bmesh/CMakeLists.txt
index c7b86acc8f9..4d3230fa3e9 100644
--- a/source/blender/python/bmesh/CMakeLists.txt
+++ b/source/blender/python/bmesh/CMakeLists.txt
@@ -23,6 +23,7 @@ set(INC
 	../../bmesh
 	../../blenkernel
 	../../blenlib
+	../../depsgraph
 	../../makesdna
 	../../../../intern/guardedalloc
 )
diff --git a/source/blender/python/bmesh/bmesh_py_types.c b/source/blender/python/bmesh/bmesh_py_types.c
index b20c03bee28..4709f718958 100644
--- a/source/blender/python/bmesh/bmesh_py_types.c
+++ b/source/blender/python/bmesh/bmesh_py_types.c
@@ -34,10 +34,11 @@
 #include "DNA_object_types.h"
 #include "DNA_material_types.h"
 
-#include "BKE_depsgraph.h"
 #include "BKE_customdata.h"
 #include "BKE_DerivedMesh.h"
 
+#include "DEG_depsgraph.h"
+
 #include "bmesh.h"
 
 #include <Python.h>
@@ -920,7 +921,7 @@ static PyObject *bpy_bmesh_to_mesh(BPy_BMesh *self, PyObject *args)
 
 	/* we could have the user do this but if they forget blender can easy crash
 	 * since the references arrays for the objects derived meshes are now invalid */
-	DAG_id_tag_update(&me->id, OB_RECALC_DATA);
+	DEG_id_tag_update(&me->id, OB_RECALC_DATA);
 
 	Py_RETURN_NONE;
 }




More information about the Bf-blender-cvs mailing list