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:
authorCampbell Barton <campbell@blender.org>2022-11-02 08:56:37 +0300
committerCampbell Barton <campbell@blender.org>2022-11-02 09:17:28 +0300
commit638bf05a23e1ef7dddd3b5d42d9521d8849a4375 (patch)
tree2c7f0edaafa7b62fcaa4ab30583a54c8877d8221 /source/blender/makesdna/DNA_camera_types.h
parent7f1e98839a79ef8c5d08b53e01b3d01302a2e419 (diff)
Fix BLI_path_parent_dir returning success with a single period as input
While relatively harmless, BLI_path_parent_dir wasn't returning failure when passed in "./" which wouldn't succeed. Instead of adding a ".." and normalizing, normalize the path and remove the last directly. This is simpler than inspecting the resulting path to see if normalize removed it or not. Add additional tests which failed previously.
Diffstat (limited to 'source/blender/makesdna/DNA_camera_types.h')
0 files changed, 0 insertions, 0 deletions