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-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
2016-03-14Fix T47772: Randomize stroke has direction biasCampbell Barton
2016-03-13Keyframing: Added ToolSetting for choosing default keyframe typeJoshua Leung
To make it easier for animators working in a multipass pose-to-pose workflow when inserting breakdown keyframes and so forth, it is now possible to specify the "type" of keyframe being created (i.e. the colour of the keyframe, when drawn in the Dope Sheet). Usage: 1) Choose the type of keyframe ("Keyframe", "Breakdown", "Extreme", etc.) from the new dropdown located between the AutoKeying and KeyingSet widgets on the timeline header. 2) Insert keyframes 3) Rejoyce that your newly created keyframes have now been coloured for you already in the DopeSheet. Todo: * Look into a way of using the actual keyframe colours (from the theme) for the icons of these types.
2016-02-26Fix: "Twist" GP Sculpt brush in 2D Editors was unusable... now mostly ↵Joshua Leung
usable, if still slightly offset
2016-02-26Fix: "Twist" GP Sculpt brush didn't work well in 3D ViewJoshua Leung
2016-02-08GPencil: Layers with alpha = 0 should not be editableJoshua Leung
* Added a new API function to test if a GPencil layer is visible or not * Replaced all editability checks with this new "super check" * Replaced all magic number thresholds for opacity visiblity with a single define
2016-02-08Code Cleanup: Use bool instead of int for "setactive" paramJoshua Leung
2016-02-08GPencil: Numpad 0 and Numpad view rotation keys now work in Continuous ↵Joshua Leung
Drawing Mode When animating to the camera, and working in "Continuous Drawing Mode", it be necessary to return to the active camera viewport, after briefly pivoting the view using MMB (to check on perspective or something like that). However, before this fix, you would have had to exit drawing mode to do this.
2016-02-08GPencil Eraser: Do not allow eraser radius to get smaller than 1 pixelJoshua Leung
2016-01-23OpenGL: call glLineWidth less oftenMike Erwin
Each LINES draw call is now responsible for its own line width. No need to set it back to its 1.0 default after every draw. This eliminates half our calls to glLineWidth , similar to last week’s work on glPointSize.
2016-01-22GPencil: Select Grouped (Shift G)Joshua Leung
This commit adds a "Select Grouped" operator. Although it is set up to allow more types of "grouping" in future, it current only supports a single mode (i.e. "Same Layer"). As a result, it does not pop up any menus/submenus in all the usual places.
2016-01-17Cleanup: spellingCampbell Barton
Also use doxy formatting for warning/note.
2016-01-16OpenGL: fixes related to GL_POINTSMike Erwin
I put all usage of GL_POINTS under the microscope. Fixed problems & optimized a couple of spots. - reduce calls to glPointSize by about 50% - draw selected & unselected vertices together for UV editor & EditMesh - draw initial gpencil stroke point the proper size - a few other smaller fixes New policy: each GL_POINTS draw call needs to set its desired point size. This eliminates half our calls to glPointSize (setting it back to its 1.0 default after every draw).
2016-01-11Fix T47101 - Grease Pencil eraser doesn't work when activated using D+RMB ↵Joshua Leung
when using a tablet When using D+RMB using a tablet (e.g. holding down the side button of the stylus while hovering it over the surface of the tablet) to erase, the tablet would report zero-pressure. This causes problems when using the new pressure-sensitive Grease Pencil eraser, causing it to have no effect.
2016-01-10Some minor fixes from coverity reports.Bastien Montagne
2016-01-09Cleanup: warning/spellingCampbell Barton
2016-01-04Remove SCons building systemSergey Sharybin
While SCons building system was serving us really good for ages it's no longer having much attention by the developers and started to become quite a difficult task to maintain. What's even worse -- there started to be quite serious divergence between SCons and CMake which was only accumulating over the releases now. The fact that none of the active developers are really using SCons and that our main studio is also using CMake spotting bugs in the SCons builds became quite a difficult task and we aren't always spotting them in time. Meanwhile CMake became really mature building system which is available on every platform we support and arguably it's also easier and more robust to use. This commit includes: - Removal of actual SCons building system - Removal of SCons git submodule - Removal of documentation which is stored in the sources and covers SCons - Tweaks to the buildbot master to stop using SCons submodule (this change requires deploying to the server) - Tweaks to the install dependencies script to skip installing or mentioning SCons building system - Tweaks to various helper scripts to avoid mention of SCons folders/files as well Reviewers: mont29, dingto, dfelinto, lukastoenne, lukasstockner97, brecht, Severin, merwin, aligorith, psy-fi, campbellbarton, juicyfruit Reviewed By: campbellbarton, juicyfruit Differential Revision: https://developer.blender.org/D1680
2015-12-14Usual i18n fixes, and cleanup: fix 'randomise' -> 'randomize' spelling in code.Bastien Montagne
2015-12-13Cleanup: unused argsCampbell Barton