Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2014-01-09 20:42:11 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-01-13 13:57:50 +0400
commitba15dd595f91c694cd721ad880e930dea7e04501 (patch)
treeed99584cb404d3d657f5302f107d0fbbf54fddb5 /source/blender/blenkernel/intern/depsgraph.c
parent9386559db049d9cc3be0495d4cf550c3b1599f50 (diff)
Remove direct displist creation from drawing code
It was some kind of workaround for DAG glitch in 2009 (commit hash 8c5c7ebb0) and according to the comment was needed to make select outline show immediately. After some tests it appears DAG behaves almost fine now (just needed to make it so layer is flushed properly to the set scene) and no reason to have rather confusing call in the code.
Diffstat (limited to 'source/blender/blenkernel/intern/depsgraph.c')
-rw-r--r--source/blender/blenkernel/intern/depsgraph.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/depsgraph.c b/source/blender/blenkernel/intern/depsgraph.c
index 7200ec1560d..630c1711502 100644
--- a/source/blender/blenkernel/intern/depsgraph.c
+++ b/source/blender/blenkernel/intern/depsgraph.c
@@ -2146,6 +2146,9 @@ void DAG_on_visible_update(Main *bmain, const short do_time)
* note armature poses or object matrices are preserved and do not
* require updates, so we skip those */
dag_scene_flush_layers(scene, lay);
+ if (scene->set) {
+ dag_scene_flush_layers(scene->set, lay);
+ }
BKE_main_id_tag_idcode(bmain, ID_GR, false);
for (SETLOOPER(scene, sce_iter, base)) {