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-09-21File Browser: Manual auto-increase name support for output filepathsDalai Felinto
This functionality was present until Blender 2.80. Basically it adds back the "+" and "-" buttons in the file browser when it stores an output filepath. This is useful for someone rendering multiple versions of an animation (or a composition) to compare. At the moment this is used for the render output, and the File Output node in the compositor. Differential Revision: https://developer.blender.org/D15968
2022-09-21Revert "Cleanup: Fix warning unused variable 'mode' when doing make lite"Dalai Felinto
Sorry, this was working before I rebased. I believe the warning was fixed and the rebase still applied. The commit as it was introduced building problems This reverts commit ae21319d7f7d3e779c25b08d07a1458d6c054560.
2022-09-21Cleanup: Fix warning unused variable 'mode' when doing make liteDalai Felinto
2022-09-21Cleanup: remove vector adaptor data structureJacques Lucke
This was used in early node based particle system development but is not used anymore. The code also didn't match the standards of other data structures in blenlib.
2022-09-21Docs: add notes about wmWindow.eventstate & modifier key checksCampbell Barton
There were undocumented limitations in the current modifier handling that came to my attention while investigating related issues.
2022-09-21Fix module search path for Python on initializationCampbell Barton
Initializing the sys.path on startup attempted to add subdirectories of {BLENDER_SYSTEM_SCRIPTS}: - ./modules/modules - ./modules/startup As the directories aren't expected to exist there is no need to add them. Also improved comments for path searching logic.
2022-09-21Cleanup: spelling in commentsCampbell Barton
2022-09-21Cleanup: unused variable warningCampbell Barton
2022-09-21Fix T101188: Fluid modifier doesn't workHans Goudey
05952aa94d33eeb504fa modified this area incorrectly, transforming vertices outside of the mesh. That would have been fine, but the mesh is used to retrieve the bounding box. Instead just avoid duplicating the positions and normals completely, and avoid using referenced layers just to be extra safe.
2022-09-21Cleanup: Remove BKE_ prefix for local functionsHans Goudey
2022-09-21Fix T101138: remove console spam when hovering over toolbar in uv editorChris Blackbourn
Reviewers: Campbell Barton <ideasman42>, Ryan Inch <Imaginer> Differential Revision: https://developer.blender.org/D16015
2022-09-20Fix T101220: UV proportional editing not working correctly with UV Sync ↵Germano Cavalcante
Selection Regression introduced in rb2ba1cf4b40fc. The `MLOOPUV_VERTSEL` flag only indicates UV selection without sync.
2022-09-20Fix T101208: Missing original index handling in extrude nodeHans Goudey
The extrude node must set the original indices for new faces to "None" in edge mode as well. Same for new edges in vertex mode.
2022-09-20Fix: BMesh to Mesh conversion does not create all necessary layersHans Goudey
Even meshes without any faces must have MPoly and MLoop layers, etc. This caused a crash in the extrude node when the edit mesh had no faces (see T101208). Issue with f94130c94b24ac6578.
2022-09-20Cycles: don't allow negative BSDF weightsBrecht Van Lommel
This doesn't work with path guiding, and likely other features.
2022-09-20Fix T101196: constraint plane failing in side orthographic viewsGermano Cavalcante
Caused due to an inaccuracy when the values of `in` and `out` are too close. The solution is to project the value of `in` directly onto the plane.
2022-09-20Cleanup: Improve consistency when nodes run without OpenVDBHans Goudey
Use a consistent order of expressions and formatting. Also use consistent error message text.
2022-09-20Fix: Group input and output always show in node add menuMiguel Porces
In D10241, both NodeItems for NodeGroupInput and NodeGroupOutput in the were moved from their categories into the 'node_group_items' generator. As the NodeItem.poll() is called by the NodeCategory class and not by the NodeItem class, the poll functions associated with those NodeItems were never called. This should correct that. Differential Revision: https://developer.blender.org/D16013
2022-09-20Sculpt: Fix T100479: Boundary expand crashJoseph Eagar
Face sets were not being initialized. I had also forgotten to remove a dead struct member from SculptBoundary which was being accessed.
2022-09-20Sculpt: Fix memory corruption with reading masks from PBVH_BMESHJoseph Eagar
Feeding -1 to BM_ELEM_CD_GET_VOID_P will not return NULL.
2022-09-20GPencil: Add `offset` parameter to reproject operator Redo PanelAntonio Vazquez
Now it's possible to set an offset in the surface reprojection. Before, this was only possible while drawing, but not in the reproject operator. Differential Revision: https://developer.blender.org/D15610
2022-09-20Cleanup: Strict compiler warningSergey Sharybin
Resolves -Wunneeded-internal-declaration warning generated by Clang.
2022-09-20Animation: Fix operator properties for redo panelRedMser
After the redo panel is added to animation editors in D14960, many operators have now been adjusted to appear and function correctly. A full list of changes is tracked in T98195. This patch only includes actual usability fixes. It does not do any changes for the user's convenience, like adding other helpful properties to operators. This can be done in a follow-up patch. Reviewed By: sybren Maniphest Tasks: T98195 Differential Revision: https://developer.blender.org/D14977
2022-09-20Animation: Add redo panel to Dopesheet and NLARedMser
Add the Redo panel to the dopesheet & NLA editors. This also implicitly adds it to the timeline editor, since it's a kind of action editor internally. This feature is needed for changing advanced properties of animation operators, such as select grouped (see D14811). But it can also be useful for existing operators, like precise keyframe position tweaking. Changes are basically the same as in D6286 (which added the redo panel for Graph Editor). Some operators have internal properties that should be hidden. A full list can be found in T98195. These will be fixed in a follow-up patch. Reviewed By: sybren Differential Revision: https://developer.blender.org/D14960
2022-09-20Move workspace.c to C++Jacques Lucke
Differential Revision: https://developer.blender.org/D16020
2022-09-20Fix T101214: hidden link can cause cycle in node treeJacques Lucke
Links that are linked to unavailable sockets should be ignored.
2022-09-20Fix T101201: Missing filter from outliner headerPhilipp Oeser
This was missing in Blender File & Orphan Data view. Typo in rBb5fc8f611e39. Maniphest Tasks: T101201 Differential Revision: https://developer.blender.org/D16016
2022-09-20Geometry Nodes: improve evaluator with lazy threadingJacques Lucke
In large node setup the threading overhead was sometimes very significant. That's especially true when most nodes do very little work. This commit improves the scheduling by not using multi-threading in many cases unless it's likely that it will be worth it. For more details see the comments in `BLI_lazy_threading.hh`. Differential Revision: https://developer.blender.org/D15976
2022-09-20Fix misleading operator name in the dope-sheet and action editorSebastian Parborg
The operator did not set the any extrapolation mode of the individual keyframes, it sets it for the whole f-curve. Change the operator name to reflect that.
2022-09-20Cleanup: add hint that typedef is used as compiler bug workaroundJacques Lucke
https://developercommunity.visualstudio.com/t/Alias-template-inside-fold-expression-fa/10040507
2022-09-20Cleanup: quite compiler warningJacques Lucke
Warning: P3204.
2022-09-20Fix T101001: crash setting texture node active in certain casesPhilipp Oeser
Code from {rBb0cb0a785475} assumed a texture node `node->id` would always be an image. That is not true though: - could be an object (as reported here with the Point Density node) - could be a textblock (as in the IES Texture node) Acting on these would crash when doing `BKE_image_signal` on them. Now check node id is an image and do nothing otherwise. Also check if an image is actually set in these nodes (if none is, the Image Editor is now also untouched, previously the image in the Image Editor was "cleared" here [set to NULL] -- which does not seems very beneficial) Maniphest Tasks: T101001 Differential Revision: https://developer.blender.org/D15943
2022-09-20ViewLayer: fix missing sync in object APIs (fixes T101128, T101204)Aras Pranckevicius
Since D15885, most (all?) python based importers are failing with an error like RuntimeError: Error: Object 'Cube' can't be selected because it is not in View Layer, whenever they try to mark just-created objects selected via obj.select_set(True). Happens at least in FBX and (legacy) OBJ importers -- effectively they end up creating just the first imported object before failing with this exception. Looks like BKE_view_layer_synced_ensure calls were missing before BKE_view_layer_base_find in rna_object_api.c. Reviewed By: Campbell Barton Differential Revision: https://developer.blender.org/D16004
2022-09-20Painting: Don't calculate rake rotation when texture is not set.Jeroen Bakker
Currently the rake rotation is calculated when the angle mode is set. Even when the texture isn't valid. This change will only calculate the rake rotation when the texture is valid and the angle mode is set.
2022-09-20GHOST/Wayland: refactor modifier handling on window activationCampbell Barton
GHOST_SystemWayland::getModifierKeys() now returns the correct modifier keys held instead of guessing that both left/right modifiers were held.
2022-09-20CMake: fail to build with unsupported versions of wayland-scannerCampbell Barton
When WITH_GHOST_WAYLAND_DYNLOAD is enabled.
2022-09-20Cleanup: quiet warningCampbell Barton
2022-09-20GNUmakefile: fix error showing final message with the 'dash' shellCampbell Barton
The bpy module check wasn't working with dash, use posix compliant check for empty string.
2022-09-20Cleanup: Move mesh_mapping.c to C++Hans Goudey
2022-09-20UV: extend custom grid sizes to set each axis separatelyChris Blackbourn
For example, allows a custom UV grid size of 4 x 12. TODO: Fix snapping with custom UV grid sizes. Manifest Tasks: T78391 Differential Revision: https://developer.blender.org/D16000
2022-09-20Cleanup: spellingChris Blackbourn
2022-09-19Nodes: Add node group assets to search menusHans Goudey
Currently node group assets are supported, but using them by dragging from the asset browser is cumbersome. This patch adds all node group assets from user asset libraries and the current file libraries to the add node search menu and the link drag search menu. Node groups added through the search will have their "options" hidden, meaning the data-block selector is displayed. This helps keep the UI clean, and the selector shouldn't be necessary anyway. To make that possible, metadata like the node tree type and its inputs and outputs has to be saved in the file. This requires re-saving the files that contain the assets with the patch applied. The node add search operator is moved from Python to C++ to ease development and allow more flexibility. It supports a tooltip that gives the description of assets. Currently the node groups are added with the asset system's existing "Append & Reuse" behavior. It's likely that linking should be possible in the future too, but for now the idea is to use the more foolproof option that doesn't create dependencies between files. Because loading assets can potentially take a long time, the search menu refreshes its items as new assets are loaded. However, changing the search field is necessary to see the update. Differential Revision: https://developer.blender.org/D15568
2022-09-19Cleanup: Move versioning_300.c to C++Hans Goudey
2022-09-19Geometry Nodes: Distribute Points in VolumeIyad Ahmed
This commit adds a node to distribute points inside of volume grids. The "Random" mode usese OpenVDB's "point scatter" implementation, and there is also a "Grid" mode for uniform distributions. Both methods operate on all of the float grids in the volume, using every voxel with a value higher than the threshold. The random method is not stable as the input volume deforms. Based on a patch by Angus Stanton (@abstanton), which was based on a patch by Kenzie (@kenziemac130). Differential Revision: https://developer.blender.org/D15375
2022-09-19GPencil: Make formatAntonio Vazquez
Missing in previous commit
2022-09-19GPencil: Cut Extended lines in Fill tool when collideAntonio Vazquez
Before, the lines could be extended endless, but this added too noise. Now, the lines are not extended more if collide. Before: {F13504186} After: {F13504187} Reviewed By: mendio, frogstomp Differential Revision: https://developer.blender.org/D15992
2022-09-19Cleanup: Improve comment for curve component legacy curvesHans Goudey
2022-09-19PyGPU: call 'GPU_shader_bind' in 'GPUShader.uniform_' methodsGermano Cavalcante
This simplifies python code. When we call a method like shader.uniform_float("color", (1,1,1,1)), we expect the shader's uniform to be updated regardless of whether the shader is bound or not. And `batch.draw()` already calls `GPU_shader_bind` inside. Differential Revision: https://developer.blender.org/D15929
2022-09-19Move overlay engine to C++Jacques Lucke
This just makes the minimum changes to make the files compile.
2022-09-19DNA: Remove unnecessary studio light & light probe struct paddingsJulian Eisel