Files
test2/source/blender/blenkernel/intern/paint_runtime.cc
Sean Kim 7f3aa617ce Refactor: Move Paint_Runtime out of DNA
This commit takes the previously defined `Paint_Runtime` struct and
moves it into the BKE namespace, initializing it on demand instead of it
being a default-allocated member. This data does not need to be
persisted and is runtime only.

Pull Request: https://projects.blender.org/blender/blender/pulls/141413
2025-07-07 16:53:12 +02:00

22 lines
404 B
C++

/* SPDX-FileCopyrightText: 2005 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
/** \file
* \ingroup bke
*/
#include "MEM_guardedalloc.h"
#include "DNA_asset_types.h"
#include "BKE_paint_types.hh"
namespace blender::bke {
PaintRuntime::PaintRuntime() = default;
PaintRuntime::~PaintRuntime()
{
MEM_delete(this->previous_active_brush_reference);
}
} // namespace blender::bke