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-12-01UI: Add Sculpt Session info to statsPablo Dobarro
This adds the vertex and face count info to the scene stats in sculpt mode. These stats count the active vertices and faces in the sculptsession for the active object. This has the following advantages: - It is possible to know how many vertices the sculptsession has active comparted to the vertex count of the entire scene from sculpt mode - When sculpting with constructive modifiers, these stats will report the number of vertices that you can actually sculpt with, instead of the vertex count of the modified mesh and the entire scene. Reviewed By: sergey, dbystedt Differential Revision: https://developer.blender.org/D9623
2020-11-30Cleanup: Remove unecessary code.Bastien Montagne
We already `memset` the whole mesh runtime to zero, no need to set some of its pointer explicitly to NULL afterward.
2020-11-30Fix T82996: Library Overrides: Duplicate of overridden collection on ResyncBastien Montagne
Properly use given reference pointer in `lib_override_library_create_post_process` when it is a Collection one too.
2020-11-30Fix (unreported) broken logic in `BKE_collection_add_from_collection`.Bastien Montagne
That function was adding given new collection to all ancestors of the reference one, instead of only to its immediate parents.
2020-11-30Tracking: Make image accessor own what it needsSergey Sharybin
Previously image accessor was sharing array pointer for tracks access. Now it is possible to pass a temporary array valid only during the initialization process. Should be no functional changes.
2020-11-30Tracking: Clarify tracks and options storage once againSergey Sharybin
This is something not-so-trivial to see from just reading code, which shown an important of proper comments and clear naming. Main source of confusion was that it is not immediately clear that AutoTrack context is to see all tracks, but tracking to only operate on selected ones.
2020-11-30Tracking: Cleanup, remove unused argument from image accessorSergey Sharybin
2020-11-30Tracking: Cleanup, remove unused fieldSergey Sharybin
Was re-introduced after previous round of cleanups when was merging refactor and master branches.
2020-11-30Tracking: Cleanup, use explicit frame match optionSergey Sharybin
No functional changes, just allows to potentially extend the options in the future, and also makes code more explicit.
2020-11-30Tracking: Cleanup, finish pass of comments in the contextSergey Sharybin
Some fields are still not really documented, but they are subject of refactor/fix which will happen shortly.
2020-11-30Tracking: Cleanup, replace clip user with frame numberSergey Sharybin
Makes it more clear from intent and usage point of view. The user was not used for anything else than frame number.
2020-11-30Tracking: Cleanup, more clear variable namingSergey Sharybin
A no-functional-followup of the previous commit.
2020-11-30Tracking: Fix missing frame remap for plane tracksSergey Sharybin
Tracking track which is used for plane track and movie clip having a scene frame offset would have trigger re-calculation from a wrong frame.
2020-11-30Tracking: Cleanup, clear variable names and indentationSergey Sharybin
Should be no functional changes.
2020-11-30Tracking: Cleanup, unused field in autotrack contextSergey Sharybin
Was only assigned to truth, always. Never read back.
2020-11-30Cleanup: Use LISTBASE_FOREACH macro in screen.cHans Goudey
This commit replaces while loops and for loops with the equivalent macro. This results in much more readable code in some places, and it's now more apparent when the situation is more complicated than just iterating through a linked list.
2020-11-30Cleanup: Use "region" for ARegion variable namesHans Goudey
As proposed in T74432 and already implemented in several commits, "region" is the preferred name for `ARegion` variables, rather than any variant of "ar". This commit changes a few "ar" variables that have popped up over time and also adjusted names of variants like "arnew".
2020-11-29Run clang-format to fix line length after D8915.Alexander Gavrilov
2020-11-28Fix Auto Clamped limits when smoothing the transition of cyclic curves.Alexander Gavrilov
The value of l[count-1] should be ready by the time hmin/hmax is computed. Otherwise the left limit for the transition key would be scaled wrong.
2020-11-28Fix some naming and comments in F-Curve smoothing code.Alexander Gavrilov
2020-11-27Fix T82758: Convert Proxy to Override: Local constraints aren't saved.Bastien Montagne
Ensure consistent order of pose bones. Now it should always match the one from bones in armature obdata (as exposed by e.g. RNA, i.e. children-first). Previously when some pose bones would need to be added or removed from a pose due to changes in the bone armature, or if bones in armature were re-ordered, the bones order in pose would not match anymore the one from armature, and could even become different between e.g. a proxy and its linked source. This was not really nice, but not a big issue before either. But with diffing process of override, consistent order of items between reference linked collection and local override one is crucial. Reviewed By: #animation_rigging, sybren Maniphest Tasks: T82758 Differential Revision: https://developer.blender.org/D9646
2020-11-27Fix T82156: Object with constraints translates when parentedSybren A. Stüvel
Avoid the evaluation of constraints when computing the parent-inverse matrix. Constraints are meant to be evaluated last; object transforms are computed this order: 1. `parent->obmat` (the parent object's world matrix) 2. `ob->parentinv` (the object's parent-inverse matrix) 3. Object's loc/rot/scale 4. Object's constraint evaluation When the constraints are used to compute the parent-inverse matrix, their effect is moved from step 4 to step 2 in this list, potentially rotating or scaling the object's local transform. This causes unwanted movement as reported in T82156. Reviewed By: looch Differential Revision: https://developer.blender.org/D9413
2020-11-27Cleanup: Animation, clean up FCurve Cycles modifierSybren A. Stüvel
Simplify conditions and declare variables `const` where possible. No functional changes.
2020-11-26Fix T83046: Material change not updating in the link of an override.Bastien Montagne
Code was actually not applying any override operation over linked data. Reasonn behind that was that if library file is saved with latest override applied then this is not needed, since data saved for the override in the lib file is already up to date. But this is actually fully breaking in case someone update the lib file of the lib file, without re-saving the libfile itself. So now we alwaya apply overrides also on linked data. Note that this will not fix the case where a resync is needed.
2020-11-26Fix T80970: Copy Rotation constraint incorrect under shearJoseph Brandenburg
Orthogonalize the constraint target's matrix before decomposing it into Euler angles. This removes sheer, and is actually a requirement for correct decomposition. It's conceivable that someone has used the incorrect behaviour in a rig. As the shear caused unpredictable flipping of the constrained object, this is unlikely. Reviewed By: angavrilov, sybren Differential Revision: https://developer.blender.org/D8915
2020-11-25Fluid Particles: fix viscoelastic spring threading crash again after D7394.Alexander Gavrilov
Since D6133 fluid particle code uses thread local storage to collect springs created during a time step before adding them to the actual spring array. Prior to the switch to TBB there was a single finalize callback which was called on the main thread, so it could use psys_sph_flush_springs and insert the new entries into the final buffer. However in D7394 it was replaced with a reduce callback, which is supposed to be thread safe and have no side effects. This means that the only thing it can safely do is copy entries to the other temporary buffer. In addition, careful checking reveals that the 'classical' solver doesn't actually add springs, so reduce isn't needed there. Differential Revision: https://developer.blender.org/D9632
2020-11-25Fix T82988: Div by zero with curve deform modifierRobert Guetzkow
In `calc_curve_deform` a factor is calculated without checking if the divisior is zero or close to zero. This patch adds the missing checks and sets the factor to zero if the division shouldn't be computed. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D9645
2020-11-25Cleanup: remove useless cast.Bastien Montagne
2020-11-25Tracking: Cleanup, de-duplicate implementation of marker lookupSergey Sharybin
The logic was duplicated. Should be no functional changes. The modified function is expected to give same exact results for all inputs. On the "caching last-used track" topic. The code was using last_marker to allow faster lookup of marker closest to the frame. With this change it is still the case since the BKE_tracking_marker_get() does cache last used marker.
2020-11-24Merge remote-tracking branch 'origin/blender-v2.91-release'Sybren A. Stüvel
2020-11-24Fix T77261: Multires creates spikes when subdividing ngonsSergey Sharybin
The spikes were caused by non-initialized tangent matrix used during smoothing process. The reason tangent matrix was not initialized was because wrong usage of API: n-gons should pass corner of 0 to the matrix construction function. Corrected usage of the API and added assert() to help catching such kind of non-initialized issues easier.
2020-11-24Fix T82962: Crash changing lattice resolution with Vertex GroupJeroen Bakker
Regression introduced by {rB042143440d76}. The deform group lookup was performed on the wrong object. Before the lookup was performed on the lattice object. This patch changes this back. Reviewed By: Bastien Montagne Differential Revision: https://developer.blender.org/D9638
2020-11-23Animation: New Euler filter implementationSybren A. Stüvel
This new discontinuity filter performs actions on the entire Euler rotation, rather than only on the individual X/Y/Z channels. This makes it fix a wider range of discontinuities, for example those in T52744. The filter now runs twice on the selected channels, in this order: - New: Convert X+Y+Z rotation to matrix, then back to Euler angles. - Old: Add/remove factors of 360° to minimize jumps. The messaging is streamlined; it now reports how many channels were filtered, and only warns (instead of errors) when there was an actual problem with the selected channels (like selecting three or more channels, but without X/Y/Z triplet). A new kernel function `BKE_fcurve_keyframe_move_value_with_handles()` is introduced, to make it possible to move a keyframe's value and move its handles at the same time. Manifest Task: T52744 Reviewed By: looch Differential Revision: https://developer.blender.org/D9602
2020-11-23Fix T82849: Assert When Unlinking "Edit Source" Text Data-block.Bastien Montagne
Simplify and sanitize handling of usercounts for Text IDs generated trhough `BKE_text_load_ex`.
2020-11-23Tracking: Cover markers access with basic testsSergey Sharybin
Just a beginning of tests coverage, related on the planned upcoming development.
2020-11-23Tracking: Cleanup, make units explicit in new track creationSergey Sharybin
2020-11-23Tracking: Refactor, move track allocation to helper functionSergey Sharybin
The caller is still responsible for allocating list of markers, but the track allocation and initialization can now be reused. Currently no functional changes, preparing for an upcoming development.
2020-11-22Cleanup: Use const arguments in curve bevelHans Goudey
This makes it clear that only the final "r_data" is being changed. Also rename a variable to be less vague.
2020-11-22Cleanup: Improve readability of curve displist buildingHans Goudey
Just a few minor improvements: declare variables where they are initialized, decrease scope, expand some variable names, and use LISTBASE_FOREACH.
2020-11-22Cleanup: Reduce indentationHans Goudey
Having up to nine levels of indentation make this function hard to follow. Instead of indenting the rest of the loop for a simple special case, just continue.
2020-11-20Merge branch 'blender-v2.91-release'Jeroen Bakker
2020-11-20Cleanup: spellingCampbell Barton
2020-11-19Fix T82769: remove thread local data from PTCacheMemJacques Lucke
The issue was that the same point cache was read by multiple threads at the same time (the same object was evaluated for render and for the viewport). Both threads incremented PTCacheMem->cur which lead to the crash. The fix is to remove the PTCacheMem->cur and store it on the stack instead. This way every thread has its own cur. Reviewers: brecht Differential Revision: https://developer.blender.org/D9606
2020-11-19Fix lost node links when linked node group datablock is temporarily missingBrecht Van Lommel
Don't refresh the list of sockets, so that when the .blend file is restored the links remain valid. Also display such nodes in red to indicate an error, same as when the node type info is missing.
2020-11-19Cleanup: Grammar: "Allow to" vs gerundHans Goudey
In cases where "Allow" is followed by an infinitive, a noun needs to directly follow it. But it makes more sense to follow it with a gerund instead.
2020-11-18GPencil: Automerge last drawn stroke with previous strokesAntonio Vazquez
This option joins any stroke with an end near the actual stroke. Now it is not limited to the last stroke, any stroke in the same layer for the actual frame can be joined. The join can join two strokes drawing a third stroke. If the end and the start of the result stroke are very small, the stroke is changed to be cyclic automatically. There is a limit distance to join the stroke, if the distance is greater than this value, the strokes are not joined. Actually, a constant, threshold distance is used, but we could expose as a parameter in the UI in the future. The tool can be used with freehand drawing or with primitives. Note: Great part of the patch is just a refactor of the old code to make it accessible and to keep code organized. Reviewed By: mendio Maniphest Tasks: T82377 Differential Revision: https://developer.blender.org/D9440
2020-11-18Merge branch 'blender-v2.91-release'Sebastián Barschkis
2020-11-18Fluid: Revert changes from T82488Sebastián Barschkis
Scaling of forces needs more work. Before making changes to them it would be nice to have a setup, that works physically correct across multiple modifiers (cloth, rigid bodies, fluid). This will be a to do for 2.92.
2020-11-18Cleanup: clarify precedence of operationsCampbell Barton
2020-11-17Cleanup: Use LISTBASE_FOREACH macroHans Goudey