Page MenuHome

Cleanup: reuse BKE function, fix comments
Needs ReviewPublic

Authored by Ankit Meel (ankitm) on Nov 13 2021, 12:57 PM.

Details

Summary

Reuse BKE_appdir_folder_home.
Fix documentation comments.


Depends on D13212

Event Timeline

Ankit Meel (ankitm) requested review of this revision.Nov 13 2021, 12:57 PM
Ankit Meel (ankitm) created this revision.
Ray Molenkamp (LazyDodo) requested changes to this revision.Nov 14 2021, 7:32 PM
Ray Molenkamp (LazyDodo) added inline comments.
source/blender/blenkernel/intern/appdir.c
159–160

Below you the flipped the order and changed #ifndef to an #ifdef greatly improving the readability, would be nice to do so here as well.

This revision now requires changes to proceed.Nov 14 2021, 7:32 PM

Review: flip ifdef in BKE_appdir_folder_default also.

Add trailing slash in Unix in BKE_appdir_font_folder_default so that the following works well:

  • In VSE, add text to timeline.
  • In the N-panel, next to the Font ID data button (F), click open. Better user experience is the fonts folder opening, not its parent.
Ankit Meel (ankitm) marked an inline comment as done.

Fix comment
Mark comment done

Windows: Fix comment about cache folder path
Linux: reuse BKE_appdir_folder_home

Brecht Van Lommel (brecht) added inline comments.
source/blender/blenkernel/intern/appdir.c
301

This change should be committed separately.

Ankit Meel (ankitm) retitled this revision from macOS: use GHOST instead of HOME environment var to Cleanup: reuse BKE function, fix comments.
Ankit Meel (ankitm) edited the summary of this revision. (Show Details)

Since ghost was removed (pending approval), this is simpler now.

This is mostly shuffling the order around for things on windows, i see nothing concerning me.

This revision is now accepted and ready to land.Mar 22 2022, 3:20 PM
Ankit Meel (ankitm) requested review of this revision.Mar 22 2022, 3:20 PM