Revert "Fix #124082: GPv3: New frames created in sculpt mode are empty"

This reverts commit 924aa88877.
Introduced a high priority issue: #124344
This commit is contained in:
Falk David
2024-07-09 10:34:06 +02:00
parent 6fb41126ec
commit 6bbffc6b69

View File

@@ -355,10 +355,8 @@ bool ensure_active_keyframe(const Scene &scene,
const bool needs_new_drawing = is_first || (current_start_frame < current_frame);
if (blender::animrig::is_autokey_on(&scene) && needs_new_drawing) {
const Brush *brush = BKE_paint_brush_for_read(&scene.toolsettings->gp_paint->paint);
const bool is_tool_supported = (brush->gpencil_tool == GPAINT_TOOL_ERASE) ||
(brush->sculpt_tool != 0);
if (((scene.toolsettings->gpencil_flags & GP_TOOL_FLAG_RETAIN_LAST) != 0) || is_tool_supported)
if (((scene.toolsettings->gpencil_flags & GP_TOOL_FLAG_RETAIN_LAST) != 0) ||
(brush->gpencil_tool == GPAINT_TOOL_ERASE))
{
/* For additive drawing, we duplicate the frame that's currently visible and insert it at the
* current frame.