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
2018-10-29Fix unneeded/unwanted user counter when freeing CoW NLASergey Sharybin
2018-10-19Remove defunct NLA_OT_bakeDalai Felinto
It's been 9 years too long. And don't get this one confused with nla.bake (why would you even?). The·BakeAction operator will be renamed to NLA_TO_bake next.
2018-09-24Merge branch 'master' into blender2.8Brecht Van Lommel
2018-09-24Spelling fixes in comments and descriptions, patch by luzpaz.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3719
2018-06-17Merge branch 'master' into blender2.8Campbell Barton
2018-06-17Cleanup: trailing space for blenkernelCampbell Barton
2018-06-12Merge branch 'master' into blender2.8Bastien Montagne
Conflicts: source/blender/editors/object/object_add.c source/blender/editors/object/object_relations.c
2018-06-12Cleanup: remove some G.main from BKE area.Bastien Montagne
2018-06-01Merge branch 'master' into blender2.8Campbell Barton
2018-06-01Cleanup: trailing whitespace (comment blocks)Campbell Barton
Strip unindented comment blocks - mainly headers to avoid conflicts.
2018-03-08Merge branch 'master' into blender2.8Campbell Barton
2018-03-08Cleanup: Use BKE_ prefix for all public functions exposed by the NLA moduleJoshua Leung
2018-03-08T54233: NLA "Push Down" discards Blend Mode, Extrapolation, and InfluenceJoshua Leung
Each AnimData block has a set of Blend/Extrapolation/Influence settings that can be used to control how the active action is blended with the NLA stack. However, these settings were not getting copied over to the newly created strips (as the push-down code existed long before these settings were added). This commit solves this in several ways: * Active Action Blend/Extrapolation/Influence settings now get copied to the new strips when adding them to the NLA stack via Push Down. Note: This doesn't happen when there are no existing NLA tracks, as these settings don't get used in that case. * Strip Influence will be copied across when inf < 1.0 (i.e. when a non-default value is used), to maintain the effect. To make this work, the influence value will get added as a keyframe to the strip's "Influence" Control FCurve. - See code comments for an alternative approach and why that was not chosen - Strip Time still doesn't get keyframes added automatically yet. * To ensure the "extrapolation mode" settings don't get always overwritten, I've put in place a compromise: the extrapolation will only get changed if the chosen setting will cause problmes (i.e. hold forward & back -> hold forward if there are other tracks before it already). Not safe for backporting to 2.79[x] stable releases.
2017-11-02Merge branch 'master' into blender2.8Campbell Barton
2017-11-01Implement a new automatic handle algorithm to produce smooth F-Curves.Alexander Gavrilov
The legacy algorithm only considers two adjacent points when computing the bezier handles, which cannot produce satisfactory results. Animators are often forced to manually adjust all curves. The new approach instead solves a system of equations to trace a cubic spline with continuous second derivative through the whole segment of auto points, delimited at ends by keyframes with handles set by other requirements. This algorithm also adjusts Vector handles that face ordinary bezier keyframes to achieve zero acceleration at the Vector keyframe, instead of simply pointing it at the adjacent point. Original idea and implementation by Benoit Bolsee <benoit.bolsee@online.be>; code mostly rewritten to improve code clarity and extensibility. Reviewers: aligorith Differential Revision: https://developer.blender.org/D2884
2017-10-21Merge branch 'master' into blender2.8Campbell Barton
2017-10-20Fix T46163: NLA properties with drivers aren't displayed as having driversJoshua Leung
While such drivers will generally get evaluated too late to be of much use during animations, it can still be useful to allow using drivers to control a whole bunch of NLA strip properties (i.e. syncing NLA strip timings via a single property/control). Keyframe insertion however is still not allowed on these properties (and an error message will now be displayed when trying to do so, instead of silently failing), as it is useless.
2017-08-18Audaspace: Moving audaspace 1.3 into extern.Jörg Müller
Deleting the old internal audaspace. Major changes from there are: - The whole library was refactored to use C++11. - Many stability and performance improvements. - Major Python API refactor: - Most requested: Play self generated sounds using numpy arrays. - For games: Sound list, random sounds and dynamic music. - Writing sounds to files. - Sequencing API. - Opening sound devices, eg. Jack. - Ability to choose different OpenAL devices in the user settings.
2017-01-16Cleanup/refactor: Add new BLI_string_util.Bastien Montagne
Things like `BLI_uniquename` had nothing, but really nothing to do in BLI_path_util files! Also, got rid of length limitation in `BLI_uniquename_cb`, we can use alloca here to avoid overhead of malloc while keeping free size (within reasonable limits of course).
2016-07-10Cleanup/Refactor: pass Main pointer to all ID copy functions.Bastien Montagne
Also allows us to get rid of a few _copy_ex() versions...
2016-07-07Cleanup: spelling, styleCampbell Barton
2015-11-09Cleanup: avoid incrementing/decrementing id->us outside of BKE_library.Bastien Montagne
We have callbacks for that, they also do some checks and help ensure things are done correctly. Only place where this is assumed not true is blenloader (since here we may affect refcount of library IDs as well...).
2015-10-08Fix T46236: NLA transition strips do not get resized when neighbouring ↵Joshua Leung
strips change Transition strips in the NLA should always stick to whatever strips are beside it, and are allowed to grow/shrink as needed to achieve this. Previously the code here was only checking if the neighbouring strips started encroaching on the transition, but not whether the transition needed to grow to fill a gap. It was also just moving all strips when there was insufficient space, even though that would alter timing down the track. Now transition strip resizing works as follows: * It will grow/shrink as necessary to absorb any changes in the length of its neighbours instead of shunting everything around to maintain its length * If the neighbour has been resized by an amount greater than the transition's length, all the strips will need to be shunted away to make way for the neighbour. In this case, the transition will shrink down to being 1 frame long to ensure that it is still visible (so that it can be removed if necessary).
2015-10-08Fix T46391: Sync Length in NLA is not working on all instances of clipJoshua Leung
2015-10-08Fix: "Tweak user" red-alert flag was not getting set on strips on active trackJoshua Leung
The "tweak user" flag used to flag strips using the same action as the active strip was not getting set on other strips that live on the same track as the active one. Strips with this flag set are shown with a red colour to indicate that editing the action may have the unintended consequence of modifying another strip.
2015-08-18Refactor translation code out of blenfontCampbell Barton
- Add blentranslation `BLT_*` module. - moved & split `BLF_translation.h` into (`BLT_translation.h`, `BLT_lang.h`). - moved `BLF_*_unifont` functions from `blf_translation.c` to new source file `blf_font_i18n.c`.
2015-07-28Audaspace: fixing problems for the merge to master suggested by Campbell and ↵Jörg Müller
Sergey. - rename WITH_EXTERNAL_AUDASPACE to WITH_SYSTEM_AUDASPACE. - rename C/PYAUDASPACE to AUDASPACE_C/PY - simplifying cmake defines and includes. - fixing include paths and enabling WITH_SYSTEM_AUDASPACE for windows. - fixing scons building. - other minor build system fixes.
2015-07-28Audaspace: use standalone library.Jörg Müller
- Added the cmake configuration option WITH_EXTERNAL_AUDASPACE. - Fixes to build without standalone library as well.
2015-04-20Action Stashing: Newly stashed strips now get "sync length" option enabled ↵Joshua Leung
by default
2015-04-14NLA: Store track that the strip being tweaked comes fromJoshua Leung
There should be no functional changes visible from this change, but this commit should make it easier to code tools which need to check on tweeakmode status, by making it easier to figure out which NLA Track contains the strip which owned the action being edited. (The strip is already saved, so this commit just adds the track alongside it). For now there is no version patch for this. The worst that happens is that an extra refresh is needed in the NLA editor to get these to show up.
2015-04-14NLA: Shift-Tab toggles tweakmode AND makes that track soloJoshua Leung
To help make it more convenient to edit stashed actions, Shift-Tab (i.e. holding down the Shift key, which "tabbing" into tweakmode as usual to edit the action referenced by the active NLA strip) now flags the NLA Track that the strip occupies as being "solo" too. This allows you to use the NLA to select a stashed action, then Shift-Tab to start editing it without any other actions in the NLA stack interfering. Like the "Next/Previous Layer" tools in the Action Editor, this is designed to help with checking on stashed actions.
2015-04-03Bugfix: Stashed actions now get added to the bottom of the NLA Stack if ↵Joshua Leung
there weren't any stashed actions already
2015-03-01Bugfix T43851: Creating a new action after stashing crashes blenderJoshua Leung
2015-02-28Tweaks for NLA and newly added Action Stash TracksJoshua Leung
* Do not make Action Stash Tracks or their strips active/selected * Lock the track to prevent accidental editing/adding of other strips * Prevent strips from being added into locked tracks by the pushdown operator. This is mainly to prevent pushdown actions from getting into the stash tracks.
2015-02-28Action Stashing: Don't allow an action to get stashed more than onceJoshua Leung
2015-02-28Reshuffle codeJoshua Leung
2015-02-28Code Cleanup: Separate out the logic for stashing actions into a separate ↵Joshua Leung
function
2015-02-28NLA: Auto-Blends option is no longer enabled on all newly added stripsJoshua Leung
This may be put back again later, but currently, this is a bit too trigger-happy to have it on. It tends to mess up results more than it helps.
2015-01-01cleanup: redundant casts & const cast correctnessCampbell Barton
2014-12-01Cleanup: more int->bool.Bastien Montagne
2014-11-16Cleanup: use BLI_listbase_*** prefix for count,sort,sort_rCampbell Barton
2014-08-04Cleanup: replace int cast with floorf when comparing timeCampbell Barton
2014-07-19Defines: replace ELEM3-16 with ELEM(...), that can take varargsCampbell Barton
2014-05-29Cleanup: Use doxy for more structured commentsCampbell Barton
2014-04-28NLA Editor: Duplicate/Duplicate LinkedJoshua Leung
This commit changes the default strip duplication behaviour (Shift-D) so that it will create a copy of whatever action it uses. Previously, it was very hard, if not impossible in some cases to create a new copy of an action to start working on in the NLA. If you want the old behaviour, you'll need to use ALt-D (Linked Duplicates). (Note: Although the new Shift-D may not be so optimal in all cases, I've decided to go with this version since it aligns better with the way this works for objects. Doing the opposite for NLA would just have added to the confusion)
2014-04-11Code cleanup: use boolCampbell Barton
2014-02-07ListBase API: add utility api funcs for clearing and checking emptyCampbell Barton
2014-02-05Code cleanup: use bool for static methodsCampbell Barton
2014-02-03Code cleanup: use bools where possibleCampbell Barton
2013-06-12Bugfix [#35668] Tooltip for Euler Discontinuity Filter was misleadingJoshua Leung
The tooltip seemed to hint that this tool is able to resolve all manner of gimble-lock situations by untangling the curves (i.e. performing some kind of equivalent-angles resolution, keeping in mind the nearest situations nearby). However, this tool currently only performs corrections for the most basic case when large jump+flip discontinuity artifacts appear in euler rotation curves as a result of rotation values getting clipped to +/- 180 degrees, which arises when these rotation curves are the result of baking some physics sim or so. (Also, fixed an unrelated "replace-all" typo in a comment)