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-14Cleanup: Remove duplicate Bake modifier codeAntonio Vazquez
This patch remove all duplicate code for the same Bake modifier logic. Still some modifiers need custom bake functions and cannot use this generic bake.
2022-03-14Fix dead-lock in movie cacheSergey Sharybin
Steps to reproduce: - Add image sequence to movie clip editor. - Set cache limit to a low value in the user preferences. - Playback until old frames starts to be removed from cache. - Jump to the beginning of the image sequence. The reason of dead-lock comes from two factors: - Due to global nature of the cache limiter calls needs to be guarded with locks. - Image buffers stored in the cache can have their own cache (which is used for color management). Didn't find a better solution than to use recursive lock. Kind of makes sense since the thread-guardable resource is recursive (moviecache can have nested moviecaches). Differential Revision: https://developer.blender.org/D14331
2022-03-14Convert moviecache to C++Sergey Sharybin
2022-03-14Cleanup: Deduplicate code in Multiply modifierAntonio Vazquez
2022-03-14Cleanup: Make more obvious from the name that function is not publicSergey Sharybin
2022-03-14Revert "Animation: Sensible frame range for motion paths"Sybren A. Stüvel
This reverts commit 1558b270e9fcbc2e23fa248b0e7e770dddae155c. An earlier commit (rB101fadcf6b93c) introduced some new functionality, which was overlooked in reviewing this commit & got broken. Will re-commit after the issue has been fixed. Ref: D13687
2022-03-14GPencil: Fix offset modifier negative scale thicknessHenrik Dick
If the scale in the offset modifier was set to a value lower than -1, the object would get mirrored. The problem was, that the thickness was set to 0 by that. This fix makes the thickness calculation only use the absolute values. Differential Revision: http://developer.blender.org/D14324
2022-03-14Fix T96402: fix case when material output is contained in node groupJacques Lucke
For now just assume that a node group without output sockets is an output node. Ideally, we would use run-time information stored on the node group itself to determine if the group contains a top-level output node (e.g. Material Output). That can be implemented separately. In the larger scheme of things, top-level outputs within node groups seem to break the node group abstraction and reusability a bit.
2022-03-14Fix T96395: NDOF entries prevent loading of custom keymaps in 3.2Campbell Barton
Even though the default key-map didn't use NDOF types some key-maps did.
2022-03-14Fix T96396: cannot set active node group output with PythonJacques Lucke
This is essentially the same fix as in rB22a341d9d8d3d337f79df228ab2e4e0726f81430.
2022-03-14Fix T96378: B-Bone selection fails in pose-modeCampbell Barton
Regression in 3267c91b4d5caab7da8aef071a446dd2e86f86a9.
2022-03-14WM: avoid hard coded modifier key checks in object.hide_collectionCampbell Barton
These checks aren't always valid when there are multiple events in the queue.
2022-03-14Cleanup: use size_t for BLF text API functionsCampbell Barton
Also minor cleanup to txt_sel_to_buf: - Use memcpy instead of strncpy as the strings don't contain nil bytes. - Replace while loops with for loops.
2022-03-14Cleanup: spellingCampbell Barton
2022-03-14Fix mistake in 4c951bfa829ed123b57c33e7821569f283658fd9Campbell Barton
Removed WITH_SYSTEM_GLEW by mistake, thanks to @The_Orb for spotting.
2022-03-14Fix T96267: Sidebar Tab Font Size CorrectionHarley Acheson
Correction to the calculation of font size used for the tabs on the Sidebar so that they are always the same size as other content on the panel. See D14322 for more details. Differential Revision: https://developer.blender.org/D14322 Reviewed by Brecht Van Lommel
2022-03-14Cleanup: Use helper variable, const argumentHans Goudey
2022-03-14Curve: Store NURBS basis cache as a single vectorHans Goudey
Instead of allocating a vector of the basis weights cache for each evaluated point, allocate a single vector for all of the weights. This should reduce memory usage by avoiding the overhead of storing many vectors. I noticed a small performance improvement to evaluated position calculation with an order of 5, which is larger than `Vector`'s default inline buffer capacity. This change is possible because of previous commits that made the basis cache for each evaluated point always have the same "order" size.
2022-03-14Cleanup: Simplify NURBS basis cache argumentsHans Goudey
Only pass a mutable span and a return argument to the calculation function, so it's simpler and doesn't worry about where either are stored.
2022-03-14Curve: Remove temporary buffer during NURBS evaluationHans Goudey
Currently a single buffer is used as working space for all evaluated points. In order to make evaluations more independent, opening options like multi-threading in the future, instead use a separate array for each call. Using an inline buffer capacity higher than the default allows a few percent performance improvement, and removes allocations for every evaluated point.
2022-03-14Cleanup: Remove unnecessary NURBS optimizationHans Goudey
The step after calculating the NURBS basis for a single evaluated point trimmed extra zeroes from the weights. However, in practice this rarely did anything, only for the first and last evaluated point of certain knot configurations. Remove it in order to simplify code. Also use a separate span for the result, to clarify its length.
2022-03-14 UI: Fix incoherent brush size in popover menu and brush settingsOctave C
Previously, the popover menu in sculpt/texture paint mode did not take into account the `UnifiedBrushSettings` for the unit. To fix this, the behavior of `class _draw_tool_settings_context_mode` is matched by checking the same conditions when setting up the UI of the right-click popover menu. Fixes T81616 Reviewed By: #sculpt_paint_texture, pablodp606 Maniphest Tasks: T81616 Differential Revision: https://developer.blender.org/D9168
2022-03-14UI: Fix Label alignment in top barYevgeny Makarov
Label alignment in top bar by using `ui_text_icon_width_ex` instead of `w_hint` Old: {F12733743} New: {F12733742} Fixes T61558 Reviewed By: Severin Maniphest Tasks: T61558 Differential Revision: https://developer.blender.org/D13552
2022-03-13GPencil: Simplify modifier minimal vert count fixHenrik Dick
Lower the minimal vert count for all simplify modes. Differential Revision: http://developer.blender.org/D14319
2022-03-13Fix T96303: C++ OBJ exporter needs presets and skip modifiers.Aras Pranckevicius
This patch, D14303, from Aras Pranckevicius adds presets to the OBJ exporter, and also adds a checkbox (default on) to apply modifiers before export.
2022-03-13Cleanup: clang formatAaron Carlisle
2022-03-12Fix transform gizmo check for shift to constrain to a planeCampbell Barton
The eventstate was checked instead of the current event being handled, causing the check to be invalid in some cases.
2022-03-12GPencil: Fix unreported select error in Normalize operatorAntonio Vazquez
The curve selection was wrongly checked.
2022-03-12Fix T96352: Gpencil crash using Normalize Thickness with CurvesAntonio Vazquez
The stroke curve data could be NULL.
2022-03-12Fix T96229: GN Fillet Node unexpected limit radius behavior for 3 point splinesDilith Jayakody
This commit fixes T96229. The maximum possible radius was being used for 3 point splines, regardless of the current radius. Reviewed By: HooglyBoogly Maniphest Tasks: T96229 Differential Revision: https://developer.blender.org/D14311
2022-03-11UI: Use property split in curves surface panelHans Goudey
2022-03-11Cleanup: Use new enum for NURBS curve knots modesHans Goudey
Move the definition of the enum to `Curves` DNA, since the values will be saved in files, and ongoing development needs to use this.
2022-03-11Fix T94692: Show Cached OneDrive ThumbnailsHarley Acheson
When OneDrive files are offline, show preexisting thumbnails. See D13930 for details. Differential Revision: https://developer.blender.org/D13930 Reviewed by Julian Eisel
2022-03-11Curves: Move constructor/assignmentHans Goudey
Add the ability to move `CurvesGeometry` without copying its attributes and data. The benefit is more intuitive management of the data-block copying, and less overhead for copying in some cases. The "moved-from" source is left in an empty but valid state. A test file is added to test the move constructor.
2022-03-11Cycles: show viewport hair settings when using CyclesEthan-Hall
Before this patch, users had to switch render engines just to change how the hair should be displayed in solid and material preview viewport shading modes. Differential Revision: https://developer.blender.org/D14290
2022-03-11Cycles: make smart interpolation fallback to cubic for GPUEthan-Hall
Matching CPU and Eevee behavior. Differential Revision: https://developer.blender.org/D14296
2022-03-11Fix wrong line width when using Show Lines in Histogram scopeBrecht Van Lommel
By not resetting the line width, other scopes were using the wrong line thickness. Contributed by RedMser. Differential Revision: https://developer.blender.org/D12030
2022-03-11Cleanup: use M_PI_2 and M_PI_4 where possibleHallam Roberts
The constant M_PI_4 is added to GLSL to ensure it works there too. Differential Revision: https://developer.blender.org/D14288
2022-03-11Cleanup: fix source typos homogenous->homogeneousBrecht Van Lommel
Contributed by luzpaz. Differential Revision: https://developer.blender.org/D14306
2022-03-11Cleanup: fix source comment typosBrecht Van Lommel
Contributed by luzpaz. Differential Revision: https://developer.blender.org/D14307
2022-03-11Fix: Assert in set spline type node after recent commitHans Goudey
My own error when committing 0602852860dda. It appears that the "Endpoint" knots modes should be handled together, otherwise out of bounds array access is possible.
2022-03-11Fix T85689: Replace SHGetFileInfoW for Drive NameHarley Acheson
Win32: Replace SHGetFileInfoW as means to get friendly display names for volumes because it causes long pauses for disconnected remote drives. See D14305 for more details. Differential Revision: https://developer.blender.org/D14305 Reviewed by Brecht Van Lommel
2022-03-11Fix: Deleting vertex group attribute can change original meshHans Goudey
There was an error with the attribute API implementation for vertex groups. If the vertex group layer referenced an original mesh, it wasn't properly duplicated for writing.
2022-03-11Cleanup: Use helper variableHans Goudey
For a NURBS curve, the order is just the degree plus one. So just pass around the degree instead of always subtracting one.
2022-03-11Fix T96243: Workbench Curvature not rendering in background.Jeroen Bakker
When rendering using the command line the curvature wasn't rendered. The reason was that the ui_scale wasn't initialized and therefore the same pixels where sampled to detect the curvature. This is fixed by setting the ui_scale to 1 for any image render.
2022-03-11Event System: limit early evaluation of drag actions to mouse buttonsCampbell Barton
Change early drag evaluation added in 1f1dcf41d51a03150ee38f220c590f8715b11e88 to only apply to drag events from mouse buttons. Otherwise pressing two keyboard keys at one would create a drag event for the first pressed key. While this didn't cause any bugs as far as I know, this behavior makes most sense for drags that come from cursor input.
2022-03-11Event System: only set press values in win->eventstateCampbell Barton
Only set press events in the windows eventstate, not the current event since it's not useful for these to be set current events press values. This makes it possible for a press event to access values for the previous press.
2022-03-11Fix out of order event handling when calling operators from gizmosCampbell Barton
Activating a gizmo used the windows eventstate which may have values newer than the event used to activate the gizmo. This meant transforms check for the key that activated transform could be incorrect. Support passing an event when calling operators to avoid this problem.
2022-03-11Correct error in 1032f111d087e7ba77c16a4af78704019714bd6aCampbell Barton
Thanks to Jacques Lucke for spotting.
2022-03-11Fix threading conflict with movie cache lineSergey Sharybin
It was possible that a render thread will be freeing cache while the interface is iterating over cache items to build cache line. Found while looking into T94738. It might be a fix, but I am unable to reproduce the original issue, so can not know for sure whether there is something else going or or not.