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
2018-02-23Nodes: left align text for color and string sockets, same as other types.Brecht Van Lommel
2018-02-23WM: Add WM_menutype_poll functionCampbell Barton
Wraps menutype poll, no functional changes.
2018-02-22Fix (unreported) meshes changing shading when creating empty clnors data.Bastien Montagne
When you were using autosmooth to generate some custom normals, and created empty custom loop normal data, you would go back to an 'all smooth' shading, cancelling some sharp edges generated by the mesh's smooth threshold. Now we will first tag such edges as sharp, such that shading remains the same. This is not crucial in current master, but it is for clnors editing gsoc branch!
2018-02-22Fix T54129: Moving keyframes on top of other keyframes, removes both keyframesJoshua Leung
Regression caused by earlier commits to improve the automerge behaviour. In this case, the problems only occurred when moving a selected keyframe forwards in time to overlap an unselected keyframe.
2018-02-22Fix: Don't ignore duplicate channels when doing border/circle/lasso selectJoshua Leung
While it is necessary to ignore duplicates when doing Deselect/Column Select (where double-updates may result in nothing being selected), for borderselect, not including the duplicates meant that sometimes, nothing would happen if you were trying to borderselect keyframes originating from hidden channels. This was first noticed in the greasepencil-object branch, but affects all animation channel types.
2018-02-21Cleanup: Don't perform borderselect on channels that aren't visibleJoshua Leung
2018-02-21Fix: Return back to conventional way of averaging points for keyframe de-dupJoshua Leung
The other approach was causing too much error in some cases (e.g. favouring the lower-valued keyframes). This fix should make the resulting curves less bumpy/jagged.
2018-02-21Fix: Forgot to recalculate handles after deleting keyframesJoshua Leung
2018-02-21Fix: Don't average keyframe values if FCurve can only have int/discrete valuesJoshua Leung
This is to prevent problems with integer/enum properties getting invalid values set.
2018-02-21Cleanup: Delete debugging code and the old version of the automerge codeJoshua Leung
2018-02-21Tweak/Fix for T54106 - Moving multiple selected keyframes on top of an ↵Joshua Leung
unselected one would not merge the keys This commit removes an earlier attempt at optimising the lookups for duplicates of a particular tRetainedKeyframe once we'd already deleted all the selected copies. The problem was that now, instead of getting rid of the unselected keys (i.e. the basic function here), we were only getting rid of the selected duplicates. With this fix, unselected keyframes will now get removed (as expected) again. However, we currently don't take their values into account when merging keyframes, since it is assumed that we don't care so much about their values when overriding.
2018-02-21Minor Optimisation: Terminate early if we've passed the insertion point for ↵Joshua Leung
tRetainedKeyframes
2018-02-21Feature Request T54106: When scaling keyframes, merge (by-averaging) ↵Joshua Leung
selected keys that end up on the same frame Currently, when scaling keyframes in the Dopesheet, if multiple selected keyframes end up on the same frame post-scaling, they would not get removed by the "Automerge" setting that normally removes duplicates on the same frame. This commit changes the behaviour so that when multiple selected keyframes end up on the same frame, instead of keeping all these around on the same frame (e.g. resulting in a column of keyframes on different values), we will instead merge them into a single keyframe (by averaging the values). This should result in a smoother F-Curve with fewer "stair-steps" that need to be carefully cleaned out afterwards. Requested by @hjalti
2018-02-21Fix T54065: NLA-Strip Control Curves would get disabled when ↵Joshua Leung
name-based-filtering is enabled This bug took a while to track down. In the test file with this report, the Nla-Strip Control Curve for strip time would get disabled if you changed the NLA Editor to a second Graph Editor instance. It turns out that because this second Graph Editor would have the "filter fcurves by name" option enabled, this would trigger a lookup of the referenced property's name (in order to test whether it matched the filtering criteria). However, since that filtering code was written before the introduction of these curves, it still assumed that the names for these Control Curves should be handled the same as for standard FCurves. Unfortunately, that doesn't work, as the property lookups fail if the standard method is used - when the lookups fail, the F-Curves get tagged as being invalid/disabled (and need to be reset using the "Revive Disabled FCurves" operator). Note: The changes in this patch look complicated, as I've had to shuffle a bit of code around so that the name-filtering check can have access to the additional info it needs. In the process, I've also removed the earlier (hacky) approach where the control curves were getting added to a temp buffer to get changed from normal FCurves to special ANIMTYPE_NLACURVES.
2018-02-21Fix more missing ID remapping in animation editor callbacksJoshua Leung
Applying the same fixes as introduced in 98d797b67c07e85889768bf8ecde292e9e6f70e9 this time, for the Graph and NLA editors
2018-02-19Fix T54098: Crash existing /w dyntopo sculptCampbell Barton
Optionally don't remap indices for objects. Checking all objects parent's would reference a freed pointer while freeing all objects. In the case of dynamic topology there is no use in keeping track of hook/vertex-parent indices. Also disable this when creating meshes for undo storage since adding an undo step shouldn't be modifying other objects.
2018-02-19Cleanup: sync vertex-paint and sculpt from 2.8Campbell Barton
Sync API changes from 2.8 to master.
2018-02-18Cleanup: add 2d suffix to BLI filesCampbell Barton
Some of these API's can have 3D versions, explicitly name them 2D.
2018-02-15Cleanup: rename BLI_thread.h APICampbell Barton
- Use BLI_threadpool_ prefix for (deprecated) thread/listbase API. - Use BLI_thread as prefix for other functions. See P614 to apply instead of manually resolving conflicts.
2018-02-15Cleanup: use '_len' instead of '_size' w/ BLI APICampbell Barton
- When returning the number of items in a collection use BLI_*_len() - Keep _size() for size in bytes. - Keep _count() for data structures that don't store length (hint this isn't a simple getter). See P611 to apply instead of manually resolving conflicts.
2018-02-15Cleanup: Style, braces with macrosSergey Sharybin
See https://wiki.blender.org/index.php/Dev:Doc/Code_Style#Braces_with_Macros
2018-02-15Cleanup: Remove BLI_ prefix from listbase macroSergey Sharybin
This is kind of doesn't matter where macro itself is defined. We should stick to the following: - If some macro is actually more an inline function, follow regular function name conventions. - If macro is a macro, type it in capitals. Use module prefix if that helps readability or it if helps avoiding accidents.
2018-02-15Simple hair children: Initial implementation of twist controlSergey Sharybin
It allows to have children hair to be twisted around parent curve, which is quite an essential feature when creating hair braids. There are currently two controls: - Number of turns around parent children. - Influence curve, which allows to modify "twistness" along the strand.
2018-02-13Add ED_object_editmode_exit_exCampbell Barton
Allow exiting editmode from non-active scene.
2018-02-12Fix part of T53080: don't use current scene world for icon previews.Brecht Van Lommel
This can be very slow if it contains a big texture, and it's not necessarily setup in a useful way anyway, and materials can be used in multiple scenes.
2018-02-12Error in last commit, disable cycles when not enabledCampbell Barton
Would only disable when loading old preferences.
2018-02-12Disable cycles when WITH_CYCLES=OFFCampbell Barton
2018-02-12BKE_addon: new/free/ensure functionsCampbell Barton
2018-02-09Cycles: add random walk subsurface scattering to Principled BSDF.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3054
2018-02-09Fix (unreported) crash when duplicating a FileBrowser window in preview draw ↵Bastien Montagne
mode. We did not clear preview or smoothscroll timers pointers in copy code...
2018-02-09CMake: include missing headersCampbell Barton
2018-02-09Fix T53958: Sequencer zoom 1:1 failsCampbell Barton
2018-02-09Fix T53347: Vertex paint crashCampbell Barton
Vertex paint was still using sculpt mode brush (which can be NULL).
2018-02-08Dopesheet: Synchronize selection on bones when selecting everythingSergey Sharybin
This is also how box selection and mouse selection is working. Requested by Hjalti, reviewed by Joshua. Thanks!
2018-02-08Fail gracefully when editmode data doesn't existCampbell Barton
Sync changes from 2.8
2018-02-07Cleanup: add _types.h suffix to DNA headersCampbell Barton
2018-02-06DNA: move eObjectMode into own headerCampbell Barton
Add a enum headers to DNA, to be included in other headers so function signatures can use enums for better type safety. Add DNA_*_enums.h matching DNA_*.types.h as needed.
2018-02-05Minor change to last commitCampbell Barton
Keep mode checks simple, nest other checks in their body.
2018-02-05Fix T53986: Crash saving during sculpt strokeCampbell Barton
Also remove unused struct member.
2018-02-03Cycles: add Vector Displacement node and extend Displacement node.Brecht Van Lommel
This adds midlevel and object/world space for displacement, and a vector displacement node with tangent/object/world space, midlevel and scale. Note that tangent space vector displacement still is not exactly compatible with maps created by other software, this will require changes to the tangent computation. Differential Revision: https://developer.blender.org/D1734
2018-02-02Cleanup: wrap function argsCampbell Barton
2018-02-01Fix T53686: VSE Render crash when zooming timelineSergey Sharybin
This is rather a workaround to avoid main thread freeing all glyph caches at the same time as sequencer uses fonts to draw text sequences. Ideally we need to either make cache more local, or user-counted or to make somewhat more global locks. All this ends up in a bigger refactor which is better for 2.8. For the meantime let's make Blender more stable with a tiny workaround. Downside is that keeping zooming things up and down in interface during render will increase memory usage by unused glyph caches. It's not too bad though, all unused caches will be freed first time at area zoom after render. Thanks Bastien for review!
2018-02-01Cleanup: rename BLI_*_empty() -> clear()Campbell Barton
Consistent with other BLI API's
2018-01-30Fix T52520: Metaballs in edit mode causes infinite Cycles viewport resetSergey Sharybin
The issue was introduced by eb016eb as a fix for T41258, which added depsgraph tagging with zero flag. The comment was saying that it's to make derived caches to be updated, however bot sure how that could possibly work: tagging ID for update with 0 flag only sets updated tags in bmain in old dependency graph. In the new depsgraph, where object data is a part of depsgraph, doing such a tag forces object to be updated, which re-triggers viewport rendering, which is causing such an infinite viewport render rest. Can not reproduce any crashes here, so maybe it's fine to move on with this change.
2018-01-30Cleanup: warning, spellingCampbell Barton
2018-01-30Fix T53943: Weight paint crash in new sceneCampbell Barton
2018-01-293D View: use_mouse_init for zoom & trackball orbitCampbell Barton
2018-01-29Cleanup: move boolean options into flagCampbell Barton
- Rename eViewOpsOrbit to eViewOpsFlag since VIEWOPS_ORBIT_DEPTH isn't just used for orbiting. - Move use_ensure_persp & use_mouse_init into the flag. - Remove viewops_data_create_ex.
2018-01-29Fix T53909: Joining armatures did not remap names on merged action dataJoshua Leung
Technically this was not a bug, as this functionality was not meant to work. (Drivers were already handled though, as they are part of the rig) It was assumed that there was little value in having this functionality available, as in most pipelines, animation production only begins after the rig has been locked down (see bug report comments for more details). On reflection, in most common situations, there's probably no harm in doing these rna path fixups. This commit takes advantage of some similar code I recently put in place in the Grease Pencil branch (for joining GP objects and their layers). Important Note for Animators/Riggers/TD's: Please be aware that after joining armatures, some of the animation may still need to be redone (due to changes in the transform hierarchies/ transform spaces that the animation is applied in). We do not attempt to correct for these problems, and it is unlikely that we will in future.
2018-01-29Apply Pose as Rest Pose: Bendy Bone supportJoshua Leung
The "Apply Pose as Rest Pose" operator now affects Bendy Bone settings too, making it possible to use interactive posing tools (e.g. Pose Sculpting brushes) to get the desired shape for the rest-pose shape of Bendy Bones. When such posing tools are available, this change makes it easier to get the desired Bendy Bone shapes, as you are no longer restricted to using buttons to get the desired effects.