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-03-25Cleanup: use count or num instead of nbrCampbell Barton
Follow conventions from T85728.
2022-03-25Cleanup: use array syntax for sizeof, zero before float suffixCampbell Barton
2022-03-25Cleanup: spelling in comments, stringsCampbell Barton
2022-03-25Cleanup: sort cmake file listsCampbell Barton
2022-03-25Cleanup: unused warningsCampbell Barton
2022-03-25Geometry Nodes: Multi-thread creation of selection from fieldHans Goudey
When boolean fields are evaluated and used as selections, we create a vector of indices. This process is currently single-threaded, but 226f0c4fef7e7792c added a more optimized multi-threaded version of this process. It's simple to use this in the field evaluator. I tested this with the set position node and a random value node set to boolean mode on a Ryzen 2700x: | | Before | After | Improvement | | 10% Selected | 40.5 ms | 29.0 ms | 1.4x | | 90% Selected | 115 ms | 45.3 ms | 2.5x | In the future there could be a specialized version for non-span virtual array selections that uses `materialize` to lower virtual call overhead. Differential Revision: https://developer.blender.org/D14436
2022-03-25BLF Cleanup: Use FreeType Enum FT_Err_OkHarley Acheson
Replace comparisons of FT_Error against 0 with FT_Err_Ok instead. See D14052 for more details. Differential Revision: https://developer.blender.org/D14052 Reviewed by Campbell Barton
2022-03-25ImBuf: Add support for WebP image formatAaron Carlisle
Currently only supports single image frames (no animation possible). If quality slider is set to 100 then lossless compression will be used, otherwise lossy compression is used. Gives about 35% reduction of filesize save when re-saving splash screens with lossless compression. Also saves much faster, up to 15x faster than PNG with a better compression ratio as a plus. Note, this is currently left disabled until we have WebP libs (see T95206) For testing precompiled libs can be downloaded from Google: https://storage.googleapis.com/downloads.webmproject.org/releases/webp/index.html Differential Revision: https://developer.blender.org/D1598
2022-03-24Cleanup: Optimize viewport view data creationJesse Yurkovich
Each time the user clicks the viewport 2 sets of engine views are created. Each set is currently composed of 8 view objects, each of size 592 bytes. Because space is not reserved in the vector that holds them, several unnecessary re-allocation/copy cycles occur as the vector resizes and the total allocation load is 8880 bytes. This happens twice. Reduce to just the allocations necessary and with exactly 4736 bytes allocated for each set - Before: 8 allocations and 8 deallocations totaling 17760 bytes - After: 2 allocations and 2 deallocations totaling 9472 bytes Reviewed By: fclem, jbakker Differential Revision: https://developer.blender.org/D13782
2022-03-24Fix T96756: Blender hanges on rendering after file save, after recent changesBrecht Van Lommel
2022-03-24Fix: Missing "Hair" to "Curves" renameHans Goudey
Missed in fe1816f67fbc6aaf383ec
2022-03-24Fix: Build error with flag usage and strict warningsHans Goudey
2022-03-24Outliner: Don't show empty base elements in the library overrides modeJulian Eisel
In the library overrides mode, in some situations there would be empty base elements like "Collections" or "Objects". Don't show them, it's confusing wihout use. Code just failed to consider that case.
2022-03-24Outliner: Don't draw library overrides indicator for override buttonsJulian Eisel
All the buttons in the Library Overrides display mode would be shown in cyan, indicating that they are library overrides. Given that this is solely what this display mode is about, the indicator is just redundant, confusing (why are the buttons purple?) and looks weird. Part of T95802. Reviewed by: Bastien Montagne Differential Revision: https://developer.blender.org/D14416
2022-03-24Fix: Volume grid duplication on USD import.Michael Kowalski
Fix provided by Piotr Makal in patch D14204. This patch fixes volume grid duplication which was occurring during importing USD files. This was caused by calling BKE_volume_grid_add twice per grid (excluding 'density' grid) for the same Volume object: (1) in USDVolumeReader::read_object_data and (2) later in BKE_volume_load. Differential Revision: https://developer.blender.org/D14204
2022-03-24Outliner: Remove list of library overrides from general display modesJulian Eisel
There is a dedicated Library Override display mode now, and showing these elsewhere just adds noise and makes the code problematic to maintain (since the same element hierarchy will be used in two entirely different contexts). The corresponding filter settings are removed too. Part of T95802. Reviewed by: Bastien Montagne Differential Revision: https://developer.blender.org/D14411
2022-03-24Outliner: Don't display library overrides from linked filesJulian Eisel
Instead of having the "Current File" and then the individual libraries containing indirect library overrides in the Library Overrides display mode, only show what's in the current file. Agreement was that this isn't very useful in this view, we may want to add it to the Hierarchy view though (see T95802). Part of T95802. Also expands the top level ID type items ("Objects", "Materials", ...) by default. See D14410 for details. Reviewed by: Bastien Montagne Differential Revision: https://developer.blender.org/D14410
2022-03-24Tracking: Fix incorrect angle calculation on marker slideSergey Sharybin
Now the mouse cursor will exactly follow the tilt/scale sliding area.
2022-03-24Tracking: Fix jump when sliding tild/scale of markerSergey Sharybin
Was a mistake in coordinate handling: need to take possible offset from the sliding area. Mouse us still not fully perfectly follows changes of the tilt slide area, but that is a separate issue.
2022-03-24GPencil: New Envelope ModifierHenrik Dick
This new modifier creates a shape known as envelope. It connects all points that are n points apart. There is also a mode which fits a single stroke to the envelope shape that is determined by that rule. For more details, refer to the patch. Reviewed By: NicksBest, antoniov, frogstomp, mendio Differential Revision: http://developer.blender.org/D14341
2022-03-24Complex Solidify: handle vertex creasesHenrik Dick
This implements the same interpolation method as for bevel weights now for vertex and edge creases as well to improve the flexibility. Differential Revision: http://developer.blender.org/D14170
2022-03-24Outliner: tweak handling of liboverrides in delete code.Bastien Montagne
Essentially, we only allow deletion of hierarchy roots of liboverrides, when hierarchy deletion option is enabled. Also add some checking code in the generic, non-object/collection ID delete code, to prevent any deletion of liboverrides that would be part of a hierarchy.
2022-03-243D View: preference to disable selection cycling on first clickCampbell Barton
Object mode selection does a kind of cycling that excludes the active selected object. This is separate from regular selection cycling which is enabled when clicking multiple times without moving the cursor. This has the down-side that clicking on an object to drag it always selects the object behind it (in the case of overlapping objects). Since object mode selection is fundamental functionality, this is exposed as an experimental preference for user feedback & testing. See T96752 for details.
2022-03-24Correct syntax error for MSVCCampbell Barton
2022-03-24Cleanup: clang-formatDalai Felinto
2022-03-24GPencil: lower bounds for gap in dot dash modifierHenrik Dick
This patch maximizes the possible bounds for the dash and gap parameters in the dot dash modifier. This makes e.g. chopping up lines without gaps possible. Differential Revision: http://developer.blender.org/D14428
2022-03-24Keymap: experimental preference always use "Mouse Select & Move"Campbell Barton
This was already as a preference for the tweak tool, this preference enables the option for all selection in the 3D view & UV editor. This extends on changes from T96544.
2022-03-24Cleanup: use struct member identifiers for initializationCampbell Barton
Relying on the order of struct members can be error prone. Update other instances of ObjectsVisibleIteratorData initialization for MSVC/C++.
2022-03-24Cleanup: use "filepath" instead of "filename" for full pathsCampbell Barton
Reserve "filename" when only the name component is used.
2022-03-24Cleanup: localize finding the nearest non-active object on selectionCampbell Barton
Move this into it's own block since it only needs to run if the nearest object is currently selected & active.
2022-03-24View 3D: Don't prioritize pose objects unless in pose-modeCampbell Barton
Always prioritizing bones caused pose-objects to be selected in object mode even if they were behind other objects. Now prioritizing pose bones is limited to pose mode.
2022-03-243D View: order by depth when selecting cycles through objectsCampbell Barton
When cycling through objects select the nearest first instead of using the order of object-bases in the view_layer. This matches how pose selection works.
2022-03-24Cleanup: Typo, improve variable namesHans Goudey
`accumulate_counts_to_offsets` wasn't just used for the point domain.
2022-03-24BLI: Add utility for tacking average and min runtimeHans Goudey
This is useful to save time manually averaging many timing results. The minimum is included because often it can be more stable than an average, and it can help to expose calls from other contexts with lower times that would make the average useless. Differential Revision: https://developer.blender.org/D14417
2022-03-24Geometry Nodes: Improve performance writing to vertex groupsHans Goudey
In a test file from T96282, this commit reduces the runtime of the delete geometry node from 82 ms to 23 ms, a 3.6x improvement. Writing to vertex groups in other cases should be faster too. The largest improvement comes from not writing a new weight of zero if the vertex is not in the group. This mirrors the behavior of custom data interpolation in `layerInterp_mdeformvert`. Other improvements come from using `set_all` for writing output attributes and implementing that method for vertex groups. I also implemented `materialize` methods. Though I didn't obverse an improvement from this, I think it's best to remove virtual method call overhead where it's simple to do so. The test file for the delete geometry node needs to be updated. These methods could be parallelized too, but better to do that later. Differential Revision: https://developer.blender.org/D14420
2022-03-24Cleanup: Clang tidyHans Goudey
- Deprecated headers - Else after return - Inconsistent parameter names (I used the most recently modified) - Raw string literals
2022-03-24Cleanup: Adjust naming in new curves codeHans Goudey
Rename "size" variables and functions to use "num" instead, based on T85728 (though this doesn't apply to simple C++ containers, it applies here). Rename "range" to "points" in some functions, so be more specific. Differential Revision: https://developer.blender.org/D14431
2022-03-24UDIM: Improve tile format detection in filenamesJesse Yurkovich
There are some filenames where the UDIM pattern guessing would fail unnecessarily. The user can fix these up afterwards but it would be nicer if they would detect properly in the first place. Examples: `test.1001.ver0023.png` would guess wrong since it uses the image sequence detection code which finds the first sequence from the end. It would guess `filename.1001.ver<UDIM>.png` `uv-test.u1_v2.png` would fail detection due to a bug in the processing. Make this much more reliable and add tests for the most important tile related get/set/detection functions. Differential Revision: https://developer.blender.org/D14320
2022-03-24Cleanup/fix wrong enum items for object.gpencil_modifier_addKévin Dietrich
No functional changes as the actual list used for display is generated at runtime via a callback.
2022-03-24Cleanup: extra property update for ShaderFxGlow.opacityKévin Dietrich
2022-03-24Cleanup: remove debug printsBrecht Van Lommel
2022-03-24Fix missing updates for external render engines rendering tilesBrecht Van Lommel
For render image buffers to be acquired, a lock must be provided. Also fixed wrong usage of release, it must always be called regardless if the returned image buffer is NULL.
2022-03-23Cleanup: add const qualifierKévin Dietrich
This adds a const qualifier to some code path in the Alembic and USD importers. More could be added elsewhere. This change is done as it will be required when GeometrySets are supported and helps keeping diff noise in the patch to a bare minimum.
2022-03-23Cleanup: use nullptrKévin Dietrich
2022-03-23UI: Correct error message wordingAaron Carlisle
Fixes T96724
2022-03-23Cleanup: delete unused ViewMapIO files in FreestyleYuki Hashimoto
ViewMapIO.h is only included in Controller.cpp init_options(). However, g_models_path and g_flags set here are never used elsewhere. Therefore, ViewMapIO files can be deleted without affecting anything. Differential Revision: https://developer.blender.org/D14423
2022-03-23Curves: improve Comb brushJacques Lucke
New supported features: * 3D/spherical brush that samples a good position on the curves. * Falloff. The custom falloff curve mapping is not yet available in the ui because that requires some more ui reorganization. This is better done when we have a better understanding of what settings we need exactly. Currently, the depth of the 3d brush is only sampled once per stroke, when first pressing LMB. Sometimes it is expected that the depth of the brush can change within a single brush. However, implementing that in a good way is not straight forward and might need additional options. Therefore that will be handled separately. Some experimentation results are in D14376. Ref T96445. Differential Revision: https://developer.blender.org/D14376
2022-03-23Revert "Fix T96728: 'Automatic Constraint' using the wrong orientation"Germano Cavalcante
This reverts commit 6cc83f9079de11ddb53af5bab3e0442a234aadb2. That commit removed the feature of cancel the 'Auto Constraint' if it is enabled without drag.
2022-03-23Fix T96728: 'Automatic Constraint' using the wrong orientationGermano Cavalcante
If the `Automatic Constraint` modifier was activated while an axis constraint was already set, the orientation used would be the default orientation of the mode and not that of the scene. This was because the `initSelectConstraint` function was not called in this case and the `Automatic Constraint` mode was enabled by other indirect means So the solution is to call `initSelectConstraint` in either case and remove these "indirect means" of enabling `Automatic Constraint`.
2022-03-23Fix build error on GCC after recent changesBrecht Van Lommel