diff options
author | Campbell Barton <campbell@blender.org> | 2022-01-07 07:13:31 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-01-07 07:15:08 +0300 |
commit | b3dc1a17a0e7b7e38a8ece70ca0d353aff82c154 (patch) | |
tree | 2eec6693f681341e9b9235ed639489aa3d217eb3 /source/blender/blenkernel/BKE_image.h | |
parent | 2cd8238ce3394aa3cf89c4d8c17c71757dd61a08 (diff) |
Fix BKE_image_ensure_tile_token being called with a full path
Assert that only the file name component is passed in
since special handling for UDIM should only be applied to the file name.
Also remove an unnecessary NULL check on the filename argument.
Diffstat (limited to 'source/blender/blenkernel/BKE_image.h')
-rw-r--r-- | source/blender/blenkernel/BKE_image.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_image.h b/source/blender/blenkernel/BKE_image.h index eb7738b9307..7b87189a13f 100644 --- a/source/blender/blenkernel/BKE_image.h +++ b/source/blender/blenkernel/BKE_image.h @@ -436,6 +436,7 @@ typedef enum { /** * Ensures that `filename` contains a UDIM token if we find a supported format pattern. + * \note This must only be the name component (without slashes). */ void BKE_image_ensure_tile_token(char *filename); |