Initial Grease Pencil 3.0 stage #106848

Merged
Falk David merged 224 commits from filedescriptor/blender:grease-pencil-v3 into main 2023-05-30 11:14:22 +02:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit 43735e8963 - Show all commits

View File

@ -594,7 +594,8 @@ namespace blender::bke {
GreasePencilRuntime::GreasePencilRuntime(const GreasePencilRuntime &other)
: root_group_(other.root_group_), active_layer_index_(other.active_layer_index_)
{
layer_cache_ = other.layer_cache_;
/* We cannot copy this cache, because the pointers in that cache become invalid. */

It probably shouldn't be a SharedCache then. Either that or it should cache indices rather than pointers?

It probably shouldn't be a `SharedCache` then. Either that or it should cache indices rather than pointers?

Ah yes, I don't see a way it can be a shared cache then.

Ah yes, I don't see a way it can be a shared cache then.
layer_cache_.tag_dirty();
}
const greasepencil::LayerGroup &GreasePencilRuntime::root_group() const