Merge branch 'master' into blender2.8
[blender.git] / source / blender / editors / lattice / editlattice_tools.c
index c39ba44c1dcb7201e4480b95e55be6f1df3afd31..bf60c1e7da605da7f089b378f28836eecb470618 100644 (file)
 #include "RNA_define.h"
 
 #include "BKE_context.h"
-#include "BKE_depsgraph.h"
 #include "BKE_lattice.h"
 
+#include "DEG_depsgraph.h"
+
 #include "ED_screen.h"
 
 #include "WM_api.h"
@@ -80,7 +81,7 @@ static int make_regular_exec(bContext *C, wmOperator *UNUSED(op))
                BKE_lattice_resize(lt, lt->pntsu, lt->pntsv, lt->pntsw, NULL);
        }
 
-       DAG_id_tag_update(&ob->id, OB_RECALC_DATA);
+       DEG_id_tag_update(&ob->id, OB_RECALC_DATA);
        WM_event_add_notifier(C, NC_GEOM | ND_DATA, ob->data);
 
        return OPERATOR_FINISHED;
@@ -306,7 +307,7 @@ static int lattice_flip_exec(bContext *C, wmOperator *op)
        }
 
        /* updates */
-       DAG_id_tag_update(&obedit->id, OB_RECALC_DATA);
+       DEG_id_tag_update(&obedit->id, OB_RECALC_DATA);
        WM_event_add_notifier(C, NC_GEOM | ND_DATA, obedit->data);
 
        return OPERATOR_FINISHED;