|
Blender V5.0
|
#include "testing/testing.h"#include "BKE_brush.hh"#include "BKE_idtype.hh"#include "BKE_lib_id.hh"#include "BKE_main.hh"#include "BLI_listbase.h"#include "DNA_brush_types.h"#include "DNA_material_types.h"#include "DNA_node_types.h"Go to the source code of this file.
Classes | |
| class | BrushTest |
Functions | |
| static void | check_id_and_name (const ID *a, const ID *b) |
| static void | check_embedded_copy (const ID *a, const ID *b) |
| TEST_F (BrushTest, deep_copy) | |
| TEST_F (BrushTest, deep_copy_grease_pencil_brush) | |
Definition at line 45 of file brush_test.cc.
References b, EXPECT_EQ(), ID::flag, ID_FLAG_EMBEDDED_DATA, ID::name, and ID::us.
Definition at line 37 of file brush_test.cc.
References b, EXPECT_EQ(), ID::name, and ID::us.
| TEST_F | ( | BrushTest | , |
| deep_copy | ) |
Definition at line 54 of file brush_test.cc.
References BKE_brush_add(), BKE_brush_duplicate(), BKE_id_new(), BKE_id_new_nomain(), BLI_listbase_is_empty(), check_embedded_copy(), check_id_and_name(), ID::flag, bNodeTree::id, Brush::id, Image::id, PaintCurve::id, Tex::id, ID_FLAG_EMBEDDED_DATA, ID_IM, ID_PC, ID_TE, id_us_min(), Tex::ima, LIB_ID_DUPLICATE_IS_ROOT_ID, Brush::mtex, Tex::nodetree, OB_MODE_SCULPT, Brush::paint_curve, MTex::tex, USER_DUP_LINKED_ID, and USER_DUP_OBDATA.
| TEST_F | ( | BrushTest | , |
| deep_copy_grease_pencil_brush | ) |
Definition at line 83 of file brush_test.cc.
References BKE_brush_add(), BKE_brush_duplicate(), BKE_id_new(), BKE_id_new_nomain(), BLI_listbase_is_empty(), check_embedded_copy(), check_id_and_name(), ID::flag, Brush::gpencil_settings, bNodeTree::id, Brush::id, Material::id, PaintCurve::id, ID_FLAG_EMBEDDED_DATA, ID_MA, ID_PC, id_us_min(), LIB_ID_DUPLICATE_IS_ROOT_ID, BrushGpencilSettings::material, BrushGpencilSettings::material_alt, Material::nodetree, OB_MODE_PAINT_GREASE_PENCIL, Brush::paint_curve, USER_DUP_LINKED_ID, and USER_DUP_OBDATA.