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
2015-12-13Dopesheet: Mirroring GPencil keyframes now works againJoshua Leung
2015-12-13Dopesheet: IKEY (Insert Keyframe) operator now works in GPencil ModeJoshua Leung
It will create blank keyframes, or copies of the prevailing keyframe, depending on whether "Additive Drawing" is enabled or not.
2015-12-13Grease Pencil: Merge GPencil_Editing_Stage3 branch into masterJoshua Leung
This commit merges all the work done in the GPencil_Editing_Stage3 branch as of ef2aecf2db981b5344e0d14e7f074f1742b0b2f7 into master. For more details about the changes that this brings, see the WIP release notes: http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.77/GPencil
2015-11-28Cleanup: 'area' vs 'region'Julian Eisel
Apparently this is the result of some sloppiness during 2.5 project and since then it confused people who were trying to understand the area-region relation (myself included). Sorry if this causes merge conflicts for anyone, but at some point we really had to do it :/
2015-11-23Cleanup: use `rna_enum_` prefix for RNA enumsCampbell Barton
Definitions could shadow local vars.
2015-11-09Fake user: add BKE_library helpers to set/clear that flag.Bastien Montagne
Since it also involves usercount manipulation, safer and cleaner to do it in BKE_library...
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-09-02Fix T45995: Auto-set preview range sets superfluous end key.Bastien Montagne
get_keyframe_extents() would add an extra frame in case of mono-key fcurves in selected set... Now do the 'not same start/end frames' check later, and also use floor/ceil instead of round (we want to start at frame 3 if first key is at frame 3.8, reversed-same goes for end frame).
2015-08-25Action Management Feature Request/Regression T45535Joshua Leung
By popular request, restored the ability to shift-click on the X (unlink) button to unlink the action (from the active action slot), clear the Fake User, and also remove the NLA-stashed copy (only works for the current object/NLA stack though).
2015-08-21Anim Editors: All keyframe selection operators now perform undo pushesJoshua Leung
This brings them into line with other editing tools (e.g. object/mesh selection), and should help fix bugs like T45374 and T45846
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-08-04SCons: Fix for really nasty bug with polluting configuration environmentSergey Sharybin
The issue was caused by the following construction: def = env['SOMETHING'] defs.append('SOMETHING_MORE') Since first assignment was actually referencing environment option it was totally polluted hawing weird and wonderful side effects on all other areas of Blender.
2015-07-29Clean channels tool for Hwoozeberry.Antony Riakiotakis
Basically it's a clean keyframes tool, but also removes a channel if the only remaining keyframe has the default value only and is not used by drivers or generative modifiers. It's was used to help with performance of keyframe-heavy scenes in gooseberry. Note, as always the curve left after the clean tool is used is not the same as the original, so this tool is better used before doing custom editing of fcurves and after initial keyframe insertion, to get rid of any unwanted keyframes inserted while doing mass keyframe insertion (by selecting all bones and pressing I for instance)
2015-05-15Zoom to frame options, requested by the Hwoozeberry (dutch translation)Antony Riakiotakis
team. There are 3 options here: 1) Keep range (previous behaviour) 2) Seconds - allows a specified offset in seconds around current frame 3) keyframes - zoom to include a number of keyframes around the cursor Options 2 and 3 have their own properties to tweak the behaviour and all options can be found in User Preferences->Interface under the 2D viewports section. Number 3 will probably need some refinement so commiting here for the hwoozeberry team to test first.
2015-04-14Action Editor: Make the warning on unlinking actions a bit less intrusiveJoshua Leung
venomgfx was complaining that having it do the popup everytime was too intrusive, so demoting it to just showing the warning in the header.
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-14Fix T44362 no easy way to repeatedly duplicate keyframes in actionAntony Riakiotakis
editors. Reporter used a hacky work-around by placing cursor at end of keyframe range and doing ctrl-C ctrl-V repeatedly. This was working on 2.73 but not anymore since the old selection is not kept. Much better is to have duplication operator be repeatable. This commit takes care of that.
2015-04-13New operator for action and graph editor that centers around currentAntony Riakiotakis
scene frame, bound to numberpad zero.
2015-04-10Move clean operator from action/ipo editors to the delete menu, now thatAntony Riakiotakis
O key is bound to proportional editing.
2015-04-09Separate proportional editing options for graph and action editor.Antony Riakiotakis
2015-04-09Disable proportional editing when duplicating keyframesAntony Riakiotakis
2015-04-09Cleanup: redundant NULL checksCampbell Barton
2015-04-07Proportional editing support for the action editor.Antony Riakiotakis
There are a few things here which are not so nice: * Position of proportional edit circle is not centered on data (difficult to predict positions here since those are completely custom, will probably be positioned at center of area later instead) * Result is flushed to curve handles only at the end of the transform, so if people have the graph editor open they will see handles lagging behind.
2015-04-04CleanupCampbell Barton
2015-04-04WIP: Added dedicated operator for unlinking actions from the Action Editor ↵Joshua Leung
(NLA buttons support to come) After looking into this more carefully, I've found that we do in fact need a dedicate operator to add some custom logic when trying to unlink an action from the editor/datablocks. Specifically, this new operator does the following: 1) When in Tweak Mode, it shouldn't be possible to unlink the active action, or else, everything turns to custard. 2) If the Action doesn't have any other users, the user should at least get a warning that it is going to get lost. 3) We need a convenient way to exit Tweak Mode from the Action Editor 4) If none of the above apply, we can just unlink normally This commit implements this for the Action Editor, with stubs for the NLA Editor too. Those will be fixed next.
2015-04-04Tweaks to descriptions for Action Layer Up/DownJoshua Leung
2015-04-03Fix: Drawing glitch when renaming animation channelsJoshua Leung
When renaming animation channels, the old names are no longer drawn behind the text boxes anymore. This used to cause problems if the names were long, or if text boxes were set to have transparent backgrounds. Thanks to kopias for reporting on IRC.
2015-04-03Fix: Action/NLA Tweakmode ChecksJoshua Leung
Made all action management operators use the AnimData-local flag instead of the scene global one. Technically, this is more accurate and results in less blocking situations (i.e. another object may be in tweakmode, but because of that, the active object's action couldn't be stashed). The main impetus for this though was that the Action Up/Down feature doesn't clear the global flag, since it is not in a position to do so (since it can't load up everything to clear it). TODO: I'll need to review how this global flag works and/or potentially ditch it (or perhaps add some better ways to ensure that it stays valid), since while thinking this over, I've noticed a few problems here. But, for the meantime, this commit at least makes things more usable here in the short term.
2015-04-03Action Layer Up/Down: Fixes for NLA Solo / NLA MutingJoshua Leung
Now marking NLA Tracks as Solo'd and muting the NLA stack are linked together when using the Action Layer Up/Down tools. That is, when switching from a NLA strip to the active action, if the track was solo'd, then the NLA stack will get muted; and when switching from the active action to a NLA track, if the stack was muted, the track will get solo'd. This linkage means that we ensure that when moving up and down the stack, we can continue to check the actions in isolation without things messing up when you switch to and from the active action. Also fixed a bug where this wasn't getting applied when going in the other direction. TODO: - When we get the rest/reference track support, we're going to need to insert some calls to flush the restpose values so that values from the previously used action do not pollute the pose for the new action (if not all the same controls get keyed across both). For now, it's best to only do this switching from the first frame.
2015-04-03Code Cleanup: Deduplicate logic to switch between NLA Strips/ActionsJoshua Leung
2015-04-03Code Cleanup: Split out duplicate code for finding an available NLA strip ↵Joshua Leung
above/below
2015-04-03Action Editor: Go to Next/Previous Animation LayerJoshua Leung
With this feature, it is now possible to quickly switch between different actions stacked/stashed on top of each other in the NLA Stack without having to go to the NLA Editor and doing a tab-select-tab dance, thus saving quite a few clicks. It was specifically designed with Game Animation / Action Library workflows in mind, but also helps layered animation workflows. Usage: Simply click on the up/down arrow buttons (between the action datablock selector and the pushdown/stash buttons) to go to the action in the NLA Track above/below the NLA Strip being whose action is being tweaked in the Action Editor. Notes: - These still work when you're not editing the action used by a NLA Strip. If you're just animating a new action normally, it is possible to use the "down arrow" to temporarily jump down to the previous action without losing the new action you're working on, and then use the "up arrow" to get back to it once you're done checking the other action(s). - If there are multiple actions/strips on the same layer/track, then only the one closest to the current frame will be used.
2015-04-02Code Cleanup: Split Action management operator stuff into action_data.cJoshua Leung
2015-03-30Cleanup: use const for typeinfoCampbell Barton
2015-03-28Cleanup: redundant struct declarationsCampbell Barton
2015-03-28NLA Strip Keyframes: Insert keyframe tools in Anim Editors work nowJoshua Leung
* Insert Keyframe tool for Dopesheet/Graph Editors needed to be modified to not try to resolve the paths for NLA Control Curves * For now, the poll callback to get the "Active FCurve" also works when given a NLA control curve. They're really the same in most cases, and this should be fine until one of the channels does something funky.
2015-03-28Nla Strip Controls: Added special FCurve type (in the animfiltering code)Joshua Leung
Using the standard "FCurve" animchannel type didn't work that well for the control FCurves on NLA Strips, as the paths would not resolve correctly, and the indentation was wrong. Also, there would likely be issues down the track with applying NLA mapping. Hence, it's easier to just create a separate type for this case, and adapt the rest of the code to also consider these (todo).
2015-03-28Bugfix: Fix for crash when trying to create new action in Shape Key ↵Joshua Leung
DopeSheet mode When the active object had no shapekey data, trying to create a new action from the Shape Keys mode of the DopeSheet would crash. The segfault here was a silly regression caused by my earlier Action Stashing work. However, the old (pre-Action Stashing) code here also wasn't that great either. While it didn't crash, it would still silently create a new action, even if that could not get assigned/used anywhere. To prevent both of these problems from happening again, I've added additional null checks, as well as beefing up the poll callback here to forbid keyframing
2015-03-03Grrr, missed those ones in previous commit!Bastien Montagne
2015-03-03UI messages fixes...Bastien Montagne
2015-03-01Bugfix T43851: Creating a new action after stashing crashes blenderJoshua Leung
2015-02-28Action Editor: "New Action" operator now stashes old actions, and is used by ↵Joshua Leung
default again This commit modifies the "New Action" operator to always stash the old action before it creates a new one. As a result, the old active action will now have a proper user of sorts after the new one is created, preventing previously created actions from being lost. Now that the New operator does this, it can be used for the Action Editor header AND NLA Editor (Animation Data Panel -> Active Action) again. The "stash and create" operator is somewhat redundant at this point as a result.
2015-02-28Action Editor WIP: Adding new actions in Action Editor now uses the "stash ↵Joshua Leung
and create new" operator In constrast to the old "new" operator, this operator will stash the existing action in the stack to prevent it from being lost. This situation isn't totally ideal yet, since the NLA Editor still calls the old method.
2015-02-28Action Stashing: Don't allow an action to get stashed more than onceJoshua Leung
2015-02-28Code Cleanup: Deduplicate logic for getting AnimData block associated with ↵Joshua Leung
Action Editor modes
2015-02-28Code cleanup: Split off the creation and setting logic for new actions into ↵Joshua Leung
different functions This is also just as prep for the next step
2015-02-28Code Cleanup: Separate out the logic for stashing actions into a separate ↵Joshua Leung
function
2015-02-28Action Editor: Stash Action OperatorJoshua Leung
This operator (the snowflake icon, beside the pushdown button on the Action Editor header) adds the currently active action to the NLA stack in a muted track, then creates + loads a new action ready to be populated with new keyframes. Since the NLA is being used to hang on to all the actions here, no actions are getting lost. Usage Notes (there will be some additional tweaks to make this nicer): * To preview different actions that have been "stashed", simply click the "Solo" toggle for the track containing the action in question. Playing back the NLA will now show the stashed track * To edit a previously stashed action - simply enter tweakmode on it in the NLA while the "Solo" toggle is enabled. Todo: * Add some more operators here to polish up the Action <-> NLA bridge to make the layered and stash workflows smoother. Examples include some tools to easily switch between the different actions layers in the stack, as well as making it easier to get out of tweakmode (and sync up the action lengths) * Review and cleanup the behaviour of the "new" operator here to avoid the old problems that users were running into * After the next release - Implement the full Action Libraries functionality, with ways to bridge the stashed strips over to a full-blown library.
2015-02-28Fix for previous commit: Pop up a warning in cases where the operator will ↵Joshua Leung
refuse to do anything
2015-02-28Action Editor: Added "Push Down" operator to send the current action on to ↵Joshua Leung
the NLA Stack This commit exposes the "Push Down" button/functionality found in the NLA Editor to the Action Editor, so that actions can be added NLA Stack from here too. The main point of this for now is to make the whole layered-animation workflow nicer more efficient, but not requiring the second editor be visible in common cases. It also conveniently sets things up for the next few changes (already hinted at here)...