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
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-08-27CleanupCampbell Barton
2014-08-26Fix T41590: When scene scale is not 1.0, and units are "None," Blender ↵Bastien Montagne
assumes translations are in meters. Turned out there were several issues in handling of scale parameter by numinput. Fixed that by factorizing more some code in common with 'usual' numbuttons eval code (new `bUnit_getScaleUnit()` helper will return valid scaled value, depending on given system and type). Now, numinput behaves as expected - using default unit amended by scale in case no unit is given (i.e. entering '20' with a scale of 0.01 will give you 20cm, and '20cm' as well!).
2014-08-25Followup to previous commit: fix same wrong numinput handling in other modal ↵Bastien Montagne
ops. Also stumbled uppon 'move marker' code, was needing a bunch of fixes, cleanup and simplification, and added a candy feature - now you will enter numinput values in seconds when editor is in 'time' mode, instead of frames!
2014-08-18Fix T40653: Modified keymap: MMB not behaving like RMB?Bastien Montagne
Modal frame_change was not terminating on mmb release event...
2014-08-05Cleanup: indentationCampbell Barton
2014-07-30BLI_listbase: consistent name prefixCampbell Barton
2014-07-29Fix T41228: Selection of bones bug.Bastien Montagne
Turns out to be mostly some cleanup in Pose select code, got rid of magic numbers (now understand usual SEL_xxx enums) in ED_pose_deselectall(), which was renamed to ED_pose_de_selectall, and have a new bool parameter to ignore visibility status in its process (was the root of the reported issue). Also factorized slightly "(de)select all" code. Yet this area could use much more cleanup probably...
2014-07-19Defines: replace ELEM3-16 with ELEM(...), that can take varargsCampbell Barton
2014-07-10Fix for invalid memory access in graph editor when deleting the lastLukas Tönne
vertex in a fcurve.
2014-07-07Fix for RNA_int/enum mixupCampbell Barton
2014-07-06Code cleanupJoshua Leung
- Fixed incorrect section heading - Missed one place where short was still used when the specific enum type would be more appropriate
2014-07-06NLA/AnimEditors: Added operator to remove all "empty" AnimData blocksJoshua Leung
It is sometimes possible to end up with a lot of datablocks which have old + unused "AnimData" containers still attached. This most commonly happens when doing motion graphics work (i.e. when some linked-in objects may have previously been used to develop a set of reusable assets), and is particularly distracting in the NLA Editor. This commit adds an operator which removes AnimData blocks (restricted to only those which are visible in the animation editor where it is run from) which are "empty" (i.e. that is, have no active action, drivers, and nla tracks or strips). This operator can be found from the "Edit" menu in the NLA Editor. Although it also works when run from the DopeSheet or Graph Editors, it is of less use there since those won't show these empty AnimData blocks by default (since by definition, such AnimData blocks necesarily have no keyframes or drivers that can be shown), hence there will be no feedback if the operator fails or succeeds.
2014-07-04Style cleanupCampbell Barton
2014-06-30Fix T40862: numinput transform did not take into account scale_length.Bastien Montagne
2014-06-24Code Cleanup - Using the enum types in more API signatures instead of ↵Joshua Leung
relying on coders to do the right thing
2014-06-24Code Cleanup - Replacing shorts with bools and enum typesJoshua Leung
2014-06-24Ctrl-F now activates the filter-by-name functionality for Animation EditorsJoshua Leung
2014-06-24Improve doxygen comment to include some type info to make it more usefulJoshua Leung
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-16Feature Request T40643: Animation channels can be renamed by double-clicking ↵Joshua Leung
on them too
2014-06-13GSet, GHash: Add BLI_gset_add, since its common to add members to a setCampbell Barton
also rename BLI_edgeset_reinsert -> BLI_edgeset_add, in this case its the same.
2014-06-13Code cleanup: BLI_strdupn -> BLI_strdupCampbell Barton
2014-06-09Quiet assert in debug mode, deleting mask/gpencil keysCampbell Barton
2014-06-06Code cleanup: styleCampbell Barton
2014-05-29Comments: Note direction in doxy argsCampbell Barton
2014-05-29Cleanup: Use doxy for more structured commentsCampbell Barton
2014-05-22For increased type safety, ANIM_animdata_filter() now specifies the enums ↵Joshua Leung
its arguments can use Hopefully this should help prevent bugs lik T40304 from occurring again.
2014-05-22Previous commit uncovered another bug - Ungrouped FCurves couldn't be ↵Joshua Leung
rearranged still This was because to the filtering code, those FCurves still weren't in any groups, and so couldn't be visible (since a temporary group is created to house them). As a result, the visible-channels list would be empty, causing all hidden FCurves to be treated as hidden.
2014-05-22Fix T40304: Rearranging NLA Tracks (and actually, all animation channels) ↵Joshua Leung
didn't work anymore These were broken by 1f3655d224196129fc6daf20e678199b95321bff, since an argument of the wrong type was getting passed to ANIM_animdata_filter(), resulting in no channels ever being picked up for the "visible channels" list.
2014-05-22Bugfix T40292: Trying to rename shapekey datablocks from AnimEditors renamed ↵Joshua Leung
object instead
2014-05-18Fix T40201: Keyframe edits fail to update the viewportCampbell Barton
2014-05-14Fix FCurve mirror ignoring aligned/free handlesCampbell Barton
2014-05-14Fix T40187: Can't set single keyframe handle as VectorCampbell Barton
ANIM_editkeyframes_refresh was testing handle selection as if those handles were transformed. This is already handled by areas which need it, so simply replace testhandles_fcurve -> calchandles_fcurve. This was causing other bugs such as inserting a keyframe changing handles of unrelated fcurves.
2014-05-09Code cleanup: Define a dedicated "channel_role" field for animchannel typesJoshua Leung
This makes it easier for finding the active or first selected channel (where actual data channels need to be favoured over expanders - which come first), as previously, long switch statements were needed everytime.
2014-05-08Bugfix: "Lock time to frame range" didn't work in the Graph EditorJoshua Leung
This uses a different operator than the other time editors (as it needs to support the setting of the value-cursor too), so the changes here didn't get propagated through.
2014-05-07Get rid of custom tooltip for pushdown buttonJoshua Leung
2014-05-05Fix: T40016 ID Names translated in menusCampbell Barton
2014-05-05Code cleanupCampbell Barton
2014-05-05NLA Editor: Added dedicated operator for the pushdown operationJoshua Leung
2014-05-05NLA Editor: Polishing a few rough edges with the cleanupJoshua Leung
2014-05-05NLA Editor: Second part of porting NLA Action channel to standard drawing systemJoshua Leung
This now works (barring one or two minor glitches and the operator on the pushdown button being a bit of a hack). The old drawing code is still in place though, and will be kept around for a little while yet while the last kinks are ironed out.
2014-05-05NLA Editor Drawing: Set up AnimChannelType callbacks for drawing NLA EditorJoshua Leung
This commit lays some of the groundwork needed to port the last of the NLA Editor channel types that's still defined using custom code. By moving this code over to the newer standardised framework, this will enable widgets to have tooltips to make it easier for users to find out what various buttons do. Currently this isn't hooked up to anything though.
2014-05-04Fixes for errors uncovered after previous commitJoshua Leung
2014-05-04Code cleanup: Use enum instead of int in function signatures for ↵Joshua Leung
bAnimChannelType settings callbacks
2014-05-03NLA Editor: Show correct tooltip for "NLA Mute" on datablock expandersJoshua Leung
2014-05-03Spelling fixJoshua Leung
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