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-04-30Code cleanup: remove unused includesCampbell Barton
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-04-26Code cleanup: use 'const' for arrays (editors)Campbell Barton
2014-04-21Code cleanup: view2d api namingCampbell Barton
2014-04-21View2d: API Cleanup for view<->region conversionCampbell Barton
View2D had some inconsistencies making it error prone in some cases. - Inconstant checking for NULL x/y args. Disallow NULL args for x/y destination pointers, instead add: - UI_view2d_region_to_view_x/y - UI_view2d_view_to_region_x/y - '_no_clip' suffix wasn't always used for non-clipping conversion, switch it around and use a '_clip' suffix for all funcs that clip. - UI_view2d_text_cache_add now clips before adding cache. - '_clip' funcs return a bool to quickly check if its in the view. - add conversion for rectangles, since this is a common task: - UI_view2d_view_to_region_rcti - UI_view2d_region_to_view_rctf
2014-04-17Fix T39767: Parent in Mask mode crashesCampbell Barton
2014-04-16Fix for half pixel offset rasterizing masksCampbell Barton
2014-04-11Code cleanup: use boolCampbell Barton
2014-04-04Fix for typos in array sizeSergey Sharybin
2014-04-04Fix for mask slide operators didn't work with LMB selectionSergey Sharybin
2014-04-04Mask spline slide didn't respect auto-keySergey Sharybin
2014-04-04Mask spline slide: holding Ctrl will make handles freeSergey Sharybin
2014-04-04Followup to the previous commit: forgot to tweak handle typeSergey Sharybin
2014-04-04Mask spline segment slide improvementSergey Sharybin
This implements weighted slide of second handle, just the same exact way as it works in Gimp.
2014-04-04Mask point slide: clean-up of SlidePointData structureSergey Sharybin
2014-04-04Maks point slide: get rid of jump when you press shiftSergey Sharybin
2014-04-04Mask point slide: remove commented out codeSergey Sharybin
The code wasn't needed for quite a while already, so let's get rid of it.
2014-04-04Mask curvature slide: reduce jumps on slideSergey Sharybin
Also correct wrong logic around tweaking handles type.
2014-04-03Slide mask spline segment to define it's curvatureSergey Sharybin
This actually implements the idea used in Gimp which is grabbing an arbitrary point on the spline and dragging it, ensuring spline goes over this point. This is really useful way to tweak spline curvature. Currently only affects on a closest handle, meaning no weighting on changes for both handles which are adjacent to the same segment will happen just yet, Another limitation is that currently such a slide is a big jumpy when you start sliding. This is because projection is not used to calculate u value because projection used to fail a lot for me here and didn't find a nice solution for this yet. But this is to be improved for sure!
2014-04-03Code cleanup: styleCampbell Barton
2014-04-01Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT defineCampbell Barton
2014-03-31Usual UI messages fixes...Bastien Montagne
2014-03-31Vector handles were hidden but were allowed to slide apparentlySergey Sharybin
2014-03-31Code cleanup: use false/true/bool for maskingSergey Sharybin
2014-03-31Masking: fix for initialdeather point not being offset to the mouse positionSergey Sharybin
2014-03-31Maksing: fix issue when it's not possible to drag right handle of aligned ↵Sergey Sharybin
handles
2014-03-30Style cleanupCampbell Barton
2014-03-28Fix for mask vert add-slide dragging flipped directionCampbell Barton
2014-03-28Implement asymmetric and free handles type for masksSergey Sharybin
Summary: The title actually says it all, it's just possible to have independent free handles for mask splines. Also it's now possible to have aligned handles displayed as independent handles. Required changes in quite a few places, but they're rather straightforward. From user perspective there's one really visible change which is removed Handle Type menu from the panel. With asymmetric handles it's not clear which handle type to display there. So now the only way to change handle type is via V-key menu. Rewrote normal evaluation function to make it deal with new type of handles we support. Now it works in the following way: - Offset the original spline by maximal weight - Calculate vector between corresponding U positions on offset and original spline - Normalize this vector. Seems to be giving more adequate results and doesn't tend to self-intersect as much as old behavior used to, There're still some changes which needed to be done, but which are planned for further patch: - Support colors and handle size via themes. - Make handles color-coded, just the same as done for regular bezier splines in 3D viewport. Additional changes to make roto workflow even better: - Use circles to draw handles - Support AA for handles - Change click-create-drag to change curvature of the spline instead of adjusting point position. Reviewers: campbellbarton CC: sebastian_k, hype, cronk Differential Revision: http://developer.blender.org/D121
2014-03-07Correction to previous commitCampbell Barton
2014-03-07Fix T38990: Crash in mask shape re-keyCampbell Barton
2014-02-17Fix T38669: Mask duplicate fails with multiple layersSergey Sharybin
Allow duplicating splines from inactive layers. This way it's more useful IMO than restricting duplication to an active layer. TODO: What should be a behavior for clipboard (currently it copies splines from an active layer only)?
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
2014-02-02Code cleanup: suffix vars to make obvious they are squaredCampbell Barton
2014-02-01Code cleanup: use length squared where possibleCampbell Barton
2014-01-27Implement clipboard for mask splinesSergey Sharybin
So now it's possible to copy-paste splines between layers. Implementation is pretty much straightforward and duplicates some logic which we've got in sequencer/tracking clipboards. Will work on a common routine for clipboards later, for now it's not so much crucial to have.
2014-01-21Code Cleanup: use bool for return values and correct commentsCampbell Barton
also remove CDDM_Check, theres no need for it.
2014-01-16Code Cleanup: no need to pass empty strings as default valuesCampbell Barton
2013-12-25Code cleanup: no need to switch to threaded alloc, it's done by task poolSergey Sharybin
2013-12-20Don't use with_resol suffix for functions which doesn't get resolutionSergey Sharybin
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-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
2013-11-25Code Cleanup: rename vars for detecting change to be more consistentCampbell Barton
rename change/is_change/is_changed/modified -> changed also use bools over int/short/char and once accidental float.
2013-11-25UI: remove unnecessary confirmation popupsEmanuel Claesson
This makes a number of operators no longer ask for confirmation, rather it will show an info message after performing the operation. Ref T37422 for decision. In particular, these were changed: * Delete objects, bones, keyframes, masks, mask curves, motion tracks, markers. * Clear and delete keyframes in the 3D view. * Align bone to parents. * Separate bones from armature. * Group/ungroup metastrips in sequencer. * Copy/paste objects to/from buffer. Reviewed By: brecht, dingto Differential Revision: http://developer.blender.org/D35
2013-11-04code cleanup: typo in function nameCampbell Barton
2013-10-29Code cleanup: use bool instead of int in mask moduleSergey Sharybin
2013-10-13* Fix scons compilation on Windows, missing pthreads include. Thomas Dinges
2013-10-12Option to overlay mask over the footageSergey Sharybin
Currently supports only two modes: - Show alpha channel of the mask - Multiply footage by the mask, which will give you final-looking combined image. TODO: Currently rasterization happens on every redraw, need to cache rasterized mask somewhere to make redraw more realtime.
2013-08-27Mask primitivesSergey Sharybin
Currently only circle and square, might be easily extended in the future. New primitives are creating at cursor location. This also implied adding 2d cursor to space clip. Also fix set 2D cursor location which didn't work in image editor's mask mode since 2.67. TODO: draw_image_cursor better be moved to some more generic file, but it's not so much important for now and might be solved later. Thanks Campbell for the review!