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>2019-02-28 20:47:07 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-02-28 20:48:28 +0300
commit95b150ba871ebcc2731936510ec7620fc0443a5e (patch)
treedc92f756133f3df8ac488346d1ee49b9962b4f7f /source/blender/depsgraph/intern/builder/deg_builder.h
parentf864cbd705e5773c4dc8a698bae0bee86ba62d5c (diff)
Depsgraph: Fix wrong disabled bases deletion
Original optimization idea was wrong: it is possible that some other ID would reference an object which is also used by a base. Rolled back to a bit more fragile solution. In the future would be nice to make it somewhat less duplicated with the builder itself. Fixes assert failure (and possibly crashes) when adding grease pencil object and switching to a draw mode.
Diffstat (limited to 'source/blender/depsgraph/intern/builder/deg_builder.h')
-rw-r--r--source/blender/depsgraph/intern/builder/deg_builder.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder.h b/source/blender/depsgraph/intern/builder/deg_builder.h
index 7c9f496ae7e..2461ca2211f 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder.h
+++ b/source/blender/depsgraph/intern/builder/deg_builder.h
@@ -42,6 +42,8 @@ protected:
Depsgraph *graph_;
};
+bool deg_check_base_available_for_build(const Depsgraph *graph,
+ Base *base);
void deg_graph_build_finalize(struct Main *bmain, struct Depsgraph *graph);
} // namespace DEG