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
2020-08-07Cleanup: declare arrays arrays where possibleCampbell Barton
2020-08-07Fix fast clicks on File Browser sort columns not changing sortingJulian Eisel
Clicking on the column header is supposed to enable sorting by this column, or switch the sort order if already enabled. The double-click event would be blocked by the `file.execute()` operator, which is not supposed to act if the user clicked outside the file list.
2020-08-07Fix T79616: Sort by column in filebrowser is brokenJulian Eisel
After changes in rBc606044157a3, mouse press events would be blocked by the selection operator. This only worked by chance before.
2020-08-07Cleanup: Blenlib, Clang-Tidy else-after-return fixes (incomplete)Sybren A. Stüvel
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/blenlib` module. Not all warnings are addressed in this commit. No functional changes.
2020-08-07Cleanup: make formatJacques Lucke
2020-08-07Merge branch 'blender-v2.90-release' into masterJacques Lucke
2020-08-07Code Style: use "#pragma once" in source directoryJacques Lucke
This replaces header include guards with `#pragma once`. A couple of include guards are not removed yet (e.g. `__RNA_TYPES_H__`), because they are used in other places. This patch has been generated by P1561 followed by `make format`. Differential Revision: https://developer.blender.org/D8466
2020-08-06GPencil: Fix unreported wrong Polyline bottom tooltipAntonio Vazquez
It was mising the Wheelmouse option and the name of the tool was wrong.
2020-08-06GPencil: Fix unreported wrong Polyline bottom tooltipAntonio Vazquez
It was mising the Wheelmouse option and the name of the tool was wrong.
2020-08-06Merge branch 'blender-v2.90-release'Pablo Dobarro
2020-08-06Fix Pose Brush FK mode detecting wrong rotation originPablo Dobarro
The Pose FK mode assings the rotation origin to the boundary of the last visited face set in the floodfill operation. In some cases, the topology of the model may make the flood fill operation to visit a face set as the first one (assinging it to target) and visit it again as the last one (assinging it to origin). This will make the pose brush to default the origin and target to the brush location and not to the face sets as it considers that there is only one possible boundary. This adds a GSet to ensure that a particular face set is not visited twice in the flood fill, fixing these cases. Reviewed By: sergey Differential Revision: https://developer.blender.org/D7984
2020-08-06Sculpt: Cloth Brush simulation area propertyPablo Dobarro
This makes possible to choose between a local and a global simulation when the cloth brush is used. Local simulation is the current default. When global simulation is enabled, the cloth brush simulates the entire mesh without taking any simulation limits into account. This was possible before by setting the simulation limits to 10 (the current maximum value allowed) so the entire mesh was inside the limits, but this was a hack as the limits scale with the radius and there should not be any limitation on how big the simulated area can be to be able to simulate an entire object. This also allows to make a more clear distinction between cloth brush presets that are intended to be used in local areas to add details or globally to generate the base shape of the mesh. Reviewed By: sergey Differential Revision: https://developer.blender.org/D8481
2020-08-06Cleanup: Paint Cursor RefactorPablo Dobarro
The paint_draw_cursor function was handling the cursor drawing for 2D and 3D views of all paint modes, calculating the brush radius, updating the SculptSession data and updating and drawing all sculpt cursor overlays for different tools. It was almost impossible to understand when and what was being drawn and in which state the GPU matrix was. Now everyting is organized into different functions, with clear separation between modes, sculpt tool overlays and different drawing setups. Update and drawing functions are also separated (this allows to skip one PBVH query on each cursor drawing). Reviewed By: sergey Differential Revision: https://developer.blender.org/D8206
2020-08-06Merge remote-tracking branch 'origin/blender-v2.90-release'Dalai Felinto
2020-08-06Cleanup: Remove bad level calls from space imageDalai Felinto
Groundwork for upcoming fix (D8472)
2020-08-06Cleanup: Stop accessing gpu_batch_presets_reset()Dalai Felinto
The current code is accessing this from outside the gpu "namespace". As such it should be accessing GPU_ functions, not gpu_ functions. This is also a place to centralize the XXX message that will be addressed upon refactor. So we can reuse this call in other places that need the same temporary workaround. Groundwork for upcoming fix (D8472)
2020-08-06UI: Fixes and small improvements to some labels and UI messagesYevgeny Makarov
Small tweaks to make labels and texts more correct, consistent and polished. Reviewed by: Aaron Carlisle, Julian Eisel Differential Revision: https://developer.blender.org/D8346
2020-08-06Cleanup: undeclared warningsCampbell Barton
2020-08-06UI: Name force fields using the type of force by defaultMatias Herrero
When adding multiple force fields of different types they are all called "Field", making it difficult to tell them apart. Lights were already named based on their type. This follows the light code. New names: - Force - Vortex - Magnet - Wind - Guide - TextureField - Harmonic - Charge - Lennard-Jones - Boid - Turbulence - Drag - Fluid - Field Reviewed by: Julian Eisel Differential Revision: https://developer.blender.org/D8420
2020-08-06Merge branch 'blender-v2.90-release'Julian Eisel
2020-08-06Fix padding when multi-editing aligned widgetsRed Mser
Similar to T58668, labels were not aligned when multi-editing widgets that are not center-aligned. Reviewed by: Hans Goudey, Julian Eisel Differential Revision: https://developer.blender.org/D8441
2020-08-06Merge branch 'blender-v2.90-release' into masterJacques Lucke
2020-08-06Fix T79408: ungroup operation update animation data incorrectlyJacques Lucke
Reviewers: sybren, sergey Differential Revision: https://developer.blender.org/D8464
2020-08-06Merge branch 'blender-v2.90-release' into masterCampbell Barton
2020-08-06Fix T79309: Safe Areas are not visibleCampbell Barton
2020-08-06Cleanup: no need for plural for term 'collision'Campbell Barton
2020-08-06Sculpt: Cloth Brush/Filter CollisionsPablo Dobarro
This implements collisions in the solver of the cloth brush/filter. It uses the scene colliders as a regular physics simulation. There are still some parameters (friction, distance to the surface...) that can be exposed as properties in later patches. Thanks to Sebastian Parborg for helping me with the implementation. Reviewed By: sergey, zeddb Differential Revision: https://developer.blender.org/D8019
2020-08-06Merge branch 'blender-v2.90-release'Hans Goudey
2020-08-06Fix T78698: Move cursor stuck after removing modifierJulian Eisel
The panels are rebuilt when a modifier is removed so the button handlers need to properly finish. By adding a context argument to the panel_delete function this will happen properly.
2020-08-06Sculpt: Sharpen Mesh Filter curvature smoothing and intensify detailsPablo Dobarro
This adds a curvature smoothing and intensify details properties to control the result of the Sharpen Mesh Filter. Curvature smoothing removes high frequency details from the precalculated sharpen data, so the filter result has much smoother surfaces and cleaner sharpen lines; Intensify details displaces the vertices of creases and valleys in the direction opposite to its neighbors average, so it intensifies high frequency details in those areas, producing more noisy and sharp shapes: Both this properties can be used in combination to achieve a good balance of high and low frequency details depending on the shape and the desired result. Reviewed By: sergey Differential Revision: https://developer.blender.org/D8447
2020-08-05Sculpt: Option to lock the rotation in the Pose Brush scale deform modePablo Dobarro
The scale deform mode includes rotation by default, so when when scaling down a part of the models it becomes harder to control as the effect of the rotation less predictable (similar to using trackball rotation in a very small radius). This locks the rotation of the segment, so parts of the model can be scaled down in a more predictable way. Reviewed By: sergey Differential Revision: https://developer.blender.org/D8465
2020-08-05Merge branch 'blender-v2.90-release'Julian Eisel
2020-08-05Fix file name sometimes not visible immediately after renamingJulian Eisel
Steps to reproduce were: * Open File Browser * Create a new directory * Cancel renaming with Esc File selection flags were modified during drawing when the rename button got removed, but the file name label drawing wasn't checking the modified state.
2020-08-05Merge branch 'blender-v2.90-release'Germano Cavalcante
2020-08-05Fix T77548: Crash when using Add Object Tool with Normal Orientation and ↵Deep Majumder
zero objects in scene The crash is caused by the fact that a NULL Object pointer is passed to calculate the transform orientation, which has been set to normal. A check has been include to detect the same. Differential Revision: https://developer.blender.org/D7951
2020-08-05Fix T78592: Shear operator fails to affect curve control point handlesGermano Cavalcante
Use `td->iloc` as the coordinates of the transformed element. It is more accurate and other transformation modes, such as scale, also operate on `td->iloc`.
2020-08-05Merge branch 'blender-v2.90-release'Julian Eisel
2020-08-05Fix T78907: Renaming file doesn't work while mouse is over file iconJulian Eisel
The icons are label buttons. Usually these are not editable and can not become active. These are draggable ones though (so dragging files can be dragged by dragging the icon) which creates an exception to this rule. So hovering the icon would activate its label and when executing the rename operator via shortcut it wouldn't get exited properly. This broke the invariant of only allowing a single active button at a time. Added an assert to check that invariant now. Letting the code to activate the text button ensure any currently active button is exited seems sensible.
2020-08-05Merge branch 'blender-v2.90-release' into masterNathan Craddock
2020-08-05Fix T72297: disabled buttons toggling on dragNathan Craddock
Disabled buttons would incorrectly toggle state when a drag toggle passed over them. This adds a check to prevent a drag toggle on disabled buttons. Differential Revision: https://developer.blender.org/D8476
2020-08-05GPencil: Add Fill option to determine the layers used for boundary strokesAntonio Vazquez
This is a patch suggested in https://blender.community/c/rightclickselect/qggbbc/ The valid values are: * Visible Layers. * Active Layer. * Layer Above active. * Layer Below active. * All layers Above active. * All layers Below active. Differential Revision: https://developer.blender.org/D8474 Some minor UI changes done in the original patch.
2020-08-05Merge branch 'blender-v2.90-release'Julian Eisel
2020-08-05Fix T79524: Button alignment broken in some casesJulian Eisel
ad4928a1710f disabled alignment for too many cases. Still try to avoid aligning many items, to avoid thousands of redundant alignment calculations. But now we're much more picky adding an sub-row with alignment.
2020-08-05Merge branch 'blender-v2.90-release'Julian Eisel
2020-08-05Fix T78630: Custom icons not grayed out in inactive layoutsJulian Eisel
For regular icons this worked because they used the text color, which was already grayed out by the caller.
2020-08-05Merge branch 'blender-v2.90-release' into masterCampbell Barton
2020-08-05EEVEE: LightCache: Prevent crash when using a lightcache too bigClément Foucault
Some implementation have different maximum texture size. This patch avoid crash when texture allocation fails when: - trying to bake a lightcache too big for the OpenGL imeplementaion. - loading a cache from file that is too big for the OpenGL imeplementation.
2020-08-05Fix T79497: Crash when removing strips with prefetchingRichard Antalik
This was already fixed by 0471349c90df but accidentally removed in refactor.
2020-08-05Sculpt: Cloth brush Pin Simulation Boundary propertyPablo Dobarro
The cloth brush has a defined simulated area with a falloff. In the falloff area (the area between the dashed white circle and the exterior white circle), simulation properties change in order to fade out the simulation deformation effects towards the boundary. With some brushes and stroke types (like anchored strokes with pinching or grabbing with full strength), it is possible to apply more force than what the boundary falloff can compensate, so the simulation breaks when this happens. This option pins the falloff area with softbody constraints, This produces a much better deformation falloff and it is no longer possible to move the vertices near the simulation boundary, so the simulation won't break no matter the strength of the forces applied inside the simulated areas. This is an option as it is particularly useful for some brushes to add localized details, but for brushes that are supposed to deform the entire mesh (like the grab brush in D8424), this can add unwanted softbody constraints that affect the simulation result. Reviewed By: sergey Differential Revision: https://developer.blender.org/D8435
2020-08-04Sculpt: Split Box Mask into its own operatorPablo Dobarro
Box mask is not a selection, so it should not be part of the select operator. This allows to add more sculpt mode specific functionality and properties and to share more code with the lasso mask operator in a later refactor. Reviewed By: sergey Differential Revision: https://developer.blender.org/D8456