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-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-21bezt_add_to_cfra_elem() - Use same keyframe equality test as in other placesJoshua Leung
This shouldn't affect anything currently, as this function doesn't appear to get used anywhere.
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-21Depsgraph: Fix fake dependency cycle with chained IK solvers with tip excludedSergey Sharybin
Not sure why we need a relation from solver to a tip local transform, this will be handled via parent relation. Fixes remaining dependency cycles reported in T54083.
2018-02-21Depsgraph: Fix dependency when constraint influence drives some other constraintSergey Sharybin
It is not possible to address transform at particular position of constraint stack, and when constraint is being addressed is usually from driver variable. This fixes some of dependency cycles reported in T54083.
2018-02-21Depsgraph: Split debug flagsSergey Sharybin
Now it's possible to have debug messages for following things: - Graph construction - Graph evaluation - Graph tagging
2018-02-21Depsgraph: Fix crash using --debug-depsgraph and --debug-depsgraph-no-threadsSergey Sharybin
Was accessing past the array boundaries. Should be safe for 2.79a.
2018-02-21Depsgraph: Report overall number of cycles detectedSergey Sharybin
Handy to quickly see if a fix fixed any of the cycles in a real rig, or whether it's introduced new ones.
2018-02-21VSE: skip non image/movie w/ proxy dir storageCampbell Barton
This would use uninitialized filename variable, looked into supporting this however generating proxies currently only works for movies.
2018-02-20Cleanup: split normals: use different varnames for angle and its cosine.Bastien Montagne
Using same name for two different things is not the best idea ever...
2018-02-20Fix T54069: Vertex groups for hair length is wrong in some casesSergey Sharybin
This is a regression in rB4f1c0a1 which only allowed cutting haior at the second segment only, while there is nothing wrong with cutting hair at the first segmewnt.
2018-02-19Fix T54096: Subdivision Surface + Boolean Modifiers + Transform = crashSergey Sharybin
Don't use dm->get*Array for DM you don't own. This call can allocate temporary CD layer, which is not thread safe at all. Also removed hard-coded logic around CDDM check. new functions will do same logic, but are mode DM-type-=independent.
2018-02-19Fix T53032: Image sequence works bad with Displace modifierSergey Sharybin
We shouldn't mix image pool acuisition with and without user provided, the fact that internally image.c uses last frame from Image datablock confuses the logic.
2018-02-19Cleanup: remove BMeshToMeshParams.calc_tessfaceCampbell Barton
This wasn't used, tessface is being phased out. Caller can run explicitly if needed.
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-18Fix T54089: missing GLSL material draw update when changing object pass index.Brecht Van Lommel
2018-02-18Cleanup: group BLI_ghash_utils.c API in BLU_ghash.hCampbell Barton
2018-02-18Cleanup: split GHash helpers from implementationCampbell Barton
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-16fix:T50079 collada matrix and blender matrix are transposed. This was not ↵Gaia Clary
regarded by the animation importer, so it was creating very odd results
2018-02-16fix: limit precision also for animation matrixes if the limit option is set ↵Gaia Clary
(gives nicer output for inspection)
2018-02-16Fix rotation issues due to matrix to quaternion ambiguitiesGaia Clary
Reviewers: mont29 Reviewed By: mont29 Subscribers: mont29 Differential Revision: https://developer.blender.org/D3066
2018-02-16Fix part II of T53977: Severe problem with multiple instances of a library ↵Bastien Montagne
(save and reload). Once 'losing lib' issue is fixed (in previous commit), we have new issue that this could lead to several copies of the same linked data-block in .blend file. Which is not good. At all. So had to add a GHash-based check in libraries reading code to ensure we only load a same ID from a same lib once.
2018-02-16Fix part I of T53977: Severe problem with multiple instances of a library ↵Bastien Montagne
(save and reload). The issue was that when a same lib was found several times in loaded .blend, we'd only keep the first occurence. But since Blender expects next data-blocks to belong to last found library, we could actually be adding data-blocks assigned to copies of the duplicated lib to another, totally unrelated lib. Those data-blocks were then obviously not found when actually loading libs content, and lost. Note that this only fix one part of the issue, current code can generate several copies of same linked data-block now, will fix in another commit.
2018-02-15Fix crash reading deg_point_cache_transform.blend test, saved with 2.8.Brecht Van Lommel
In general 2.8 files may not be readable in master, but might as well fix this case so all the lib/tests can be opened still.
2018-02-15Cleanup: Remove debug-only codeSergey Sharybin
2018-02-15Fix T54076: MCE in Graph mode - clip.graph_select_border does not work by ↵Sergey Sharybin
header menu While the script should be using INVOKE_PREVIEW for operators in clip view, window manager was lacking some switch statements. Thanks Brecht fore review!
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: Make twist affected by textureSergey Sharybin
This completes twist feature, which is now possible to also control by texture. Since textures can not easily contain negative values as well, same trick with 0.5 neutral as vertex groups is used. All in all, this twist features allows to do following things. Original hair: {F2287535} Hair with scientifically calculated twist value of 0.5: {F2287540} And we can also twist braids in opposite directions dependent on left/right side: {F2287548}
2018-02-15Fix T54078: Adding subsurf prior to particle system breaks simple children ↵Sergey Sharybin
vgroups and textures cpa->num points to a face index on BASE mesh, but get_child_modifier_parameters() expects index on a FINAL dm. So wrong index was used here.
2018-02-15Simple hair children: Make twist affected by vertex groupSergey Sharybin
The idea is to give a control over direction of twist, and maybe amount of twist as well. More concrete example: make braids on left and right side of character head to be twisting opposite directions. Now, tricky part: we need some negative values to flip direction, but weights can not be negative. So we use same trick as displacement map and tangent normal maps, where 0.5 is neutral, values below 0.5 are considered negative and values above 0.5 are considered positive.
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-15Blenlib: Assert when attempting to rotate point around vector and store ↵Sergey Sharybin
result in the point This isn't supported since there are subsequent reads to all point coordinates after modification started. Probably we need to create a temp copy of point, but that's like extra CPU ticks.
2018-02-15Particles: Wrap insane amount of arguments to child modifier evaluationSergey Sharybin
Use single structure. It seems we will need to pass more information soon, so better to do it via the structure.
2018-02-15Cleanup: styleCampbell Barton
2018-02-15Fix T54072: Crash splitting edgesCampbell Barton
2018-02-14Cycles: restore Particle Info Index for now, keep it next to Random.Brecht Van Lommel
It seems to be useful still in cases where the particle are distributed in a particular order or pattern, to colorize them along with that. This isn't really well defined, but might as well avoid breaking backwards compatibility for now.
2018-02-14Cycles: change Index output of Hair and Particle Info to Random, in 0..1 range.Brecht Van Lommel
These are used for randomization, so it's convenient if the index is already hashed and consistent with the Object Info node.
2018-02-14Particles: Avoid multiple function declarations in multiple placesSergey Sharybin
This makes it really hard to spot errors when function signature changes.
2018-02-14Particles: Cleanup, remove trailign whitespaceSergey Sharybin
2018-02-14Hair child: Use clamp function to clamp curve evaluationSergey Sharybin
Avoids redundant calls to the curve evaluation.
2018-02-14Math utils: Add clamping functionsSergey Sharybin
2018-02-13Add ED_object_editmode_exit_exCampbell Barton
Allow exiting editmode from non-active scene.
2018-02-13Cycles: Implement index output for hair nodeSergey Sharybin
This is like the only way to add variety to hair which is created using simple children. Used here for the hair. Maybe not ideal, but the time will show.