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
2016-07-30Py-Driver: add 'self' optionCampbell Barton
Drivers can use this to refer to the data which the driver is applied to, useful for objects, bones, to avoid having to create a variable pointing to its self.
2016-06-27FCurve Auto Colours: "XYZ to RGB" works for Quaternions too nowJoshua Leung
The "W" channel will get a yellowish colour (i.e. a blend between the X/R and Y/G axis colours), while the XYZ will behave as they do for other transforms.
2016-06-08Cleanup: typoCampbell Barton
2016-06-08Cleanup: typosCampbell Barton
2016-05-29Fix: Flip logic order for autokeying checking to cope with files where the ↵Joshua Leung
flags have been set incorrectly Sometimes the autokeying flags don't get set correctly (i.e. the "mode" flags used for 'Add + Replace' vs 'Replace Only' aren't set), meaning that the old logic would always fall through to the "replace only" case. When this happens, the resulting behaviour can be quite strange and hard to debug. This fix prevents problems like this from continuing to be an issue...
2016-03-24Cleanup: use prefix for return argsCampbell Barton
2016-03-24Fix incorrect arg typeCampbell Barton
2016-03-24Driver Keyframing: Some tweaks to make inserting keyframes on Driver ↵Joshua Leung
F-Curves easier Now, when trying to insert a keyframe on a driven property (using IKEY, or with autokeying enabled), the keyframes will get created on the Driver's F-Curve (instead of creating a new FCurve that goes into the active action, but will never do anything). Furthermore, the x-value of the new keyframe will be the current result of the driver expression. Why/Motivations: This way, it becomes easier to create corrective drivers, as you can position all the targets the driver depends on, then adjust the driver value until it does what you need, and then you keyframe that value to bake it into the Driver F-Curve (in effect, "training" the computer how to behave in that case). Usage Notes: * In practice, that particular workflow is still quite clunky to achieve, due to some quirks of how the driver system and the UI widgets interact. Specifically, you'll need to disable/mute the driver before trying to edit the setting (to prevent the driver from immediately resetting the value - before even autokey fires!). However, if you're using the Graph Editor to preview/monitor/manage the keying process, you'll then want to re-enable the driver before changing the targets, so that you can see how much of a change you'll want to be applying! * The warning about editing driver values may need to be disabled or selectively knocked out. I had it disabled while testing this functionality, but it's actually harmless in its current state (if just a bit annoying).
2016-03-13Keyframing: Added ToolSetting for choosing default keyframe typeJoshua Leung
To make it easier for animators working in a multipass pose-to-pose workflow when inserting breakdown keyframes and so forth, it is now possible to specify the "type" of keyframe being created (i.e. the colour of the keyframe, when drawn in the Dope Sheet). Usage: 1) Choose the type of keyframe ("Keyframe", "Breakdown", "Extreme", etc.) from the new dropdown located between the AutoKeying and KeyingSet widgets on the timeline header. 2) Insert keyframes 3) Rejoyce that your newly created keyframes have now been coloured for you already in the DopeSheet. Todo: * Look into a way of using the actual keyframe colours (from the theme) for the icons of these types.
2016-01-27Fix clear keyframes op not reporting when called over a locked fcurve.Bastien Montagne
Debug print here is not that useful to common user, and keyframe deletion does report warning, so do the same for clear op. Reported by venomgfx over IRC, thanks.
2015-11-21Fix/Request T46798: Alt+I removes keyframes from all bones, not only ↵Joshua Leung
selected in Pose Mode Technically this was more of a feature request, but now the Alt-I operator will only remove keyframes related to selected bones in Pose Mode. In Object Mode, it will continue to operate on all keyframes of the object. This change makes this operator more meaningful when animating in the 3D view.
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-24Fix: NLA Strip properties cannot be keyframed if Visual Keying/Only Needed ↵Joshua Leung
options are enabled
2015-06-16Cleanup: styleCampbell Barton
2015-06-13Fix: "Delete Keyframes" RMB-menu option didn't work on NLA Strip propertiesJoshua Leung
2015-05-12Depsgraph: Add additional relations/id update tagsSergey Sharybin
This calls are not strictly speaking needed for the old dependency graph, but due to more granular nature of upcoming depsgraph more actions requires update of relations of IDs. On the one hand this extra tags could be wrapped with if() statements, but on the other hand it makes sense to keep tag in sync so it's clear if some issue is caused by missing/extra tag or by depsgraph itself.
2015-04-30Code Cleanup: Simplified insert_keyframe_button and delete_keyframe_buttonJoshua Leung
As a followup for the previous commit, do the same thing for the insert/delete keyframe button operators as is done for the clear keyframes op. There really isn't much need/reason for conducting the looping there, as those functions natively handle this themselves already.
2015-04-30Code Cleanup: Simplify Clear Keyframes operator's codeJoshua Leung
On second thought, the previous commit was just adding additional complexity which wasn't needed, as the operator was wasting effort by doing this looping itself.
2015-04-30Fix T44558 - "Clear Keyframes" complains when operating on an array property ↵Joshua Leung
and it had deleted the action in the process
2015-04-04Cleanup: use BKE_animdata_* prefixCampbell Barton
2015-04-02CleanupCampbell Barton
2015-03-28Fix T36385: Animated Strip-Time doesnt updateJoshua Leung
This commit implements proper evaluation + keyframing support for animating influence and time on NLA Strips (among other properties) by resolving a few long standing issues which prevented the original design for this from working. The original design for animating these properties (and/or some of the other settings on NLA Strips) is that NLA Strips actually have some of their own F-Curves that are used for animating settings which will affect how they are evaluated. As seen in this bug report, the alternative of having these animated as part of the stack (which the strips work above/outside/on-top of) means that glitches can occur. Although one of the original considerations for why this wasn't implemented earlier was that introducing keyframes there isn't so clean cut, and causes UI design issues for how we expose these via the animation editors for editing (NOTE: support for that is still to come). Another concern is that this sets a precedent for how FModifiers might get evaluated.
2014-11-20Cleanup: ints/shorts -> bool.Bastien Montagne
2014-11-16Bugfix T41525: Button keyframe indicators don't work correctly when editing ↵Joshua Leung
NLA Strips When the active action is a NLA strip, the keyframe indicator colors for buttons and the 3D view indicator (i.e. the current frame indicator changes color) didn't work correctly. This was because they were still checking for keyframes in "global" time space, whereas they needed to be applying NLA corrections to "look inside" the remapped action.
2014-11-11UI Refactor T41640Campbell Barton
Make the UI API more consistent and reduce confusion with some naming. mainly: - API function calls - enum values some internal static functions have been left for now
2014-10-28Fix T41041: 'Delete keyframe' removes markers tooCampbell Barton
Operators that trigger UI events (but nothing else) were using 'CANCELLED' making it impossible to tell if an invoke function failed, or opened a menu.
2014-08-27Fix T41266: Copy and paste operation on f-curves do not respect keyframe ↵Bastien Montagne
tangent handles... Added an extra option to `insert_bezt_fcurve()`, to allow full override of existing keyframes when pasting (in this case, we do not want to inherit handles from existing curve!).
2014-07-19Defines: replace ELEM3-16 with ELEM(...), that can take varargsCampbell Barton
2014-06-19Bugfix for Elastic and Back easing typesJoshua Leung
** TO BE PORTED BACK TO 2.71 ** As pointed out by Thomas Beck (plasmasolutions), the current behaviour and/or default values for their parameters didn't quite make sense: 1) Back Easing - The old default value of 0.0 results in some overshoot being applied, while trying to tweak it up or down resulted in some odd jumps and discontinities. I've ended up removing some code here which forcibly using a "back" value of 1.7 when users wanted 0.0 instead. There doesn't seem to be any good reason for this. To ensure that there is still an effect initially, keyframes now get created with back set to 1.7 2) Elastic Easing - The old default settings of <amplitude = 0, period = 0> resulted in a curve without any elastic bounce, which wasn't very useful for motion graphics. Now, default values of amplitude = 0.8 and period = 4.1 get set. These were hand picked by Thomas to work well when the duration of the motion is 10 frames long (i.e. the typical length of such effects when doing motion graphics).
2014-06-19Style cleanups hereJoshua Leung
2014-06-13Code cleanup: BLI_strdupn -> BLI_strdupCampbell Barton
2014-04-30Code cleanup: remove unused includesCampbell Barton
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-04-30Get the edit-object when keying and checking editmodeCampbell Barton
2014-04-29Ignore user-preferences when inserting keys from PythonCampbell Barton
2014-04-28Fix T39902: Keyframe insertion by a Keying Set fails in the edit mode when ↵Tamito Kajiyama
keyframing object data properties. Reviewers: aligorith Reviewed By: aligorith Differential Revision: https://developer.blender.org/D484
2014-04-24Fix T39851: F-curve noise modifier on a bone: change selection when ↵Joshua Leung
modifying value When the dopesheet was open, "keyframe edited" events from the graph editor (i.e. fired whenever any properties on keyframes or FModifiers are changed) would trigger the dopesheet to synchronise selection states of anim channels and ensure that FCurve autocolours are initialised correctly. This however was undesired when editing properties in the graph editor. Now, made it so that keyframe adding/removing operators use different notifier flags to specify that the channels might have changed + need colour syncing, and adjusted the dopesheet updating logic to fit
2014-04-01Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT defineCampbell Barton
2014-03-31Code cleanup: use boolCampbell Barton
2014-03-19Code cleanup: unreachable break/returnCampbell Barton
2014-03-17Code cleanup: comments and typosCampbell Barton
2014-03-07Comment fixesJoshua Leung
2014-02-07ListBase API: add utility api funcs for clearing and checking emptyCampbell Barton
2014-02-03Code cleanup: use bools where possibleCampbell Barton
2014-01-24Fix T38347: adding object visibility keyframes in the outliner groups andBrecht Van Lommel
libraries view not working. This was disabled in the operator, there may have been a reason for this at some point, but I can't see any reason to disallow it in the current code or find a good reason why it was done in the commit logs.
2014-01-21Cleanup: no need to use constraint space transform API here, we can directly ↵Bastien Montagne
call BKE_armature_mat_pose_to_bone (and avoids the need to get an Object pointer!). Note the former just calls the later internally, in this case.
2014-01-16Code Cleanup: style and redundant castsCampbell Barton
2013-12-20UI: restore confirmation popups for delete operators.Brecht Van Lommel
It turned out this was leading to accidental deleting in some cases when the info message was missed by users. Fixes T37801.
2013-12-17Fix bplayer broken in own rB51f5c994e9f0.Bastien Montagne
2013-12-17Fix T37103: Keyframing custom properties issue (FCurve would not reflect ↵Bastien Montagne
Custom props type changes). Add an helper func to re-compute integer-only fcurve flags, and call it when editing custom props. Reviewed by aligorith, thanks! Summary: Proposal fix for "keyframing custom properties issue" (T37103). Reviewers: aligorith Maniphest Tasks: T37103 Differential Revision: http://developer.blender.org/D111
2013-11-29Fix errors and inconsistencies in confirmation popup removal.Brecht Van Lommel
* Improve some clip editor messages * Remove popup for metastrips, seems unnecessary * Renamed some variables for consistency * Avoid unnecessary call to CTX_DATA_COUNT Reviewed By: sergey, campbellbarton, aligorith Differential Revision: http://developer.blender.org/D44