diff options
author | Bastien Montagne <bastien@blender.org> | 2022-06-08 18:49:40 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2022-06-08 19:00:42 +0300 |
commit | 8843705f651f0150d22b9f99e4cac9b7a641adbf (patch) | |
tree | 36f253ae253908dbfa00616bfe6c869d7d0640bc /source/blender/makesrna/intern/rna_image.c | |
parent | d62e6f122575a0a8292e731fecebe663589e81ea (diff) |
Fix (unreported) missing rna path for some background image properties.
RNA camera code did not handle path for its image/movieclip users
sub-data, and moviclip RNA struct definition did not have a rna path
function at all.
Diffstat (limited to 'source/blender/makesrna/intern/rna_image.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_image.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/makesrna/intern/rna_image.c b/source/blender/makesrna/intern/rna_image.c index c7b713d80f5..b7725415d88 100644 --- a/source/blender/makesrna/intern/rna_image.c +++ b/source/blender/makesrna/intern/rna_image.c @@ -182,12 +182,12 @@ static char *rna_ImageUser_path(const PointerRNA *ptr) switch (GS(ptr->owner_id->name)) { case ID_OB: - case ID_TE: { + case ID_TE: return BLI_strdup("image_user"); - } - case ID_NT: { + case ID_NT: return rna_Node_ImageUser_path(ptr); - } + case ID_CA: + return rna_CameraBackgroundImage_image_or_movieclip_user_path(ptr); default: break; } |