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 12 additions and 0 deletions
Showing only changes of commit d06a401fe4 - Show all commits

View File

@ -269,6 +269,8 @@ TreeNode::TreeNode(const TreeNode &other)
if (other.name) {
this->name = BLI_strdup(other.name);
}
this->flag = other.flag;
copy_v3_v3_uchar(this->color, other.color);
}
TreeNode::~TreeNode()
@ -313,6 +315,7 @@ LayerMask::LayerMask(const LayerMask &other) : LayerMask()
if (other.layer_name) {
this->layer_name = BLI_strdup(other.layer_name);
}
this->flag = other.flag;
}
LayerMask::~LayerMask()
@ -338,6 +341,10 @@ Layer::Layer(StringRefNull name)
Layer::Layer(const Layer &other)
: TreeNode::TreeNode(other), frames_(other.frames_), masks_(other.masks_)
{
this->parent_type = other.parent_type;
this->blend_mode = other.blend_mode;
this->thickness_adjustment = other.thickness_adjustment;
this->parent = other.parent;
this->parsubstr = nullptr;
this->viewlayer_name = nullptr;
if (other.parsubstr != nullptr) {
@ -346,6 +353,11 @@ Layer::Layer(const Layer &other)
if (other.viewlayer_name != nullptr) {
this->viewlayer_name = BLI_strdup(other.viewlayer_name);
}
this->opacity = other.opacity;
copy_v4_v4(this->tint_color, other.tint_color);
copy_v3_v3(this->location, other.location);
copy_v3_v3(this->rotation, other.rotation);
copy_v3_v3(this->scale, other.scale);
}
Layer::~Layer()