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 4 additions and 4 deletions
Showing only changes of commit 501723e73e - Show all commits

View File

@ -996,12 +996,12 @@ void GreasePencil::foreach_visible_drawing(
if (index == -1) {
continue;
}
GreasePencilDrawingBase *drawing_baseerence = drawings[index];
if (drawing_baseerence->type == GP_DRAWING) {
GreasePencilDrawing *drawing = reinterpret_cast<GreasePencilDrawing *>(drawing_baseerence);
GreasePencilDrawingBase *drawing_base = drawings[index];
if (drawing_base->type == GP_DRAWING) {
GreasePencilDrawing *drawing = reinterpret_cast<GreasePencilDrawing *>(drawing_base);
function(*drawing);
}
else if (drawing_baseerence->type == GP_DRAWING_REFERENCE) {
else if (drawing_base->type == GP_DRAWING_REFERENCE) {
/* TODO */
}
}