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
22 lines
404 B
C++
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
|