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
AgeCommit message (Collapse)Author
2020-12-19Cleanup: Split SEQ_sequencer.h fileRichard Antalik
2020-12-19Cleanup: Rename BKE_sequencer functionsRichard Antalik
API functions get SEQ_ prefix. Intern functions get seq_ prefix Functions also have appropriate category included in name.
2020-12-15Asset System: Prepare File Browser backend for the Asset BrowserJulian Eisel
The Asset Browser will be a sub-editor of the File Browser. This prepares the File Browser code for that. **File-Lists** * Support loading assets with metadata read from external files into the file-list. * New main based file-list type, for the "Current File" asset library. * Refresh file-list when switching between browse modes or asset libraries. * Support empty file-lists (asset library with no assets). * Store file previews as icons, so scripts can reference them via icon-id. See previous commit. **Space Data** * Introduce "browse mode" to differeniate between file and asset browsing. * Add `FileAssetSelectParams` to `SpaceFile`, with `FileSelectParams` as base. Makes sure data is separated between asset and file browsing when switching between them. The active params can be obtained through `ED_fileselect_get_active_params()`. * `FileAssetSelectParams` stores the currently visible asset library ID. * Introduce file history abstraction so file and asset browsing can keep a separate history (previous and next directories). **General** * Option to only show asset data-blocks while file browsing (not exposed here). * Add "active_file" context member, so scripts can get and display info about the active file. * Add "active_id" context member, so `ED_OT_lib_id_load_custom_preview` can set a custom ID preview. (Only for "Current File" asset library) * Expose some of `FileDirEntry` in RNA as (non-editable). That way scripts can obtain name, preview icon and asset-data. Part of the first Asset Browser milestone. Check the #asset_browser_milestone_1 project milestone on developer.blender.org. Differential Revision: https://developer.blender.org/D9724 Reviewed by: Bastien Montagne
2020-12-15Asset System: Support custom asset library paths through PreferencesJulian Eisel
One of the core design aspects of the Asset Browser is that users can "mount" custom asset libraries via the Preferences. Currently an asset library is just a directory with one or more .blend files in it. We could easily support a single .blend file as asset library as well (rather than a directory). It's just disabled currently. Note that in earlier designs, asset libraries were called repositories. Idea is simple: In Preferences > File Paths, you can create custom libraries, by setting a name and selecting a path. The name is ensured to be unique. If the name or path are empty, the Asset Browser will not show it in the list of available asset libraries. The library path is not checked for validity, the Asset Browser will allow selecting invalid libraries, but show a message instead of the file list, to help the user understand what's going on. Of course the actual Asset Browser UI is not part of this commit, it's in one of the following ones. {F9497950} Part of the first Asset Browser milestone. Check the #asset_browser_milestone_1 project milestone on developer.blender.org. Differential Revision: https://developer.blender.org/D9722 Reviewed by: Brecht Van Lommel, Hans Goudey
2020-12-15Asset System: Data-block asset metadata storage, reading and APIJulian Eisel
Asset metadata is what turns a regular data-block into an asset. It is a small data-structure, but a key part of the technical design of the asset system. The design foresees that asset data-blocks store an `ID.asset_data` pointer of type `AssetMetaData`. This data **must not** have dependencies on other data-blocks or data-block data, it must be an independent unit. That way we can read asset-metadata from .blends without reading anything else from the file. The Asset Browser will use this metadata (together with the data-block name, preview and file path) to represent assets in the file list. Includes: * New `ID.asset_data` for asset metadata. * Asset tags, description and custom properties. * BKE code to manage asset meta-data and asset tags. * Code to read asset data from files, without reading IDs. * RNA for asset metadata (including tags) Part of the first Asset Browser milestone. Check the #asset_browser_milestone_1 project milestone on developer.blender.org. Differential Revision: https://developer.blender.org/D9716 Reviewed by: Bastien Montagne, Brecht Van Lommel
2020-12-15Cleanup: reduce indirect DNA header inclusionCampbell Barton
Remove DNA headers, using forward declarations where possible. Also removed duplicate header, header including it's self and unnecessary inclusion of libc system headers from BKE header.
2020-12-04Cleanup: Move Outliner runtime hash into internal runtime struct, out of DNAJulian Eisel
This way Outliner internal data stays internal, non-Outliner code will not be able to access and mess with this. Further it allows us to use the real type (rather than `void *`), change the type to a C++ container if needed and slightly reduces the size for every Outliner stored in files. Slightly changed how we set the `SO_TREESTORE_REBUILD` for this, but it should effectively behave the same way as before.
2020-11-06Cleanup: remove unused includes in readfile.c and writefile.cJacques Lucke
2020-11-06Cleanup: fix naming and remove unnecessary codeJacques Lucke
2020-11-06Refactor: move Screen .blend data read to blenkernelJacques Lucke
Ref T76372.
2020-11-06Refactor: move Ipo .blend I/O to IDTypeInfo callbacksJacques Lucke
2020-11-06Refactor: move Object .blend I/O to IDTypeInfo callbacksJacques Lucke
2020-11-06Refactor: move Pose .blend I/O to blenkernelJacques Lucke
Ref T76372.
2020-11-06Refactor: move Constraint .blend I/O to blenkernelJacques Lucke
Ref T76372.
2020-11-06Refactor: move MotionPath .blend I/O to blenkernelJacques Lucke
Ref T76372.
2020-11-06Refactor: move gpencil modifier .blend I/O to blenkernelJacques Lucke
Ref T76372.
2020-11-06Refactor: move modifier .blend I/O to blenkernelJacques Lucke
Ref T76372.
2020-11-06Refactor: move ShaderFx .blend I/O to blenkernelJacques Lucke
Ref T76372.
2020-11-06Refactor: move ParticleSystem .blend I/O to blenkernelJacques Lucke
Ref T76372.
2020-11-06Refactor: move Scene .blend expand to IDTypeInfo callbackJacques Lucke
2020-11-06Refactor: move Scene .blend lib reading to IDTypeInfo callbackJacques Lucke
2020-11-06Blenloader: access report list via apiJacques Lucke
2020-11-06Blenloader: expose BLO_reportf_wrap in apiJacques Lucke
This function is used by a couple of functions that are moved out of blenloader.
2020-11-06Refactor: move Scene .blend data reading to IDTypeInfo callbackJacques Lucke
2020-11-06Refactor: move PointCache .blend I/O to blenkernelJacques Lucke
Ref T76372.
2020-11-06Refactor: move sequencer modifier .blend I/O to sequencer moduleJacques Lucke
Ref T76372.
2020-11-06Refactor: move Paint lib linking to blenkernelJacques Lucke
Ref T76372.
2020-11-06Refactor: move color settings .blend I/O to blenkernelJacques Lucke
Ref T76372.
2020-11-06Refactor: move LightCache .blend I/O to eevee_lightcache.cJacques Lucke
Ref T76372.
2020-11-06Refactor: move Paint .blend I/O to blenkernelJacques Lucke
Ref T76372.
2020-11-06Refactor: move wmWindowManager .blend I/O to IDTypeInfo callbacksJacques Lucke
2020-11-06Cleanup: de-duplicate code for instancing objects when linkingCampbell Barton
Ref D8843
2020-11-06Cleanup: follow our code style for float literalsCampbell Barton
2020-11-05Rename extern rendering and proxy functionsRichard Antalik
Replace BKE_sequencer wirh SEQ_render or SEQ_proxy prefixes. In cases where function is very generic, only SEQ prefix is used. Reviewed By: sergey Differential Revision: https://developer.blender.org/D9439
2020-11-03Add a callback to `IDTypeInfo` to allow preservation of some data accross ↵Bastien Montagne
memfile undos This is essentially adding that new callback, and using it only for already existing Scene's 3DCursor. Note that the place where this is called has been moved again, after all have been lib-linked, such that those callbacks may also work on ID pointers. Maniphest Tasks: T71759 Differential Revision: https://developer.blender.org/D9237
2020-11-03Merge branch 'blender-v2.91-release'Hans Goudey
2020-11-02Fix crash opening some 2.4x .blend files with drivers or NLA editorBrecht Van Lommel
For example, outlinertest.blend from test240.zip.
2020-11-01Rename BKE_sequencer.hRichard Antalik
Reviewed By: sergey Differential Revision: https://developer.blender.org/D9349
2020-10-30Refactor: move WorkSpace .blend I/O to IDTypeInfo callbacksJacques Lucke
2020-10-30Refactor: move bScreen .blend I/O to IDTypeInfo callbacksJacques Lucke
I could not easily move `direct_link_screen` yet, because it has a return value. That has to be solved differently at some point.
2020-10-30Refactor: move Area .blend I/O to blenkernelJacques Lucke
There should be no functional changes. Eventually, it would be good to handle the different space types using callbacks. Ref T76372.
2020-10-30Refactor: move view3dshading .blend I/O to blenkernelJacques Lucke
Ref T76372.
2020-10-30Refactor: move ParticleSettings .blend I/O to IDTypeInfo callbacksJacques Lucke
2020-10-29Refactor: move Collection .blend I/O to IDTypeInfo callbacksJacques Lucke
This one was a bit more tricky, because the file loading is mixed with versioning code and because collections are embedded into scenes. All tests that passed before, still pass.
2020-10-19Spelling: Loose Versus LoseHarley Acheson
Corrects incorrect usages of the word 'loose' when 'lose' was required. Differential Revision: https://developer.blender.org/D9243 Reviewed by Campbell Barton
2020-10-19Spelling: MiscellaneousHarley Acheson
Corrects 34 miscellaneous misspelled words. Differential Revision: https://developer.blender.org/D9248 Reviewed by Campbell Barton
2020-10-19Spelling: Then Versus ThanHarley Acheson
Corrects incorrect usages of the words 'then' and 'than'. Differential Revision: https://developer.blender.org/D9246 Reviewed by Campbell Barton
2020-10-19Spelling: It's Versus ItsHarley Acheson
Corrects incorrect usage of contraction for 'it is', when possessive 'its' was required. Differential Revision: https://developer.blender.org/D9250 Reviewed by Campbell Barton
2020-10-16Fix T81027: Multires objects in sculpt mode can't be linked via collections.Bastien Montagne
Just clear all non-object mode flags from linked objects at read time. Reviewers: brecht Subscribers:
2020-10-15Cleanup: Do not compare bool value to 0.Bastien Montagne