Patches to Bf Blender for CAD development. https://tornavis.org/
Go to file
Julian Eisel 6de85a0cc0 Ghost: Support queries for special user directories (desktop, documents, etc.)
When we had to get special user directories, we'd usually do it in varying,
rather ad-hoc ways. It would be done with a bunch of `#ifdef`s for the
different operating systems. Also, some of the used Win32 functions were legacy
ones and the API docs recommend using newer ones.
Further, seems `BKE_appdir_folder_default()` used `XDG_DOCUMENTS_DIR` wrong.
It's not supposed to be an environment variable but a value inside a config
file.

This adds the platform dependent logic to Ghost, so we can abstract it away
nicely using the `GHOST_ISystemPaths` interface. Getting the desktop directory
for example can now easily be done with:
`GHOST_getUserSpecialDir(GHOST_kUserSpecialDirDesktop).`

For now I added the logic for desktop, documents, downloads, videos, images and
music directories, even though we only use the Documents one. We can extend/
change this as needed, it's easy to do now.
On Windows and macOS, it uses pretty much the same way to access the
directories as elsewhere already. On Linux, it uses the `xdg-user-dir` command
that seems to be available by default on most Linux systems.

No functional changes. The new queries are not actually used yet.

Differential Revision: https://developer.blender.org/D9800

Reviewed by: Brecht Van Lommel
2020-12-11 16:20:53 +01:00
.github Add Probot Stale configuration file 2019-10-11 14:13:29 +02:00
build_files Cleanup: trailing space 2020-12-11 15:32:14 +11:00
doc PyDoc: expanded documentation for bpy_struct.is_property_set 2020-12-08 20:52:31 +11:00
extern Cleanup: trailing space 2020-12-11 15:32:14 +11:00
intern Ghost: Support queries for special user directories (desktop, documents, etc.) 2020-12-11 16:20:53 +01:00
release Geometry Nodes: add Attribute Mix node 2020-12-11 12:00:48 +01:00
source GPencil: Add Link support to Effects using Ctrl+L 2020-12-11 15:53:22 +01:00
tests Tests: fix 'ctest -j' running multiple tests at once 2020-12-10 17:18:38 +11:00
.arcconfig Fix .arcconfig not working with latest arcanist version 2020-03-01 22:35:31 +01:00
.clang-format Cleanup: add SEQ_ALL_BEGIN, SEQ_CURRENT_BEGIN to .clang-format 2020-08-26 09:59:15 +10:00
.clang-tidy Cleanup: Clang-Tidy, modernize-use-using 2020-12-04 12:46:43 +01:00
.editorconfig editorconfig: correct indent size 2019-04-17 13:34:46 +02:00
.git-blame-ignore-revs Cleanup: add commits to .git-blame-ignore-revs. 2020-12-02 13:20:43 +05:30
.gitignore Fluid: Added wavelet noise tile to the gitignore 2020-01-29 19:21:52 +01:00
.gitmodules
CMakeLists.txt MSVC: Enable clang-tidy analyser 2020-12-03 11:00:58 -07:00
COPYING
GNUmakefile Cleanup: spelling in comments 2020-10-19 09:27:32 +02:00
make.bat Build: add "make test" command for Windows, output log file 2019-09-12 20:23:03 +02:00
readme.rst readme: separate development links 2019-04-13 14:45:51 +02:00

readme.rst

.. Keep this document short & concise,
   linking to external resources instead of including content in-line.
   See 'release/text/readme.html' for the end user read-me.


Blender
=======

Blender is the free and open source 3D creation suite.
It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing,
motion tracking and video editing.

.. figure:: https://code.blender.org/wp-content/uploads/2018/12/springrg.jpg
   :scale: 50 %
   :align: center


Project Pages
-------------

- `Main Website <http://www.blender.org>`__
- `Reference Manual <https://docs.blender.org/manual/en/latest/index.html>`__
- `User Community <https://www.blender.org/community/>`__

Development
-----------

- `Build Instructions <https://wiki.blender.org/wiki/Building_Blender>`__
- `Code Review & Bug Tracker <https://developer.blender.org>`__
- `Developer Forum <https://devtalk.blender.org>`__
- `Developer Documentation <https://wiki.blender.org>`__


License
-------

Blender as a whole is licensed under the GNU Public License, Version 3.
Individual files may have a different, but compatible license.

See `blender.org/about/license <https://www.blender.org/about/license>`__ for details.