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-05-23Fix T98251: EEVEE: Regression: Wrong normalmaps on scaled objectsClément Foucault
This was caused by a missing `normalize`.
2022-05-23EEVEE: Fix unreported broken normal map node modesClément Foucault
A compilation error was making it impossible to use normal map modes other than tangent.
2022-05-23Cleanup: Early-exit in button handling code, minor cleanupsJulian Eisel
This should decrease cognitive load because: - Intention is more explicit - Shorter visual scope of branches (no need to search for matching closing brackets and `else` blocks) - Visually less busy code because condition-checks and code that "actually does things" are separated, with less indentation - Avoids chaining together a bunch of conditions to a single `if` Also: Use `const`, correct comment placement, whitespace improvements.
2022-05-23Merge branch 'blender-v3.2-release'Clément Foucault
2022-05-23DRW: Fix signed/unsigned mismatches in shader codeJohannes J
Fix the following error messages on Blender startup since commit 308a12ac647d6f9b4ef2b6c403903e0aeb65a571. This commit fixes T98194. Reviewed By: fclem Differential Revision: https://developer.blender.org/D15007
2022-05-23Merge branch 'blender-v3.2-release'Clément Foucault
2022-05-23Fix T98128: EEVEE: Regression: Inverted surface normal on MacOS Intel GPUClément Foucault
This seems to be caused by the `!` used in conjunction with a macro. Using the macro directly as condition does not exhibit this issue.
2022-05-23Fix T98196: Crash when moving tweaked NLA strip with empty track belowSybren A. Stüvel
`BKE_nlastrip_find_active()` and `update_active_strip()` now do a more thorough search for the active strip, by also recursing into meta-strips. There were some assumptions in the NLA code that the active strips is contained in the active track. This assumption turned out to be false: when there is a meta-strip, the active strip could be inside that, and then it's not contained in `active_track.strips` directly. Apart from the above, there are other situations in which the track pointed to by `AnimData::act_track` does *not* contain the active strip (even indirectly). Both these cases can happen when the transform system is moving a strip that's in tweak mode. Entering tweak mode doesn't just search for the active track/strip, but also falls back to the last-selected ones. This means that the track/strip pointers & flags can be out of sync with what's being tweaked/transformed. Because of this, the assumption that there is any relation between "active strip" and "active track" has been removed from the `update_active_strip()` function. All this searching could be prevented by passing the `AnimData` to the code that duplicates tracks & strips. That way, when the active track/strip is dup'ed, the `AnimData` pointers can be updated as well. That would require more refactoring and thus could introduce other bugs, so that's left for later.
2022-05-23GPencil: A Ping Pong effect to Time modifierAleš Jelovčan
This patch adds 4th option to Time offset modifier Modes. It loops from start frame to end frame and then back to start in reverse direction. In other words it is a combination of Normal and Reverse mode. Especially with offset control it adds the ability to create easy looping animations such as cheering crowds, flowers opening and closing at different offsets. Reviewed By: #grease_pencil, antoniov, pepeland, mendio Differential Revision: https://developer.blender.org/D14965
2022-05-23Merge remote-tracking branch 'origin/blender-v3.2-release'Dalai Felinto
2022-05-23Cleanup: clarify what is scene linear color space in conversion conversionBrecht Van Lommel
* Rename ambiguous rgb to scene_linear in some places * Precompute matrices to directly go to scene instead of through XYZ * Make function signatures more consistent
2022-05-23Python API: add mathutils.Color functions to convert color spacesBrecht Van Lommel
Between scene linear and sRGB, XYZ, linear Rec.709 and ACES2065-1. And add some clarifications about color spaces in the docs. Fixes T98267 Ref T68926 Differential Revision: https://developer.blender.org/D14989
2022-05-23Fix wrong mouse tolerance in mask editorSergey Sharybin
There are two issues. The biggest one was that a pixel value was used to compare a squared distance meaning the tolerance was too strict. The other issue was that the tolerance in pixels was different to what the tracking mode is using. The user-level change is that now it should be easier to tweak the mask shape.
2022-05-23Cleanup: Unused field in sculpt DeleteOperationSergey Sharybin
2022-05-23Fix T97237: dragging custom node group asset adds broken nodeJacques Lucke
Differential Revision: https://developer.blender.org/D15013
2022-05-23Fix T98305: Image.save not working for generated images with filepathBrecht Van Lommel
This is a place where the API function and operator should differ, for the API manually setting the filepath and then saving should work. For the UI there is no filepath visible, so it should open Save As even if there was a filepath set for example from before changing an image type to Generated.
2022-05-23Fix T98283: Regression: crash when opening file that has Collision modifier ↵Bastien Montagne
on liboverride object Some RNA property update callbacks can already generate such modifier, and only one is allowed per object, so had to adapt code actually adding new modifiers in liboverride apply codebase.
2022-05-23Fix T98316: geometry nodes stop updating after duplicationJacques Lucke
This was a missing depsgraph update.
2022-05-23Fix T98258: Duplicated last vertex after GPencil sample.YimingWu
Also fixed an unreported issue of incorrect interpolation of thickness. Reviewed By: Aleš Jelovčan (frogstomp), Antonio Vazquez (antoniov) Differential Revision: https://developer.blender.org/D15005
2022-05-23Fix T98231: missing update when material output is in groupJacques Lucke
Differential Revision: https://developer.blender.org/D14998
2022-05-23Fix T98283: Regression: crash when opening file that has Collision modifier ↵Bastien Montagne
on liboverride object Some RNA property update callbacks can already generate such modifier, and only one is allowed per object, so had to adapt code actually adding new modifiers in liboverride apply codebase.
2022-05-23Fix T98316: geometry nodes stop updating after duplicationJacques Lucke
This was a missing depsgraph update.
2022-05-23LineArt: Fix adjacent edge sorting.YimingWu
The sorting end element should be `start+len` not `start+len-1`.
2022-05-23Fix T98258: Duplicated last vertex after GPencil sample.YimingWu
Also fixed an unreported issue of incorrect interpolation of thickness. Reviewed By: Aleš Jelovčan (frogstomp), Antonio Vazquez (antoniov) Differential Revision: https://developer.blender.org/D15005
2022-05-23Fix T98101: Handle single point curves in delete brushHans Goudey
The 3D brush utility and the delete brush only considered segments, so they did not handle single points. Fix by adding special cases for single point curves. Differential Revision: https://developer.blender.org/D14944
2022-05-23Fix: Sample pressure properly for 3D curves sculpt brushesHans Goudey
For the "Sphere" 3D brushes, the depth and radius are only sampled at the beginning of the stroke. This didn't work when tablet pressure is used as a factor for the brush radius. Now the 3D brush depth is found with the max radius (as if the pressure was 1.0), but the pressure factor is used afterwards. Restructuring the way the brush executors stored the radius made the change a bit clearer, which is where most of the diff comes from. Differential Revision: https://developer.blender.org/D15002
2022-05-23Fix T98231: missing update when material output is in groupJacques Lucke
Differential Revision: https://developer.blender.org/D14998
2022-05-23Merge branch 'blender-v3.2-release'Jeroen Bakker
2022-05-23Fix T98321: Image.update doesn't update the image editor.Jeroen Bakker
Missing call to partial update.
2022-05-23Cleanup: remove "texture" from ED_mesh_uv_texture_* funcitonsCampbell Barton
This name made sense when UV's and textures were stored in the same layer (MTFace & TFace).
2022-05-23Merge branch 'blender-v3.2-release'Aaron Carlisle
2022-05-23Compositor: Fix Map Range node To/From Max default valueAaron Carlisle
Mistake from rB5ef5a9fc24668aa264fe0558db9c0fb1246aa37f Fixes T98322
2022-05-22Fix T98320: GPencil Crash with Length and Build ModifiersAntonio Vazquez
The length modifiers creates a NULL strokes and this is not handled by Build modifier.
2022-05-22Cleanup: Fix build error after previous commitHans Goudey
I'm not sure how that happened, sorry for the noise.
2022-05-22Cleanup: Use const argumentsHans Goudey
2022-05-22Cleanup: Remove unused functionHans Goudey
Mesh "MFace" is deprecated and shouldn't be used in any new code anyway.
2022-05-22Cleanup: fix wrong typeJacques Lucke
It's a bit surprising that this compiled. That's probably due to the `GField` constructor, to be investigated!
2022-05-22GPU subdiv: smoothly interpolate orco layerKévin Dietrich
This uses the recently introduced evaluator's vertex data to smoothly interpolate original coordinates instead of using linear interpolation. The orcos are interpolated at the same time as positions and as such, the specific subdivision routine for the orco extractor has been removed. The patch evaluation shader uses a definition to enable code specific to orco evaluation. Since the orco layer may not have been requested on first render, and since orco data is now stored in the OpenSubDiv evaluator, the evaluator needs to be recreated if an orco layer is suddenly available. For this, a callback to check if the evaluator has the data was added. This is added to the evaluator as the `Subdiv` cache stored in the modifier is invalidated less often than the Mesh batch cache and so leads to fewer evaluator recreations. Differential Revision: https://developer.blender.org/D14999
2022-05-21Cleanup: Remove unused scrollbar drawing flagJulian Eisel
Apparently this was used for progressbar drawing, which doesn't share the code anymore.
2022-05-21UI Code Quality: Resolve frankenstein bit-flag usage for widget drawingJulian Eisel
Previously we would pass button state and draw information to widget draw callbacks in a rather hacky way. Some specific flags from `uiBut.flag` were masked out, so their bits could be reused for also passing `uiBut.drawflag` in the same int. Instead this commit introduces a state-info struct that can properly hold all the relevant data. This has the advantage that it's now easier to introduce new state data that needs to be accessible in the widget callbacks. Since we are running out of button flags, we plan to reorganize button flags, and split them up into multiple bitfields. In the widget drawing code, this would have been a hassle earlier. Also had to add a new widget callback to draw blocks as widgets (popup backgrounds), since that would pass block flags where we would usually pass button flags. This wasn't nice, now it's separated more clearly.
2022-05-20Geometry Nodes: String to Curves rename Max WidthErik
This patch changes the Text Box Width socket to always have that label instead of switching to "Max Width" when Overflow mode is picked. Bug report: T97060 Differential Revision: https://developer.blender.org/D14909
2022-05-20Fix wrong USD image color space export with non-default OpenColorIO configBrecht Van Lommel
The names of color spaces in OpenColorIO configs can be arbitrary, so don't use hardcoded names from our default config.
2022-05-20UI: rename Hue/Saturation node to Hue Saturation Value in shaders and texturesDaniel Salazar
This makes it easier to search for and consistent with compositor nodes. Differential Revision: https://developer.blender.org/D14914
2022-05-20UI: Get rid of redundant UI_BUT_IMMEDIATE button flagJulian Eisel
This flag was used to activate the hotkey input buttons (e.g. for "Assign Shortcut") when opened in a popup. Since this was added, other more generalized ways of getting this same behavior were implemented. Had to tweak the hotkey button event handling a bit, but it seems to behave exactly as before now.
2022-05-20Cleanup: don't use variable name that matches type aliasJacques Lucke
2022-05-20Cleanup: Further simplification of loop syntax for curve segmentsHans Goudey
The same changes as 019681b9841d7e34bac56211d645cf0497f8e9cf.
2022-05-20Curves: Use only current brush location for delete brushHans Goudey
Currently the delete brush and some other brushes use the line segment from the current brush position to the previous position to find curves to interact with. However, this doesn't work well with more advanced stroke settings that purposefully use non-contiguous brush sample locations. This commit makes the delete brush only use the current sample location. Differential Revision: https://developer.blender.org/D14992
2022-05-20Curves: Support pressure in sculpt brushesHans Goudey
Multiply the radius and strength of sculpt brushes by the pressure when "use pressure" is turned on. The brush system isn't responsible for this, so the pressure needs to be stored in `StrokeExtension`. Differential Revision: https://developer.blender.org/D14996
2022-05-20LibOverride: Add option to Hierarchy Creation to get all data user-editable ↵Bastien Montagne
by default. Avoids having to manually enable data-blocks for user-edition when you do not care about what should be edited by whom. Similar to default behavior before introduction of system overrides (aka non-user-editable overrides).
2022-05-20Cleanup: Simplify loop syntax for curve pointsHans Goudey