diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2016-07-10 16:49:01 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2016-07-10 18:14:45 +0300 |
commit | 0f0eeffeceafdb47b4cdb2975865d4306d0d94b4 (patch) | |
tree | c5269e64f1f13bd72fb48521322b2f34a97478fa /source/blender/blenkernel/intern/library.c | |
parent | c8c00636bf439bf640a545a60dd82ada8ebd5ffe (diff) |
Refactor/enhance BKE_brush_make_local() and BKE_speaker_make_local().
Now using modern features from libquery/libremap areas.
Provides same kind of fixes/improvements as for BKE_object_make_local() (see rBd1a4ae3f395a6).
Diffstat (limited to 'source/blender/blenkernel/intern/library.c')
-rw-r--r-- | source/blender/blenkernel/intern/library.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/library.c b/source/blender/blenkernel/intern/library.c index 9ef8d3acb4b..06b977b290b 100644 --- a/source/blender/blenkernel/intern/library.c +++ b/source/blender/blenkernel/intern/library.c @@ -294,7 +294,7 @@ bool id_make_local(Main *bmain, ID *id, bool test) if (!test) BKE_camera_make_local((Camera *)id); return true; case ID_SPK: - if (!test) BKE_speaker_make_local((Speaker *)id); + if (!test) BKE_speaker_make_local(bmain, (Speaker *)id); return true; case ID_IP: return false; /* deprecated */ @@ -324,7 +324,7 @@ bool id_make_local(Main *bmain, ID *id, bool test) if (!test) ntreeMakeLocal((bNodeTree *)id, true); return true; case ID_BR: - if (!test) BKE_brush_make_local((Brush *)id); + if (!test) BKE_brush_make_local(bmain, (Brush *)id); return true; case ID_PA: if (!test) BKE_particlesettings_make_local(bmain, (ParticleSettings *)id); |