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-15Merge branch 'blender-v2.92-release'Germano Cavalcante
2021-01-15Fix T84673: Skin resize operator always using object origin as pivotGermano Cavalcante
The TransData converted to work in Skin Resize had no defined center. Caused by rB54ee4109143b
2021-01-15Merge branch 'blender-v2.92-release'Hans Goudey
2021-01-15Fix "Make Instances Real" to work with nodes modifier instancesHans Goudey
This commit changes the check at the beginning of the "Make Instances Real" operator to account for the instances created by nodes modifiers in the modifier stack. Differential Revision: https://developer.blender.org/D10059
2021-01-15Geometry Nodes: transfer corner and point attributes in Point Distribute nodeJacques Lucke
If the mesh has any corner or point attributes (e.g. vertex weights or uv maps), those attributes will now be available on the generated points as well. Other domains can be supported as well. I just did not implement those yet, because we don't have a use case for them. Differential Revision: https://developer.blender.org/D10114
2021-01-15Cleanup: spellingCampbell Barton
2021-01-15Cleanup: use 'pragma once'Campbell Barton
2021-01-15Nla: Rename NlaEvalChannel->valid to domainWayde Moss
For term consistency with usage. The clarity is more for consistency with the nla domain() processing function names and the core struct member name it stores the results in, "valid". The name "domain", which implies a function can operate on it, seems more natural than "valid", which implies something is wrong if false. No functional changes. Reviewed by: sybren Differential Revision: http://developer.blender.org/D9692
2021-01-15NLA: Redundant NlaEvalChannel Valid Mask WriteWayde Moss
The field will already be properly written to in (anim_sys.c) nla_eval_domain_action(). It's easier to understand the property's usage after removing the redundancy. No functional changes. Reviewed by: ChrisLend, sybren Differential Revision: http://developer.blender.org/D9689
2021-01-15Nla Refactor: is_fcurve_evaluatable()Wayde Moss
No functional changes. Future patches {D8867} {D8296} make use of it. Reviewed by: sybren, ChrisLend Differential Revision: http://developer.blender.org/D9691
2021-01-15Nla Refactor: Split animsys_evaluate_nla()Wayde Moss
No intended functional changes. Refactors animsys_evaluate_nla() into 2 versions: animsys_evaluate_nla_for_keyframing(), animsys_evaluate_nla_for_flush() to make it clear what data is being calculated and why. Dummy strip creation has been refactored to two separate functions, animsys_create_tweak_strip() and animsys_create_action_track_strip(). Both are evaluated differently from other strips and eachother. There's no need to interweave them. A future patch D8296, generally requires both strips. ___ XXX anim_sys.c) nlatrack_find_tweaked() is a temporary work around. If anyone has any insight into this problem, help is appreciated. Reviewed by: sybren Differential Revision: http://developer.blender.org/D9696
2021-01-15Fix T81533: NLA Properly Draw FModifiersWayde Moss
When NLA strips weren't time-aligned with the underlying action, then fcurve modifiers would not be drawn anchored to the strip. Fmodifiers were evaluating properly, they just weren't drawn with the proper offset and scale. To fix it in this specific case, I've chosen to undo the keyframe remapping then remap the draw-evaluation-time from scene time to fcurve time. Afterward, I redo the keyframe remapping so the controls are properly drawn. The Envelope fmodifier has special drawing code which was fixed too. In this case, no mapping at all was happening. The solution was similar, to remap the envelope control points from fcurve time to scene time.
2021-01-15Gpencil Noise - Add noise offset parameterCody Winchester
This patch adds a noise offset option to the grease pencil noise modifier. It allows the user to animate the noise along the length of the stroke to create movement that is currently not possible. It works by adding an offset to the noise table and adding the remaining floating point value to the noise table sampling. Reviewed By: #grease_pencil Differential Revision: https://developer.blender.org/D10021
2021-01-15Use mmap() IO for reading uncompressed .blendsLukas Stockner
Instead of submitting tons of tiny IO syscalls, we can speed things up significantly by `mmap`ing the .blend file into virtual memory and directly accessing it. In my local testing, this speeds up loading the Dweebs file with all its linked files from 19sec to 10sec (on Linux). As far as I can see, this should be supported on Linux, OSX and BSD. For Windows, a second code path uses `CreateFileMapping` and `MapViewOfFile` to achieve the same result. Reviewed By: mont29, brecht Differential Revision: https://developer.blender.org/D8246
2021-01-14Fix T81533: NLA Properly Draw FModifiersWayde Moss
When NLA strips weren't time-aligned with the underlying action, then fcurve modifiers would not be drawn anchored to the strip. Fmodifiers were evaluating properly, they just weren't drawn with the proper offset and scale. To fix it in this specific case, I've chosen to undo the keyframe remapping then remap the draw-evaluation-time from scene time to fcurve time. Afterward, I redo the keyframe remapping so the controls are properly drawn. The Envelope fmodifier has special drawing code which was fixed too. In this case, no mapping at all was happening. The solution was similar, to remap the envelope control points from fcurve time to scene time.
2021-01-14Geometry Nodes: support accessing UV layers with attribute systemJacques Lucke
Note that uv layers still can't be accessed with nodes, because those only access attributes on the point domain currently, while uv data is stored per corner. Implicit domain conversion hasn't been implemented yet.
2021-01-14Geometry Nodes: add implicit conversions for float2 and othersJacques Lucke
Some of these conversions are arbitrary to some degree. However, the user experience is better when at least something happens when converting between types, instead of just getting zeros. I left out a few conversions that I wasn't sure about yet. I also added conversions for float2.
2021-01-14Merge branch 'blender-v2.92-release'Jacques Lucke
2021-01-14Geometry Nodes: don't delete existing attribute before new attribute is computedJacques Lucke
This fixes the behavior of some nodes when the same attribute name is used for input and output. If both attributes have a different type, they can't exist at the same time. Therefore, the input attribute has to be removed in order to create the output attribute. Previously, the input attribute was remove before it was used in any computations. Now, the output is written to a temporary buffer and only later saved in the geometry component. This allows both attributes to coexist within the node. The temporary attribute is only create when necessary. The normal case without name collisions still works the same as before. Differential Revision: https://developer.blender.org/D10109 Ref T83793.
2021-01-14Merge branch 'blender-v2.92-release'Sergey Sharybin
2021-01-14Geometry Nodes: extract function for adding attributes in distribute nodeJacques Lucke
This shouldn't have any functional changes.
2021-01-14Fix T84167: Saving half-float EXR might result in NaN pixelsSergey Sharybin
Clamp value to the -HALF_MAX .. HALF_MAX. The non-clamped values were causing NaN and inf values saved to the file, which was the root cause of glare node giving unexpected result. The nan/inf on overflow is something mentioned in the half data type in OpenEXR header. Differential Revision: https://developer.blender.org/D10105
2021-01-14Fix various issues with regions in Asset BrowserJulian Eisel
Fixes a number of glitches, e.g. the sidebar disappearing when selecting an asset or wrong AZones (the little chevrons to indicate a hidden region). There were a couple of issues: * Execution region was created, but not used. * If an execution region already existed when refreshing the area, it was tagged as hidden, not removed. * The sidebar was always set to be hidden on refreshes. * When toggling from Asset Browser to File Browser as regular editor (i.e. not opened temporary via Ctrl+O or such), the sidebar region wasn't removed. Adresses T83644.
2021-01-14GPencil: Allow small resolution for Fill toolAntonio Vazquez
Now the resolution can be reduced to get less details. This is very useful for doing storyboards to get a quick fill of any character. Following UI review, the name "Resolution" has been changed to "Precision" because is more clear. Differential Revision: https://developer.blender.org/D10076
2021-01-14Geometry Nodes: output color from Attribute Color Ramp nodeJacques Lucke
The other output types did not work currently anyway. There is not a significant benefit in somehow deducing the output attribute type from the existing attribute types.
2021-01-14Cleanup: ed_undo: naming of parameters, const, etc.Bastien Montagne
No behavrioral change expected here.
2021-01-14Cleanup/refactor: Remove logically broken code from GPencil undo.Bastien Montagne
`ED_undo_gpencil_step` only support valid undo step direction, passing step name here is useless and only add confusion to what works or not. Undo by step name or step index is fully not supported by GPencil undo mode currently. Note that since GPencil undo mode does not seem to ever be used anyway, this is not an urgent issue in practice, but this needs to be cleaned up at some point. See also T84703.
2021-01-14Merge remote-tracking branch 'origin/blender-v2.92-release'Sybren A. Stüvel
2021-01-14MeshCache: add error handling to `fread()` callsSybren A. Stüvel
Handle return value of `fread()`, by showing an error message when the file cannot be read from and stopping further processing. Not only is error handing a good idea, it also prevents GCC from warning that the return value of `fread()` should not be ignored. This is similar to {D9916}. Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D10079
2021-01-14Tracking: Make transform cancel use explicit frame numberSergey Sharybin
Before transform cancel will request marker at a current frame number and restore transform flags to it. This worked fine if there was only one marker from track in the transform data. This did not work correct when multiple markers from track were added to transform data. This allows to implement proportional editing in the clip editor.
2021-01-14Tracking: Fix wrong projection for post-draw passSergey Sharybin
Allows to draw proportional editing circle at a proper location.
2021-01-14Tracking: Re-duplicate logic used to count and initialize dataSergey Sharybin
Allows to easily implement more comprehensive checks about which markers get added to the transformation context. No user measurable changes are expected, purely house-keeping to ease an upcoming development.
2021-01-14Tracking: Simplify transform codeSergey Sharybin
Reduce amount of duplicated pointer offset logic: advance transform data pointers deep in the loop rather than have offset duplicated in the outer loop. Array size calculation still has duplicated, but that is another story.
2021-01-14Bmesh: Deprecate deform parameter of from_object()Omar Emara
The deform parameter of the Bmesh from_object method is deprecated, always assumed to be True, and will be removed in version 3.0. That is because the cases where it is False don't work correctly and are subject to memory leaks. One of the symptoms of the incorrect behavior is the application of constructive modifiers twice if the input object is an evaluated one, as demonstrated in D10053. Reviewed By: Brecht Differential Revision: https://developer.blender.org/D10086
2021-01-14GPencil: Noise Modifier - Move noise seed value outside of randomize subpanelCody Winchester
Currently the grease pencil noise modifier seed value is under the randomize subpanel. Moved the seed value outside of this panel because it doesn't only change the noise when using the randomize option. Moving the seed value prevents it from being hidden/greyed out so the user can manually keyframe it to control the noise animation. Reviewed By: #grease_pencil, antoniov Differential Revision: https://developer.blender.org/D10020
2021-01-14GPencil: Disable Multiframe edition when play animationAntonio Vazquez
When the multiframe is enabled, playing animation must be disabled or the animation is not visible, {F9527854} Reviewed By: fclem Differential Revision: https://developer.blender.org/D9930
2021-01-14Merge branch 'blender-v2.92-release'Campbell Barton
2021-01-14Fix add-object tool snap placement when activated from tweak eventCampbell Barton
When activating add-object from from a tweak event (default keymap), the snap gizmo could snap to a new location while dragging. Workaround this by re-calculating the snap position where the tweak event starts. Reported T57210#1077747
2021-01-14Merge branch 'blender-v2.92-release'Campbell Barton
2021-01-14Fix uninitialized stack memory use accessing the snap normalCampbell Barton
Using the add-object tool, snapping to object types such as curve, armature ... etc, copied uninitialized stack memory.
2021-01-14Cleanup: use enum for undo step directionCampbell Barton
The step direction was confusingly 1 for undo, -1 for redo. This convention is from 2004 (562d6958cbf646aba31ed92fe4f0e07d1dc495b6). Use enum for ed_undo.c for better readability.
2021-01-14Fix T84684: Undo operators not workingJulian Eisel
Mistake in 2771dfd5632a. The commit left the new editors operator registration in `ed_util_ops.c`, but removed the function call to it. In other words, the ED-utils operators were not registered.
2021-01-14Fix T84684: Undo operators not workingJulian Eisel
Mistake in 2771dfd5632a. The commit left the new editors operator registration in `ed_util_ops.c`, but removed the function call to it. In other words, the ED-utils operators were not registered.
2021-01-13Merge branch 'blender-v2.92-release'Hans Goudey
2021-01-13Fix T84686: Node vector socket default values not animate-ableHans Goudey
{rB1d3b92bdeabc} disabled animating other properties of the socket default values, like the "min" and "max" properties, as well as the "default_value" of the "default_value". That naming confusion lead to the commit inadvertently removing animation for the vector socket in RNA. I checked that the other socket types don't have the same issue.
2021-01-13Transform: geodesic distances for proportional edit connected modeBrecht Van Lommel
Use approximate geodesic distance computatiom that crosses through triangles rather than only along edges. Using only edges would give artifacts already on a simple grid. Fixes T78752, T35590, T43393, T53602 Differential Revision: https://developer.blender.org/D10068
2021-01-13Merge branch 'blender-v2.92-release'Hans Goudey
2021-01-13Bump file subversion after recent node versioning commitHans Goudey
2021-01-13Nodes: use green color again for shader sockets and shader categoryBrecht Van Lommel
The green is still distinct from the more turquoise use for geometry, and they are never used in the same node graph. The use of red makes sense, but would need changes to other sockets and categories to set it apart well. Ref T82689
2021-01-13Revert "Blender 2.92 beta - bcon3"Dalai Felinto
This reverts commit cfc9b95abd64f7cbd7686482995bcb062db6bb8f.