diff options
author | Bastien Montagne <bastien@blender.org> | 2022-09-08 17:32:35 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2022-09-08 17:34:31 +0300 |
commit | 406243c2fde7472ea39f1eb6316311aec5b72e13 (patch) | |
tree | 2f14eea889d9ad6c8eebc0c40105e98148bf0d4c /source/blender/blenkernel/intern/paint.cc | |
parent | 462014b59b4f5ad110ebfcbc17dfa1f896582110 (diff) |
IDManagement: change `IDTypeInfo.owner_get` to instead return address of the owner_id pointer.
Also rename the callback. That way, we can keep moving toward a more
generic handling of those embedded IDs (think e.g. about copy code).
Diffstat (limited to 'source/blender/blenkernel/intern/paint.cc')
-rw-r--r-- | source/blender/blenkernel/intern/paint.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/paint.cc b/source/blender/blenkernel/intern/paint.cc index d9ce9f0e490..d277bbcca63 100644 --- a/source/blender/blenkernel/intern/paint.cc +++ b/source/blender/blenkernel/intern/paint.cc @@ -139,7 +139,7 @@ IDTypeInfo IDType_ID_PAL = { /* foreach_id */ nullptr, /* foreach_cache */ nullptr, /* foreach_path */ nullptr, - /* owner_get */ nullptr, + /* owner_pointer_get */ nullptr, /* blend_write */ palette_blend_write, /* blend_read_data */ palette_blend_read_data, @@ -207,7 +207,7 @@ IDTypeInfo IDType_ID_PC = { /* foreach_id */ nullptr, /* foreach_cache */ nullptr, /* foreach_path */ nullptr, - /* owner_get */ nullptr, + /* owner_pointer_get */ nullptr, /* blend_write */ paint_curve_blend_write, /* blend_read_data */ paint_curve_blend_read_data, |