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:
authorJacques Lucke <jacques@blender.org>2020-07-04 18:28:05 +0300
committerJacques Lucke <jacques@blender.org>2020-07-04 18:28:25 +0300
commit169bb4b9ce19dd47439022172e47af2df8e47338 (patch)
tree13469a7800e0c8970c87ae7cfc1e01fe00e3370b /source/blender/blenlib/BLI_stack.hh
parent8e97694c8afe7d83cd388218165e878952412168 (diff)
BLI: fix mistake in move constructor of Stack
Diffstat (limited to 'source/blender/blenlib/BLI_stack.hh')
-rw-r--r--source/blender/blenlib/BLI_stack.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_stack.hh b/source/blender/blenlib/BLI_stack.hh
index 50be9357a01..41c3be87265 100644
--- a/source/blender/blenlib/BLI_stack.hh
+++ b/source/blender/blenlib/BLI_stack.hh
@@ -174,6 +174,10 @@ class Stack {
inline_chunk_.above = other.inline_chunk_.above;
size_ = other.size_;
+ if (inline_chunk_.above != nullptr) {
+ inline_chunk_.above->below = &inline_chunk_;
+ }
+
if (size_ <= InlineBufferCapacity) {
top_chunk_ = &inline_chunk_;
top_ = this->inline_buffer() + size_;