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
path: root/source
AgeCommit message (Collapse)Author
2021-01-18UV: tweak face select behaviortemp-uv-face-select-no-thresh-when-insideCampbell Barton
When the mouse cursor is inside the UV face, extend the selection threshold. This means when zoomed in, a face can always be selected when the cursor is inside it. In the case of multiple overlapping faces - the face with the closest center is used.
2021-01-18Cleanup: move UvNearestHit.ob assignment in find nearest functionsCampbell Barton
This makes it possible to pass multiple hit arguments. Also rename 'hit_final' to 'hit', since there are no longer a local 'hit' variable defined in these functions.
2021-01-17GPencil: Fix Autojoin error using layer transformAntonio Vazquez
The target stroke bounding box was not checked properly and when using layer transform the error was noticeable, but really the error was before the layer transform commit.
2021-01-17Merge branch 'blender-v2.92-release'Campbell Barton
2021-01-17Merge branch 'blender-v2.92-release'Campbell Barton
2021-01-17Add Object Tool: scale the cursor plane based on the depthCampbell Barton
Draw the cursor plane smaller then further away from the view. This makes the plane being drawn onto easier to perceive.
2021-01-17Add Object Tool: split aspect & origin options for base/heightCampbell Barton
In practice it's common these settings shouldn't be linked for drawing the initial (base) plane, compared with the height.
2021-01-17Merge branch 'blender-v2.92-release'Campbell Barton
2021-01-17Merge branch 'blender-v2.92-release'Campbell Barton
2021-01-17RNA: report an error when the name property is set twiceCampbell Barton
This helps avoid copy-paste errors which have happened a few times, no functional changes.
2021-01-17Fix workspace tool name propertyCampbell Barton
The fallback tool was used as the tool name. Regression in a8ce9a143abbb51eae28e5d0cae1fb310bd0c24c
2021-01-16Merge branch 'blender-v2.92-release'Hans Goudey
2021-01-16Fix T84713: Geometry nodes reroute sockets have incorrect typeWannes Malfait
This implements the node tree update function, which is needed so that the reroutes get updated to the correct type. It is based on the same code in the shader and compositor node trees. Differential Revision: https://developer.blender.org/D10123
2021-01-16GPencil: Hide layer if the scale is zeroAntonio Vazquez
When scale a layer to zero must be hidden.
2021-01-16GPencil: Cleanup - Rename ED_gpencil_stroke_color_use to ↵Antonio Vazquez
ED_gpencil_stroke_material_editable
2021-01-16GPencil: Fix initial value for fill factor after last changesAntonio Vazquez
The value has changed due a previous commit and the minimum value cannot be 0.
2021-01-16GPencil: Add new parameteres to transform layersAntonio Vazquez
When using grease pencil for drawing Storyboards, it's very common to require a transform of the layers. This transform can be done using the offset modifier, but in some cases, the scene requires a lot of modifiers and makes the file hard to work. This new feature adds a transforms Location, Rotation and Scale at Layer level, and allows to transform the layer without using a modifier, keeping the scene more clean. {F9480695} This feature was suggested by @pepeland after receiving feedback from several artists. Also, done some code cleanup and rename some functions to get a better naming. Maniphest Tasks: T83660 Differential Revision: https://developer.blender.org/D9761
2021-01-16Merge branch 'blender-v2.92-release'Jacques Lucke
2021-01-16Fix T84757: feedback loop with when modifying vertex group with nodesJacques Lucke
The issue was that the mesh shared its vertex weights with the original mesh (to reduce memory consumption). The solution is to make a local copy of the vertex weights in this case.
2021-01-16Fix T84758: Revert "LibOverride: Also consider regular embedded IDs as ↵Bastien Montagne
virtual overrides." This made Blender considers all materials to be overridden. This reverts commit 2aa7bc06e7a6adb196e552fca3289ed7b7a18f3f.
2021-01-16Merge branch 'blender-v2.92-release'Campbell Barton
2021-01-16Merge branch 'blender-v2.92-release'Campbell Barton
2021-01-16Merge branch 'blender-v2.92-release'Campbell Barton
2021-01-16Merge branch 'blender-v2.92-release'Campbell Barton
2021-01-16Merge branch 'blender-v2.92-release'Campbell Barton
2021-01-16Merge branch 'blender-v2.92-release'Campbell Barton
2021-01-16Merge branch 'blender-v2.92-release'Campbell Barton
2021-01-16Add Object Tool: add initial "Fixed Aspect" optionCampbell Barton
This makes it more convent to add many objects with a fixed aspect ratio.
2021-01-16Add Object Tool: make UI more compactCampbell Barton
Move some of the more obscure options into a popover, so they don't take up so much room in the top-bar.
2021-01-16Add Object Tool: support incremental snappingCampbell Barton
This adds a "Snap to" option that allows using all the scenes snap settings which includes incremental & absolute grid snapping options. This is optional because always following scene snapping would not snap to geometry by default (which seems to be the most useful default).
2021-01-16Add Object Tool: workaround non-orthogonal orientation matricesCampbell Barton
2021-01-16Add Object Tool: quiet warning setting sizeCampbell Barton
The size property was only used for the cube
2021-01-16Add Object Tool: rename keymap, expose in keymap editorCampbell Barton
Make the name follow the convention of other View3D keymaps.
2021-01-16Add Object Tool: remove from experimentalCampbell Barton
Based on feedback from @dbystedt, include this in 2.92 with some updates (coming next).
2021-01-15Cleanup: Remove Unused tracking propertiesAaron Carlisle
These properties are unused and serve no purpose. Reviewed By: sergey, #motion_tracking Differential Revision: https://developer.blender.org/D9803
2021-01-15Merge remote-tracking branch 'origin/blender-v2.92-release'Ray Molenkamp
2021-01-15Fix: Build error with MSVC 2017Ray Molenkamp
BKE_cryptomatte_extract_layer_name was using std::isdigit without including <cctype> somehow only MSVC 2017 had a problem with that.
2021-01-15Cleanup: LibOverride: Update comment.Bastien Montagne
2021-01-15LibOverride: Also consider regular embedded IDs as virtual overrides.Bastien Montagne
Those (aka root node trees and master collections) share same 'traits' as the shapekeys: RNA cannot assign them, so we need to handle them as sub-data of their owner IDs. Not sure how much this will help in improving support of overrides for scenes and nodetrees, but this is a mandatory step towards that goal for sure.
2021-01-15LibOverride: fix/update/re-enable ID-related debug checks in diffing code.Bastien Montagne
We should now have the tools to ensure consistency of ID pointers diffing in `rna_property_override_diff_propptr`. As a reminder, for most ID pointers we just check the actual pointer value, but this is not possible for embedded IDs like root node trees or master collections, and for fake embedded ones like shapekeys, so those should be handled as mere sub-data of their owner IDs in override context.
2021-01-15Fix T84373: Overrides : shapes keys driven by armature don't work on second ↵Bastien Montagne
instance. Code generating override operations would not deal properly with Pointer RNA properties, trying by default to use and check pointers' names properties like it does with items of a collection. However, using name property in pointer RNA property case makes no sense, so specialize the `no_prop_name` flag for each case (pointer or collection). here, since second override would generate local data-blocks with different names than the linked data ones, name matching would fail and breck handling of override diffing in shapekeys. Note that shape keys are the only one concerned by that problem, since other embedded IDs (root node trees and master collections) are fully real ones, so they always get the same names.
2021-01-15Fix (unreported) copying liboverride of mesh breaks overrides of shape keys.Bastien Montagne
Our beloved shapekeys are 'virtual' overrides, they need special snowflake treatment here as well. They do not have any override data, from override perspective they are considered as mere sub-data from their owning ID (mesh, lattice, etc.). Therefore, we should not copy override data from them, but instead properly flag those new IDs as `LIB_EMBEDDED_DATA_LIB_OVERRIDE`. Found while investigating T84373.
2021-01-15Fix T84373: Overrides : shapes keys driven by armature don't work on second ↵Bastien Montagne
instance. Code generating override operations would not deal properly with Pointer RNA properties, trying by default to use and check pointers' names properties like it does with items of a collection. However, using name property in pointer RNA property case makes no sense, so specialize the `no_prop_name` flag for each case (pointer or collection). here, since second override would generate local data-blocks with different names than the linked data ones, name matching would fail and breck handling of override diffing in shapekeys. Note that shape keys are the only one concerned by that problem, since other embedded IDs (root node trees and master collections) are fully real ones, so they always get the same names.
2021-01-15Fix (unreported) copying liboverride of mesh breaks overrides of shape keys.Bastien Montagne
Our beloved shapekeys are 'virtual' overrides, they need special snowflake treatment here as well. They do not have any override data, from override perspective they are considered as mere sub-data from their owning ID (mesh, lattice, etc.). Therefore, we should not copy override data from them, but instead properly flag those new IDs as `LIB_EMBEDDED_DATA_LIB_OVERRIDE`. Found while investigating T84373.
2021-01-15Merge branch 'blender-v2.92-release'Hans Goudey
2021-01-15Geometry Nodes: Use a default value in the point scale nodeHans Goudey
This commit adds the ability to provide a default value to `attribute_try_get_for_output` and uses it for the `Point Scale` node, which is important because the node uses multiplication. The idea is to keep "name-specific" functionality in nodes rather than in the attribute API, otherwise the complexity will be hard to keep track of. So this fix doesn't apply to the Attribute Vector Math node, but hopfully that is okay since that's now a lower level node for this purpose anyway. Differential Revision: https://developer.blender.org/D10115
2021-01-15Cleanup: Add const in various places in node codeHans Goudey
Also includes some various other minor cleanups, like using bool instead of int in a couple places.
2021-01-15Tracking: Fix transform cancel for plane tracksSergey Sharybin
Use exact marker accessor. Harmless due to the current way the transform system is used by tracking. But for the future development proper accessor needs to be used.
2021-01-15Fix T84745: build error with TBB 2021Brecht Van Lommel
task_group::is_canceling() was removed.
2021-01-15RNA: support range-based for loops in C++ apiJacques Lucke
Cycles has a lot of code like this: ```lang=c++ BL::Object::modifiers_iterator b_mod; for (b_ob->modifiers.begin(b_mod); b_mod != b_ob->modifiers.end(); ++b_mod) { ``` Range-based for loops allow us to simplify this to: ```lang=c++ for (BL::Modifier &b_mod : b_ob->modifiers) { ``` In order to support this, a collection (such as `b_ob->modifiers`) must have a `begin()` and `end()` method, that take no parameters and return an iterator. The `end` method already exists, but the `begin` method takes the iterator as argument currently. This patch adds a new `begin` method that returns the iterator. The old `begin` method is still available to avoid breaking existing code. My assumption is that the old `begin` method took the iterator as parameter so that the iterator is not copied or moved, i.e. its memory address is stable and the destructor is only called once. I'm not sure if both of these requirements are really necessary to ensure that the iterators work correctly. To be on the safe side, I deleted the copy/move constructors/assignment operators. Since C++17 there is "guaranteed copy elision" which basically allows us to return a non-copyable and non-movable type from a function. To make that work, I had to add a new constructor to `CollectionIterator` that calls `begin` on itself. Reviewers: brecht Differential Revision: https://developer.blender.org/D10120