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
path: root/source
AgeCommit message (Collapse)Author
2017-01-23Silence strict compiler warningsSergey Sharybin
Similar thing to other areas where we mix Blender's char with OpenGL API.
2017-01-21Fix T49527: Blender stalls when changing armature ghosting range with ↵Joshua Leung
stepsize = 0 A big thanks to Steffen Mortensen (stifan) for finding the root cause of this bug!
2017-01-20Fix own mistake in rB051526da6279, confusing off_t with ptrdiff_t.Bastien Montagne
2017-01-20Fix minor glitches in GP code.Bastien Montagne
Reported by coverity scan.
2017-01-20Fix/cleanup stupid check on array of char being non-NULL pointer...Bastien Montagne
Reported by coverity scan.
2017-01-20Fix float buffer of tracking image accessed outside of check that it has ↵Bastien Montagne
been correctly allocated. Reported by coverity scan.
2017-01-20Fix compilation error with strict flagsSergey Sharybin
2017-01-20Cleanup/fix some BLI_string_utf8 not using size_t/off_t as expected.Bastien Montagne
2017-01-20Cleanup/fix last remnant usages of int instead of size_t for string length ↵Bastien Montagne
in BLI_string_utils.
2017-01-20D1873: Customize style for animation motion pathsAntonio Vazquez
New options to define the style of the animation paths in order to get better visibility in complex scenes. Now is possible define the color, thickness and several options relative to the style of the lines used to draw motion path.
2017-01-20DopeSheet: Show group colours behind keyframes tooJoshua Leung
Following @AlonDan's feature request and @hjalti's screenshot yesterday, I've decided to implement support for this to make it easier to scan which keyframes correspond with which set of controls, especially when faced with a large wall of keyframes. In retrospect, I should've done this a long time ago!
2017-01-19BMesh: remove BM_face_create_ngon_vcloudCampbell Barton
Instead, add BM_verts_sort_radial_plane and use regular creation API.
2017-01-19Correct asserts, un-hiding when selected is okCampbell Barton
2017-01-19Cycles: Expose diffuse and glossy depth to Light Path nodeSergey Sharybin
Was a bit confusing to have transparent and translucent depth exposed but no diffuse or glossy. Reviewers: brecht Subscribers: eyecandy Differential Revision: https://developer.blender.org/D2399
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-19Cleanup: naming, comments assert for hide+selectedCampbell Barton
2017-01-19BMesh: improve hide-flush internal logicCampbell Barton
- flushing hidden state ran when it didn't need to. - flushing checks didn't early exit when first visible element found. - low level BM_*_hide API calls like this can use skip iterators can loop over struct members directly. No user-visible changes.
2017-01-19Fix T49807: Inset faces edge rail bugCampbell Barton
2017-01-19Fix face-creation with existing hidden geometryCampbell Barton
- face-create-extend option could add hidden verts and edges into the selection history (invalid state). - faces could be created that included existing hidden edges that remained hidden (invalid state too). - newly created faces could copy hidden flag from surrounding faces, giving very confusing results (looks as if face creation failed). Surprising nobody noticed these years old bugs!
2017-01-18BMesh: Use angle_signed_on_axis_v3v3v3_v3Campbell Barton
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-18GPencil: Cleanup - move include line to correct scopeAntonio Vazquez
2017-01-18GPencil: Fix unreported error in animation after rename itemsAntonio Vazquez
If the layers or the colors were renamed, the animation data was wrong because the data path was not updated. I also have fixed a possible stroke color name update if the name was duplicated moving the rename function call after checking unique name.
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-18Transform manipulator: Allow first clicking Shift before selecting axisSergey Sharybin
Avoids possible jumps when one is trying to do some really preciese tweak. Quite striaghtforward change for mouse input initialization: take Shift state into account. However, this will interfere with the axis exclusion which is currently also uses Shift (the feature to move something in a plane which doesn't have selected axis). This is probably not so commonly used feature (nobody in the studio even knew of it) and the only downside now would be that such a constrainted movement will become accurate by default. That's easy to deal from user side by just unholding Shift key. Reviewers: brecht, mont29, Severin Differential Revision: https://developer.blender.org/D2418
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-17Return correct alpha for environment map in GLSLAlexander Romanov
2017-01-16Cleanup/refactor: move BKE_deform_flip_side_name & co to BLI_string_utilsBastien Montagne
Functions like that do not have anything to do in BKE really, even less when actually more used for bones than vgroups!
2017-01-16Cleanup/refactor: get rid of fixed name limit in BKE_deform_flip_side_name & co.Bastien Montagne
Those were forcing to use vgroup name define in bones area, or even mixing with maxbonename... ugly, and totally avoidable.
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-16Cleanup: remove unused & unimplemented `BLI_newname`.Bastien Montagne
2017-01-16Fix T50393: Flip names working just on one side when both are selected.Bastien Montagne
Just store bones that could not get renamed to desired flipped name on the first try into a temp list, and try to rename them a second time. This is rather simple solution, will induce 'over numbering' in case you flip a bone to another unselected bone's name (since number will be incremented in both rename attempts), but think this is acceptable minor glitch, for a corner case situation that does not have any good resolution anyway. Also, set `strip_numbers` option of `BKE_deform_flip_side_name` to false, otherwise chains of bones with same names would get their numbers completely messed up after name flipping. Based on work by @dfelinto in D2456 (https://developer.blender.org/D2456), thanks.
2017-01-14Add 3d to 2d plane mapping functions to math libLuca Rood
This adds two functions to project 3d coordinates onto a 3d plane, to get 2d coordinates, essentially eliminating the plane's normal axis from the coordinates. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D2460
2017-01-13Fix missing user when opening text from ID UI widget.Bastien Montagne
Own mistake in recent fix for Text data-block usercount (rBa9163f7d2). Reported by @sergey over IRC, thanks.
2017-01-13Fix small spelling errorAaron Carlisle
2017-01-12Dynamic Paint: recursively search for island border edges.Alexander Gavrilov
It is quite likely in a triangulated mesh that the actual island edge belongs to a different triangle than the current pixel; for example consider corners of a triangulated axis aligned rectangle face that have the additional edge: a pixel there will have to be assigned to one of the triangles, but one of the edges of the original rectangle can only be accessed through the other triangle. Thus for robust operation it is necessary to do a recursive search. The search is limited by requiring that it only goes through edges that bring it closer to the target point, and also by depth as a safeguard. Differential Revision: https://developer.blender.org/D2409
2017-01-12Dynamic Paint: provide margin of error for linking neighbors across seams.Alexander Gavrilov
The code requires the pixel on the other side of the seam to be assigned precisely to the expected triangle. This can cause false negatives around vertices, where a pixel is likely to touch multiple triangles and thus cannot be said to unambiguously belong to any one of them, so check distance to the intended triangle and accept the result if it's close.
2017-01-12Dynamic Paint: improve UV island border handling in effects.Alexander Gavrilov
1. Forcibly symmetrize the neighbor relations, so that if A is neighbor of B, B is neighbor of A. The existing code is guaranteed to violate this if texture resolution is different between the sides of a seam. 2. In texture mode dynamic paint adds a 1 pixel wide border around the islands. These pixels aren't really part of the dynamic paint domain and thus by design can't have symmetrical neighbor relations. This means they can't be treated by effects like normal pixels. The simplest way to handle it in a consistent way is to exclude them from effects, but add an additional pass that recomputes them as average of their non-border neighbors, located on both sides of the seam.
2017-01-12Cycles: Use dedicated debug passes for traversed nodes and intersection testsSergey Sharybin
This way it's more clear whether some issue is caused by lots of geometry in the node or by lots of "transparent" BVH nodes.