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
2017-10-18Cleanup: Use const for RNA EnumPropertyItem argsCampbell Barton
Practically all access to enum data is read-only.
2017-10-16WM: refactor gestures for use as toolsCampbell Barton
Border and circle select wait for input by default. This commit uses bool properties on the operators instead of magic number (called "gesture_mode"). Keymaps that define 'deselect' for border/circle select begin immediately, exiting when on button release.
2017-10-16Cleanup: modal operator border callback namesCampbell Barton
Use same convention as all others. Remove 'select' since these are used for zoom as well.
2017-10-16WM: Don't save mouse-paths to operator historyCampbell Barton
In preparation for modal operators storing their properties, no need to keep mouse-paths around. Also use generic function for lasso properties.
2017-10-16WM: remove hard-coded circle radius memoryCampbell Barton
Replace with operator type 'last_properties'. Also use generic function for circle gesture properties.
2017-09-27Math Lib: Add non-clamped round_* functionsCampbell Barton
Replace iroundf with round_fl_to_int, add other types
2017-09-08Fix: Grease Pencil pie menu keymaps were broken after the menus got renamedJoshua Leung
2017-09-03Fix: Deleting GPencil keyframes in DopeSheet didn't redraw the viewJoshua Leung
2017-09-03Fix: GPencil Sequence Interpolation for thickness/strength was invertedJoshua Leung
For example, if you have two keyframes: k1 = 1px, k2 = 10px it was doing: 1px, 9px, 8px, ..., 3px, 2px, 10px instead of: 1px, 2px, 3px, ..., 8px, 9px, 10px
2017-08-22Fix T52483: Fill is incorrect for interpolated strokesAntonio Vazquez
The recalc flag must be enabled for new interpolated strokes.
2017-08-01Cleanup: use static vars where appropriateCampbell Barton
2017-07-24Correct invalid assert useCampbell Barton
2017-06-23Grease Pencil: Fix hardcoded DKEY for continous drawingDalai Felinto
2017-06-19Cleanup: doxygen commentsCampbell Barton
Also remove duplicate & mismatching comments from grease-pencil header. Keep comments close to implementation to avoid getting out of sync.
2017-06-16Usual i18n/UI messages fixes.Bastien Montagne
Please do not add useless tooltips! We have enough messages to translate already...
2017-06-08Cleanup: cmake indentation, missing includeCampbell Barton
2017-06-07Fix: GP Clone brush was not correcting color references for pasted strokes ↵Joshua Leung
either
2017-06-07Fix: Pasting GP strokes files between files (or when the original colors ↵Joshua Leung
were deleted) would crash The problem was that the strokes in the copy-paste buffer could be keeping dangling pointers to colors that were already freed. Therefore, this commit makes it so that when copying the strokes, we now make copies of the colors and put them in a hashtable beside the stroke buffer. This is convenient, as it saves us having to look up what colours need to be copied over each time when pasting.
2017-06-07GP Copy/Paste Fix: Paste button doesn't update after copying strokes using ↵Joshua Leung
Ctrl-C
2017-06-07GPencil Copy/Paste Fix: Copying/Pasting strokes between datablocks would crashJoshua Leung
The problem was that newly pasted strokes were still using colours from the original datablock. As a result, you'd either get an immediate crash, or if you managed to save the file before it crashed, each stroke would get reloaded with a dummy colour. This commit fixes makes it possible to copy/paste strokes between datablocks again. However, there are still problems when trying to paste across file boundaries (i.e. copy strokes in one file, paste in another), which the next commit will address.
2017-05-30Fix UI message (no points and no phrases in tooltips please!).Bastien Montagne
2017-05-29UI: Make GP "Add Blank Frame" operator name and description fit its behavior.Thomas Beck
The operator is indeed not adding frames but inserting them at the current frame (shifting all subsequent ones). Changed the operator name and description. Approved by Antonio.
2017-05-19Cleanup: add braces for multi-line blocksCampbell Barton
2017-05-15Cleanup: warnings, styleCampbell Barton
2017-04-29Cleanup: comment blocksCampbell Barton
2017-04-24Cleanup: styleCampbell Barton
2017-04-16Fix T49617: Grease Pencil Stroke Placement regressionAntonio Vazquez
When moved the options to toolsetting, this part was missing. The problem was not the pointer as suggested in D2629. Thanks Arvīds Kokins for his help fixing this bug
2017-04-10GPencil 2D drawing code: minor optimization.Bastien Montagne
Do not recompute both points's 2D coordinates for each segments, we can copy over from previous one... Does not gives any measurable speedup off hands, though.
2017-04-01Cleanup: styleCampbell Barton
2017-03-29Fix missing NULL check in gpencil pollCampbell Barton
Also de-duplicate poll functions
2017-03-01Cleanup: code-style, duplicate headerCampbell Barton
2017-02-09Fix: GPencil delete operators did not respect color lockingJoshua Leung
2017-01-20Fix minor glitches in GP code.Bastien Montagne
Reported by coverity scan.
2017-01-19GPencil: Add option to create blank frame in active layer onlyAntonio Vazquez
Now it is possible to select if the blank frame is created in active layer only or in all layers.
2017-01-18Fix strict compiler warning messageSergey Sharybin
2017-01-18GPencil: Avoid variable shadowingSergey Sharybin
2017-01-18Reproject Strokes - To Surface/GeometryJoshua Leung
Experimental option for the Reproject Strokes operator to project strokes on to geometry, instead of only doing this in a planar (i.e. parallel to viewplane) way. The current implementation is quite rough, and may need to be improved before it is really ready for use. Potential issues: * Loss of precision (i.e. stairstepping artifacts) from the 3D -> 2D -> 3D conversion as we don't have float version of one of the projection funcs * Jagged depth if there are gaps, since it will default back to the 3d-cursor plane if no geometry was found (instead of doing some fancy interpolation scheme) * I'm not sure if it's that useful for adapting GP strokes to deforming geometry yet...
2017-01-18Fix: Make it possible to erase strokes (on other layers) even if the active ↵Joshua Leung
layer doesn't have any frames
2017-01-18Fix: Avoid creating redundant frames when erasingJoshua Leung
Now the eraser checks if there's an active frame with some strokes in it before creating a new frame. There's no point in creating a new frame if there are no strokes in the active frame (if one exists). This still doesn't help much if there were strokes but they weren't touched though...
2017-01-18GPencil: Pressing 'B' while in 'Continuous Drawing' mode will create a blank ↵Joshua Leung
frame This is a hardcoded keymapping that just calls the "Add Blank Frame" operator introduced in the previous commit.
2017-01-18GPencil: "Add Blank Frame" operator (D+B)Joshua Leung
This operator adds a new frame with nothing in it on the current frame. If there is already a frame there, all existing frames are shifted one frame later. Quite often when animating, you may want a quick way to get a blank frame, ready to start drawing something new. Or maybe you just need a quick way to add a "placeholder" frame so that a suddenly-appearing element does not show up before its time.
2017-01-18Cleanup: Strict compiler flagsSergey Sharybin
Also seems the new file forced trailing whitespace, which goes against https://wiki.blender.org/index.php/Dev:Doc/Code_Style#Trailing_Space
2017-01-18GP Interpolation: "Remove Breakdowns" operatorJoshua Leung
To make it faster to try different interpolation curves, there's a new operator "Remove Breakdowns" which will delete all breakdowns sandwiched by normal keyframes (i.e. all the ones that the previous run of the Interpolation op created)
2017-01-18GP Interpolate Sequence: Tool settings for controlling the shape of ↵Joshua Leung
interpolation This commit introduces the ability to use the Robert Penner easing equations or a Custom Curve to control the way that the "Interpolate Sequence" operator interpolates between keyframes. Previously, it was only possible to get linear interpolation between the gp frames. Workflow: 1) Place current frame between a pair of GP keyframes 2) Open the "Interpolate" panel in the Toolshelf 3) Choose the interpolation type (under "Sequence Options") 4) Adjust settings (e.g. if you're using "Custom Curve", use the curvemap widget to define the way that the interpolation proceeds) 5) Click "Sequence" to interpolate 6) Play back/scrub the animation to see if you've got the result you want 7) If you need to make some tweaks, undo, or delete the generated keyframes, then repeat the process again from step 4 until you've got the desired result.
2017-01-18GP Interpolate: Move settings from "gp_sculpt" to a new toolsettings struct ↵Joshua Leung
- "gp_interpolate" The "gp_sculpt" settings should be strictly for stroke sculpting, and not abused by other tools. (Similarly, if other general GP tools need one-off options, those should go into the normal toolsettings->gpencil_flag) Furthermore, this paves the way for introducing new settings for controlling the way that GP interpolation takes place (e.g. with easing equations, or a custom curvemap)
2017-01-18GP Interpolate Code Cleanup (Second Round)Joshua Leung
* Reduce scope of variables * Simplify a lot of the active_gpl->actframe->...->framenum stuff * Missed some error messages
2017-01-18Code Cleanup for GP Interpolation ops (first pass)Joshua Leung
* Reshuffled some blocks of code for better ease of navigation/flow in the file * Improved some tooltips * Removed "Helper" tag from some functions that serve bigger roles * Fixed some errant formatting
2017-01-18Code Cleanup: Move GPencil Interpolation operators into their own fileJoshua Leung
The interpolation operators (and their associated code) occupied a significant portion of gpencil_edit.c (which was getting a bit heavy). So, it's best to split these out into a separate file to make things easier to handle, in preparation for some further dev work.
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).
2017-01-02GPencil: Per-layer option to always show onion skinningJoshua Leung
Sometimes it can be useful to be able to keep onion skins visible in the OpenGL renders and/or when doing animation playback. In particular, there are two use cases where this is quite useful: 1) For creating a cheap motion-blur effect, especially when the before/after values are also animated. 2) If you've animated a shot with onion skinning enabled, the poses may end up looking odd if the ghosts are not shown (as you may have been accounting for the ghosts when making the compositions). This option can be found as the small "camera" toggle between the "Use Onion Skinning" and "Use Custom Colors" options.