[Bf-blender-cvs] [ee63f909935] gpencil-new-data-proposal: Comment
Falk David
noreply at git.blender.org
Tue May 10 12:25:33 CEST 2022
Commit: ee63f9099350c14813517008b653e932cfb20f5a
Author: Falk David
Date: Mon May 9 19:55:13 2022 +0200
Branches: gpencil-new-data-proposal
https://developer.blender.org/rBee63f9099350c14813517008b653e932cfb20f5a
Comment
===================================================================
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 651cf51d076..0c3a5656b4a 100644
--- a/source/blender/blenkernel/intern/gpencil_new_proposal_test.cc
+++ b/source/blender/blenkernel/intern/gpencil_new_proposal_test.cc
@@ -306,6 +306,8 @@ class GPData : public ::GPData {
return {(GPLayer *)this->layers_array, this->layers_size};
}
+ /* TODO: Rework this API to take a string instead and create the layer in here. Similar to how we
+ * do it with frames. */
int add_layer(GPLayer &new_layer)
{
/* Ensure that the layer array has enough space. */
@@ -328,7 +330,7 @@ class GPData : public ::GPData {
GPFrame frame(frame_start);
frame.layer_index = layer_index;
- this->frames_for_write().last() = std::move(frame);/* TODO: Check for collisions. */
+ this->frames_for_write().last() = std::move(frame); /* TODO: Check for collisions. */
/* Sort frame array. */
update_frames_array();
More information about the Bf-blender-cvs
mailing list