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
2022-06-17Curves: refactor Add brushJacques Lucke
This splits out the code that samples points on a surface and the code that initializes new curves. This code will be reused by D15134. Differential Revision: https://developer.blender.org/D15216
2022-06-17Cleanup: Simplify syntax in curves draw cache fileHans Goudey
Also remove some unnecessary logic and change a variable name.
2022-06-17LibOverride: Handle dependencies in both directions in partial override cases.Bastien Montagne
When creating etc. a liboverride based on a partial hierarchy pre-selection (e.g: override hierarchy on the rig object of a character), now all linked data also using that rig (e.g. all meshes deformed by that armature) will also automatically be overridden. This si achieved by following dependencies in the reversed order (from used IDs to using IDs) when we find one tagged for override.
2022-06-17BKE_main: Relations: Add `TO`/`FROM` variants of processed flags.Bastien Montagne
In some cases, it can be usefull to distinguish when an entry has been processed in which direction (`to` when handling ID pointers used by the entry, `from` when handling ID using this entry). Previous `MAINIDRELATIONS_ENTRY_TAGS_PROCESSED` tag is now a combination of the two new ones.
2022-06-17Cleanup: add verbose logging category names instead of numbersBrecht Van Lommel
And use them more consistently than before.
2022-06-17Cleanup: replace uint4 by AttributeMap structBrecht Van Lommel
2022-06-17Geometry Nodes: new Volume Cube nodeChris Clyne
This commit adds a Volume Cube primitive node. It outputs a volume that contains a single "density" float grid. The density per voxel can be controlled with a field that depends on the voxel position (using the existing Position node). Other field inputs are not supported. The density field is evaluated on every voxel. Possible future improvements are listed in D15198. Differential Revision: https://developer.blender.org/D15198
2022-06-17Geometry Nodes: tweak Volume to Mesh threshold declarationJacques Lucke
* Remove the minimum value, because that doesn't make sense in general. * Add a description.
2022-06-17Fix crash invoking layer add/remove operators without maskSergey Sharybin
2022-06-17TEST COMMIT: API doc generation changes.Bastien Montagne
This commit is intended to be reverted within a few minutes. commit 088497c870630d9b0d405aaa5fd796c77b380731 Author: Bastien Montagne <bastien@blender.org> Date: Wed Jun 15 15:43:13 2022 +0200 Py API Doc: add runtime changelog generation to `sphinx_doc_gen.py`. Optionally use `sphinx_changelog_gen.py` to dump current version of the API in a JSON file, and use closest previous one listed in given index file to create a changelog RST page for Sphinx. commit 91801f47ad03f4739e97ae4b4edee09687e2cb85 Author: Bastien Montagne <bastien@blender.org> Date: Wed Jun 15 15:36:19 2022 +0200 Py API Doc: refactor changelog generation script. Main change is to make it use JSON format for its dump files, instead of some Python code. It also introduces an index for those API dump files, mapping a blender version to the relevant file path. This is then used to automatically the most recent (version-number wise) previous API dump to compare against current one, when generating the change log RST file.
2022-06-17Fix T98944: Uninitialized XRFrameState can prevent VR/OpenXR viewingPeter Kim
This provides a workaround for the VR session stopping due to an error in locating controller poses. The problem was that for the actions sync on the first frame, the session's XrFrameState/predicted display time had not been initialized yet, which led to an error in xrLocateSpace() (the error was only observed for some OpenXR runtimes since the first frame pose state would be inactive for other runtimes, skipping the call to xrLocateSpace()). The timing of action updates relative to frame state updates could be reworked in the future, but for now simply check for a valid display time to avoid an error on the first frame.
2022-06-17UI: Custom Properties - Rename properties to remove "Use/Is"Dalai Felinto
There is no need to have use/is in the final name. This is implicitly represented by the checkbox already. This does not change the Python API, only the names we show in the user interface. * Is Library Overridable -> Library Overridable * Use Soft Limits -> Soft Limits Differential Revision: https://developer.blender.org/D15217
2022-06-17Cleanup: Remove redundant doxygen sectionHans Goudey
Also remove const for the object argument, since the object data is logically modified by generating the data.
2022-06-17GHOST/Wayland: skip cursor surface operations when hiding the cursorCampbell Barton
Also set the buffer scale before setting the cursor (matching SDL).
2022-06-17Cleanup: use booleans for GHOST C-APICampbell Barton
Also use GHOST_ prefix for public functions.
2022-06-17Cleanup: clang-tidy for GHOSTCampbell Barton
2022-06-17Cleanup: remove redundant string formattingCampbell Barton
2022-06-17Cleanup: remove `r_` prefix for non-return valuesCampbell Barton
2022-06-17Fix T98663: Eevee compilation error cryptomatte shaders.Jeroen Bakker
On MacOS Eevee cyptomatte shaders fails as it doesn't ignore the `attrib_load` parameter. I validated that removind the parameter works on Linux/AMD and MacOS Intel. It could be that there are other platforms that require the dummy parameter. If this should use a forward declaration and implement an emoty function in the cryptomatte vertex shader.
2022-06-17Cleanup: spelling in commentsCampbell Barton
2022-06-17Cleanup: unused variable warningCampbell Barton
2022-06-16Geometry Nodes: add 'Intersecting Edges' output for boolean nodePhilipp Oeser
This patch adds a 'Intersecting Edges' output with a boolean selection that only gives you the new edges on intersections. Will work on a couple of examples next, this should make some interesting effects possible (including getting us closer to the "bevel- after-boolean-usecase") To achieve this, a Vector is passed to `direct_mesh_boolean` when the iMesh is still available (and intersecting edges appended), then from those edge indices a selection will be stored as attribute. Differential Revision: https://developer.blender.org/D15151
2022-06-16UI: Add file browser operator to edit directory fieldDamien Picard
This allows using a shortcut from the file browser to edit the directory path. The shortcut Ctrl + L is quite standard and used in multiple GNU/Linux desktop desktop environments, Windows, as well as most web browsers. Safari on macOS uses Cmd + L. Reviewed by: Jacques Lucke, Julian Eisel Differential Revision: https://developer.blender.org/D15196
2022-06-16Cleanup: Use const in File Browser filtering operatorJulian Eisel
2022-06-16Revert "Revert "Revert "TEST COMMIT: API doc generation changes."""Bastien Montagne
This reverts commit 5a30fe29ef2e1f424df0403284b3ebba5644403f.
2022-06-16UI: Add initial "grid view"Julian Eisel
Part of T98560. See https://wiki.blender.org/wiki/Source/Interface/Views Adds all the basic functionality needed for grid views. They display items in a grid of rows and columns, typically with a preview image and a label underneath. Think of the main region in the Asset Browser. Current features: - Active item - Notifier listening (also added this to the tree view) - Performance: Skip adding buttons that are not scrolled into view (solves performance problems for big asset libraries, for example). - Custom item size - Preview items (items that draw a preview with a label underneath) - Margins between items scale so the entire region width is filled with column, rather than leaving a big empty block at the right if there's not enough space for another column (like the File and current Asset Browser does it). - "Data-View Item" theme colors. Not shown in the UI yet. No user visible changes expected since the grid views aren't used for anything yet. This was developed as part of a rewrite of the Asset Browser UI (`asset-browser-grid-view` branch), see T95653. There's no reason to keep this part in a branch, continuing development in master makes things easier. Grid and tree views have a lot of very similar code, so I'm planning to unify them to a degree. I kept things separate for the start to first find out how much and what exactly makes sense to override.
2022-06-16Cleanup: Spelling in commentSergey Sharybin
2022-06-16Cleanup: use proper variable nameSergey Sharybin
The `SpaceClip *sc` got incorrectly renamed to `SpaceClip *screen` in the ad85989a3f88.
2022-06-16Fix T98796: avoid unnecessary mesh copyJacques Lucke
The call to `get_component_for_write` would sometimes copy the mesh even when the mesh is replaced with itself. The `replace_mesh` method handles that case already, so just use that instead.
2022-06-16LineArt: Variable name cleanups.Yiming Wu
Use more descriptive names for some of the two character variables. Reviewed By: Sebastian Parborg (zeddb) Differential Revision: https://developer.blender.org/D15192
2022-06-16Cleanup: Fix build for make lite and add . to code commentsDalai Felinto
Issue introduced on e6eefdd4020e.
2022-06-16Revert "Revert "TEST COMMIT: API doc generation changes.""Bastien Montagne
This reverts commit 502089f275ded113732c24cad2a96e2a899ecd5c. Enable again temporarily the new test code for API doc generation.
2022-06-16Fix T98904: GPencil sculpt brushes break after you delete a brushAntonio Vazquez
There were two problems here: 1) Console warnings due to brush was None. 2) It was impossible to recreate a brush. This patch fixes both issues and it is now possible to recreate any brush. Differential Revision: https://developer.blender.org/D15213 Reviewed by: @dflelinto
2022-06-16Fix T98847: missing null check in versioning codeJacques Lucke
It's perfectly legal for `nmd->settings.properties` to be null if there are no properties.
2022-06-16Fix T86076: MPEG Settings Ignored at RenderHamdi Ozbayburtlu
Add a RNA update function for output video codec setting to update properties that are incompatible with defaults. Previously video output bitrate settings were omitted because of the Constant Rate Factor (CRF) default. CRF setting for video codec is only available for H264, MPEG4 and WEBM/VP9 outputs, so for the others changing encoder quality mode to constant bitrate (CBR) as CRF is not supported. Reviewed By: ISS, mano-wii Differential Revision: https://developer.blender.org/D15201
2022-06-16LibOverride: 3DView: simplification and improvements of override creation.Bastien Montagne
This commit: * Removes the popup to choose the root collection when called with a linked object selected (in typical cases there is only one valid option, if more then the operator fails and report to the user). * Ensures that the linked reference of newly overridden collections are also removed from the ViewLayer (i.e. their local parent collections).
2022-06-16ID Type: Sort the items alphabeticallyDalai Felinto
This also renames Hair Curves to Curves. Meaning that until we get rid of the old curve type we will have both of those entires there: * Curve * Curves This rna enum is used among other things in the driver UI to pick which data-block you want the property from.
2022-06-16Fix T98860: VectorProperty type renamed to COORDS (breaking scripts)Campbell Barton
Regression in [0] unintentionally renamed COORDINATES. There was a naming discrepancy when two (nearly) identical arrays, de-duplicating them caused the error. [0]: 94444aaadf238ab2de4226d6b1b66284d479a931
2022-06-16Fix (studio-reported) broken 'system override' filtering in liboverride view ↵Bastien Montagne
of the Outliner. Regression from recent rB717ab5aeaecc.
2022-06-16Cleanup: differentiate region/screen relative coordinatesCampbell Barton
- Avoid ambiguity which caused these values to be confused, use `mval` for region relative mouse coordinates, otherwise `event_xy`. - Pass region relative coordinates to sample_detail_dyntopo & sample_detail_voxel as there is no reason to use screen-space values. - Rename invalid use of mval for screen-space coordinates.
2022-06-16Fix mouse coords for sculpt ignore background click, sample voxel detailCampbell Barton
Both operations used screen-relative coordinates when region-relative coordinates were expected.
2022-06-16GHOST/Wayland: workaround inability to access window positionCampbell Barton
Wayland doesn't support accessing the position making functionality that would map events to other windows fail, sometimes considering windows overlapping when they weren't (as all window positions were zeroed). Disable dragging between windows when accessing the window the position isn't supported.
2022-06-16Fix memory leak plugging in new keyboards in waylandCampbell Barton
2022-06-16Cleanup: return const vector for system & window outputs() methodCampbell Barton
Move the enter/leave logic into methods so the method can return a const vector which isn't to be manipulated from other functions.
2022-06-16Fix error selecting the window scale in waylandCampbell Barton
Regression in [0] caused all output to be considered when updating after monitor outputs changed. [0]: ac2a56d7f3d6d20a0ed24ece11eea33e23d42f2c
2022-06-16GHOST/Wayland: acquire locks before freeing data on exitCampbell Barton
2022-06-16Fix missing free for drag & drop data with GHOST/WaylandCampbell Barton
2022-06-16GHOST/Wayland: account for fractional scale when picking the outputCampbell Barton
Finding the output with the largest scale now checks fractional scaling. While this is only a minor difference in most cases, it makes the scale deterministic instead of depending on the order outputs are added.
2022-06-16Cleanup: quiet compiler warningsCampbell Barton
2022-06-16Fix T98239: During UV Unwrap, create unique indices for each pinned UVChris Blackbourn
Originally reported in T75007. Differential Revision: https://developer.blender.org/D15199