Commit: 991bda6959305cea58b9ce6a31224eea1889a4c5
Author: Sergey Sharybin
Date:   Tue Jan 24 12:23:57 2017 +0100
Branches: blender2.8
https://developer.blender.org/rB991bda6959305cea58b9ce6a31224eea1889a4c5

Depsgraph: Remove legacy depsgraph code from transform

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

M       source/blender/editors/transform/CMakeLists.txt
M       source/blender/editors/transform/transform_conversions.c

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

diff --git a/source/blender/editors/transform/CMakeLists.txt 
b/source/blender/editors/transform/CMakeLists.txt
index b7de49d815..1a41d9ac95 100644
--- a/source/blender/editors/transform/CMakeLists.txt
+++ b/source/blender/editors/transform/CMakeLists.txt
@@ -58,10 +58,6 @@ if(WITH_INTERNATIONAL)
        add_definitions(-DWITH_INTERNATIONAL)
 endif()
 
-if(WITH_LEGACY_DEPSGRAPH)
-       add_definitions(-DWITH_LEGACY_DEPSGRAPH)
-endif()
-
 add_definitions(${GL_DEFINITIONS})
 
 blender_add_lib(bf_editor_transform "${SRC}" "${INC}" "${INC_SYS}")
diff --git a/source/blender/editors/transform/transform_conversions.c 
b/source/blender/editors/transform/transform_conversions.c
index ce3d903b8f..3e355deef3 100644
--- a/source/blender/editors/transform/transform_conversions.c
+++ b/source/blender/editors/transform/transform_conversions.c
@@ -828,7 +828,6 @@ static void pose_grab_with_ik_clear(Object *ob)
        bKinematicConstraint *data;
        bPoseChannel *pchan;
        bConstraint *con, *next;
-       bool need_dependency_update = false;
 
        for (pchan = ob->pose->chanbase.first; pchan; pchan = pchan->next) {
                /* clear all temporary lock flags */
@@ -843,7 +842,6 @@ static void pose_grab_with_ik_clear(Object *ob)
                                data = con->data;
                                if (data->flag & CONSTRAINT_IK_TEMP) {
                                        /* iTaSC needs clear for removed 
constraints */
-                                       need_dependency_update = true;
                                        BIK_clear_data(ob->pose);
 
                                        BLI_remlink(&pchan->constraints, con);
@@ -858,13 +856,8 @@ static void pose_grab_with_ik_clear(Object *ob)
                }
        }
 
-#ifdef WITH_LEGACY_DEPSGRAPH
-       if (!DEG_depsgraph_use_legacy() && need_dependency_update)
-#endif
-       {
-               /* TODO(sergey): Consider doing partial update only. */
-               DAG_relations_tag_update(G.main);
-       }
+       /* TODO(sergey): Consider doing partial update only. */
+       DAG_relations_tag_update(G.main);
 }
 
 /* adds the IK to pchan - returns if added */
@@ -1017,13 +1010,8 @@ static short pose_grab_with_ik(Object *ob)
        /* iTaSC needs clear for new IK constraints */
        if (tot_ik) {
                BIK_clear_data(ob->pose);
-#ifdef WITH_LEGACY_DEPSGRAPH
-               if (!DEG_depsgraph_use_legacy())
-#endif
-               {
-                       /* TODO(sergey): Consuder doing partial update only. */
-                       DAG_relations_tag_update(G.main);
-               }
+               /* TODO(sergey): Consuder doing partial update only. */
+               DAG_relations_tag_update(G.main);
        }
 
        return (tot_ik) ? 1 : 0;
@@ -5421,11 +5409,6 @@ static void set_trans_object_base_flags(TransInfo *t)
                }
        }
 
-       /* all recalc flags get flushed to all layers, so a layer flip later on 
works fine */
-#ifdef WITH_LEGACY_DEPSGRAPH
-       DAG_scene_flush_update(G.main, t->scene, -1, 0);
-#endif
-
        /* and we store them temporal in base (only used for transform code) */
        /* this because after doing updates, the object->recalc is cleared */
        for (base = scene->base.first; base; base = base->next) {
@@ -5503,9 +5486,6 @@ static int count_proportional_objects(TransInfo *t)
 
        /* all recalc flags get flushed to all layers, so a layer flip later on 
works fine */
        DAG_scene_relations_update(G.main, t->scene);
-#ifdef WITH_LEGACY_DEPSGRAPH
-       DAG_scene_flush_update(G.main, t->scene, -1, 0);
-#endif
 
        /* and we store them temporal in base (only used for transform code) */
        /* this because after doing updates, the object->recalc is cleared */

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to