Commit: 20e11d2f359bb79c40fea6d6aeb6e7e02ac74f9c
Author: Falk David
Date: Thu May 12 18:06:45 2022 +0200
Branches: gpencil-new-data-proposal
https://developer.blender.org/rB20e11d2f359bb79c40fea6d6aeb6e7e02ac74f9c
Clear strokes pointer after frame move
===================================================================
M source/blender/blenkernel/intern/gpencil_new_proposal_test.cc
===================================================================
diff --git a/source/blender/blenkernel/intern/gpencil_new_proposal_test.cc
b/source/blender/blenkernel/intern/gpencil_new_proposal_test.cc
index 134d9b075d8..ff4da413f09 100644
--- a/source/blender/blenkernel/intern/gpencil_new_proposal_test.cc
+++ b/source/blender/blenkernel/intern/gpencil_new_proposal_test.cc
@@ -160,6 +160,7 @@ class GPFrame : public ::GPFrame {
{
if (this != &other) {
std::swap(this->strokes, other.strokes);
+ other.strokes = nullptr;
}
this->layer_index = other.layer_index;
}
@@ -168,6 +169,7 @@ class GPFrame : public ::GPFrame {
{
if (this != &other) {
std::swap(this->strokes, other.strokes);
+ other.strokes = nullptr;
}
this->layer_index = other.layer_index;
this->start_time = other.start_time;
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs