Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenkernel/intern/brush.c')
-rw-r--r--source/blender/blenkernel/intern/brush.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c
index f559689608f..e1524422c3b 100644
--- a/source/blender/blenkernel/intern/brush.c
+++ b/source/blender/blenkernel/intern/brush.c
@@ -1533,9 +1533,7 @@ struct Brush *BKE_brush_first_search(struct Main *bmain, const eObjectMode ob_mo
Brush *BKE_brush_copy(Main *bmain, const Brush *brush)
{
- Brush *brush_copy;
- BKE_id_copy(bmain, &brush->id, (ID **)&brush_copy);
- return brush_copy;
+ return (Brush *)BKE_id_copy(bmain, &brush->id);
}
void BKE_brush_debug_print_state(Brush *br)