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-08-18Cleanup/security fix: do not use strcpy (at least in new code).Bastien Montagne
This function is only really secure in a very limited amount of cases, and can especially bite you later if you change some buffer sizes... So not worth bothering with it, just always use BLI_strncpy instead.
2016-08-18Final UI messages fixes (for this session...).Bastien Montagne
2016-08-08GPencil: Cleanup - Rename function for better namingAntonioya
The old function name was not clear enough
2016-08-08GPencil: Move polygon to back only if something was drawnAntonioya
If the user enable polygon draw and press ESC before drawing something, the last stroke must not be moved back.
2016-08-07GPencil: Handle drawing on back for polygonsAntonioya
The polygons must move the stroke to back only when polygon is complete
2016-08-07GPencil: Add option to draw new strokes on back of layerAntonioya
For artist point of view is very useful to have an option to draw by default the new strokes on back of all strokes in the layer.
2016-08-07GPencil: Fix error in arrange strokesAntonioya
During code review a field was renamed, but one line was missing.
2016-08-07GPencil: Do not disable continuous drawing if click out of drawing areaAntonioya
Do not clear continuous drawing. This code was related to a previous test and must be removed.
2016-08-06Fix wrong property type usageJulian Eisel
Prints error on startup.
2016-08-05GPencil: Various UI name fixesJoshua Leung
* "Flip direction" -> "Flip Direction" * "Show drawing direction" -> "Show Directions" * "Grease Pencil Curves" -> "Brush Curves" (I was considering "Brush Response Curves" instead, but that seemed like too much of a mouthful) * "X" for removing a palette. The UI there was more similar to a standard datablock selector, so it should use the "+X" combo instead of "+-" combo for consistency. (Note though, presets tend to use "+-" instead - e.g. see the Render Settings)
2016-08-05GPencil: Added Ctrl-J hotkey for Joining strokesJoshua Leung
(Ctrl-Shift-J is for "Join and Copy")
2016-08-05GPencil: "Join Strokes" tool doesn't leave gaps by default nowJoshua Leung
Previously, it would insert "invisible" points after the endpoints of the strokes, so that they wouldn't appear to be joined, but that behaviour could also get quite confusing as you wouldn't be sure whether the strokes were really joined or not. To keep the previous behaviour, simply enable the "Leave Gaps" option on the operator after running it. This setting will get saved between runs of the operator.
2016-08-04Cleanup: Use BKE_gpencil prefixJulian Eisel
This is a good point to change this as grease-pencil-v2 branch was just merged, so I hope merge conflicts with other branches are minimal.
2016-08-04Grease Pencil v2 BranchAntonio Vazquez
Improve current Grease Pencil in order to get a better 2D animation tool. More info in WIKI pages: https://wiki.blender.org/index.php/User:Antoniov Reviewed By: Severin, aligorith, campbellbarton Patch by @antoniov, with edits by @Severin. Differential Revision: https://developer.blender.org/D2115
2016-07-10Cleanup/Refactor: pass Main pointer to all ID copy functions.Bastien Montagne
Also allows us to get rid of a few _copy_ex() versions...
2016-07-02Cleanup: comment blocksCampbell Barton
2016-06-23GPencil: Eraser respects "Selection Mask" when in EditModeJoshua Leung
2016-06-23DopeSheet: GPencil-Mode supports Circle and Lasso SelectJoshua Leung
To get this working the least effort, I've had to expose the helper functions used by the lasso and circle select keyframe-test callbacks (which are generic) and expose them for use by the GP keyframe editing code too. Hopefully in time we clean this all up and just write the code once to operate on "keyframes"
2016-06-23GPencil: Added a new version of the "delete active frame" operator which ↵Joshua Leung
deletes on all editable layers This new operator will delete any GP frame it finds on the current frame, regardless of whether it's on the active layer or not. It will only remove the frames if the layer is editable, but otherwise, it will just go for it. The existing operator is great for use in the panel (where it only applies to the active frame), but it was not so good for all the other places where tools can be invoked (e.g. D-X, or Delete) as you're typically thinking about the whole scene more holisticaly than just caring about a particular layer.
2016-06-09Flat shading for basic shaderAlexander Romanov
The purpose of the patch is to replace deprecated glShadeModel. To decrease glShadeModel calls I've set GL_SMOOTH by default Reviewers: merwin, brecht Reviewed By: brecht Subscribers: blueprintrandom, Evgeny_Rodygin, AlexKowel, yurikovelenov Differential Revision: https://developer.blender.org/D1958
2016-05-21GPencil: Add hotkeys for the "Delete Active Frame" operatorJoshua Leung
Usage: * D+X - Works anytime, anywhere * Shift-X - Works in EditMode only * Via Delete Menu - EditMode only Often doing video tutorials or perhaps during dailies/shot review you want to quickly get rid of a quick scribble you made for making a point, without having to undo (i.e. maybe you edited some objects in between) and/or without having to use the eraser (i.e. it'd take too long to cover the entire area).
2016-05-21GP Sculpt: Make the cursor more visible on light backgroundsJoshua Leung
On light coloured backgrounds (especially on white), it was impossible to see where the cursor was. This commit adds a second ring (black) to the cursor so that on light backgrounds, even if the light ring isn't visible the black one will be.
2016-05-18Fix T48395: Grease Pencil, pressing Ekey to sculpt don't work for left click ↵Joshua Leung
configurations When using Left Click select, it wasn't possible to sculpt using E+LMB. I've changed the order of things in the keymap so that the select operator won't end up catching and blocking all these events.
2016-05-14Fix T48426: Use same length for all header message strings.Bastien Montagne
Some languages like Chinese or Japanese take three or four bytes per char... Also fixed some missing translation markers for UI header messages.
2016-05-09View selected support for grease-pencilCampbell Barton
2016-05-09Missed last commitCampbell Barton
2016-05-09Remove redundant error checks in grease-pencil tessellationCampbell Barton
2016-05-09Fixes for GPencil Copy and PasteJoshua Leung
* Fix "Attempt to free NULL pointer" when copying strokes for the first time * Fix poll callback on "paste" operator, so that it is possible to paste strokes when there are no editable strokes visible.
2016-05-09GPencil: Added operators to select first and last points of strokesJoshua Leung
These are useful for removing overshoots at the end of closed strokes (for fills)
2016-05-08GPencil Onion Skinning: Setting before/after to -1 will turn off ↵Joshua Leung
onionskinning in that direction This is an experimental option that I found would have been useful to have, when making my earlier anim test. The only contentious point is whether it's better to use a separate boolean flag (perhaps bound to the labels) instead of overloading this setting (and describing the usage in the tooltip).
2016-05-08Fix: Lasso select for Grease Pencil doesn't work in the Nodes EditorJoshua Leung
In the nodes editor, Ctrl-LMB-drag is taken by "Cut", and it seems impossible for any other keymap to override that. Instead, the default lasso select hotkey there is Ctrl-Alt-LMB-drag instead. To get Grease Pencil lasso select (in GP Editmode) to work in the Nodes Editor too, this commit adds the Ctrl-Alt-LMB-drag binding here too. However, to make things easier, this extra binding will be part of the Grease Pencil keymap everywhere. There doesn't seem to be any conflicts with having this in place - until we find them, this should be ok to have.
2016-05-08D1886: GPencil - Add smooth iterations parameter to get better qualityAntonio Vazquez
After some test, a new iteration parameter has been added in order to apply repetitive smoothing to the stroke. By default 1 iteration is applied, but can used any number between 1 and 3. The repetition uses different levels of intensity from 100% of the defined smooth factor for the first loop, 50% for the second and 25% for the third. We use in each loop a smaller value in order to avoid deform too much the stroke.
2016-05-08Fix for D1705: Update to fix the bug with extra triangles that produces ↵Antonio Vazquez
glitches in some situations
2016-05-08Code Cleanup: Just a bit more tidying up comments/whitespace/etc.Joshua Leung
There is still some instability in how the triangulations are happening, where the triangle count of the resulting triangulation fluctuates resulting in weird artifacts sometimes. To reproduce, try drawing some U-shapes, and keep reloading the file.
2016-05-08Fix for potential bug with new GP FillJoshua Leung
While trying to track down why I still keep getting some random "extra" triangles showing up when reloading files with fills, I noticed that there's an index mismatch here that may cause problems in some rare cases: There are "gps->totpoints" items in tmp_triangles, but there should only be "gps->tot_triangles" triangles in the gps->triangles array. If for whatever reason some of the triangles in tmp_triangles are invalid, this could have meant that while a tmp_triangles candidate was skipped, a corresponding slot for a valid triangle also got skipped.
2016-05-08Code Cleanups: A bunch of tweaks to tidy up things from the GPencil Fill patchJoshua Leung
2016-05-08D1705: Fix Grease Pencil Fill for Concave ShapesAntonio Vazquez
Improve filling for concave shapes using a triangulation of the stroke. The triangulation information is saved in an internal cache and only is recalculated if the stroke changes. The triangulation is not saved in .blend file. Reviewers: aligorith Maniphest Tasks: T47102 Differential Revision: https://developer.blender.org/D1705
2016-04-25Refactor BKE_blender into separate headersCampbell Barton
- BKE_blender_version.h (only version defines & versionstr). - BKE_blender_copybuffer.h (currently only used for view3d copy/paste). - BKE_blender_undo.h (global undo functions). - BKE_blendfile.h (high level blend file read/write API).
2016-04-18Fix T48186: Grease Pencil Smooth brush doesn't work properly - "erase" the ↵Joshua Leung
stroke thickness As soon as you started trying to smooth a stroke, the thickness of the stroke would quickly drop right down to near zero, if "affect pressure" was enabled. This step got accidentally missed when restoring the affect pressure functionality to the stroke smoothing brush code, following cleanups from the stroke quality patch.
2016-03-29GPencil New Stroke Smoothing: Don't perform smoothing on pressure valuesJoshua Leung
As noted by Antonio and Daniel, performing smoothing on the pressure values for new strokes doesn't work that great. From an artist POV, it is apparently "very strange that line thickness shrink suddenly after drawing it".
2016-03-28Cleanup: Unused variableSergey Sharybin
2016-03-28GPencil: Note that clicking outside the active area also exits draw modeJoshua Leung
2016-03-27GPencil: Remove the old UserPrefs-based On/Off Stroke Smoothing methodJoshua Leung
This never really worked that well, and often ended up being far too strong to be of practical use. The new options do similar things, but with greater control, so removing this old method now.
2016-03-27GPencil: Smooth and Subdivision variable/setting namingJoshua Leung
On second thought, these might be better names for these... I'm still not 100% happy with these, but they will do for now. (Best results currently seem to be with smooth 0.7, and subdivision steps 1 or 2)
2016-03-27GPencil: Removed the restriction of not subdividing strokes further if it ↵Joshua Leung
exceeds GP_STROKE_BUFFER_MAX Assuming that this subdivision + smoothing mostly only happens at the end of a stroke anyway, enforcing this max-points limit in some cases was resulting in strokes that weren't quite getting subdivided properly as the others.
2016-03-27GPencil: Code Cleanup - Simplify and clarify the code for subdividing a strokeJoshua Leung
2016-03-27GPencil: Restore ability for Smooth brush to affect pressure values of strokesJoshua Leung
2016-03-27Code Cleanup - Style tweaksJoshua Leung
2016-03-27Improve grease pencil stroke qualityAntonio Vazquez
Improve the quality of current grease pencil strokes adding a new dynamic smooth and subdivision. The level of smooth and subdivide can be adjusted using UI parameters. These options are disabled by default in order to keep the grease pencil stroke compatible with any existing add-on. Both parameters are defined at layer level. Reviewers: aligorith Differential Revision: https://developer.blender.org/D1866
2016-03-16Fix T47818: GPencil Sculpt Brush settings update when adjusted using ↵Joshua Leung
scrollwheel while sculpting