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-11-02Change frame for animations should not bein the UNDO stackDalai Felinto
Request from Hjalti Hjalmarsson for the animation work. Basically a common part of the workflow of animation is to change the pose, scrub back and forth a few times and roll back the changes when unsatisfied. However if you go back and forth too many times the UNDO stack would be full, and it would not be possible to bring back the previous pose. I'm leaving clip_editor change frames as it is for now. But we can probably change the behaviour there as well.
2016-11-01Add 'copy array' for rna buttonsBastien Montagne
ctrl-alt-c/v allows to copy/paste whole RNA array, e.g. location, rotation, etc., from UI buttons. Request from Andy at the studio.
2016-11-01Fix T49856: Blender 2.78 crashes after loading data from a blendfileBastien Montagne
Issue here was that py API code was keeping references (pointers) to the liniked data-blocks, which can actually be duplicated and then deleted during the 'make local' process... Would have like to find a better way than passing optional GHash to get the oldid->newid mapping, but could not think of a better idea.
2016-11-01Ceres: Update to the latest actual versionSergey Sharybin
Brings all the fixes and improvements done in upstream within the last 13 months.
2016-10-31Added 'delete unlocked vertex groups' option.Sybren A. Stüvel
2016-10-31BMesh: radial loop (internal API symmetry)Campbell Barton
Radial append/remove had swapped args and *slightly* different behavior. - bmesh_radial_append(edge, loop) - bmesh_radial_loop_remove(loop, edge) Match logic for append/remove, Logic for the one case where the edge needs to be left untouched has been moved to: `bmesh_radial_loop_unlink`.
2016-10-31BMesh: simplify vert & edge removalCampbell Barton
2016-10-31BMesh: remove redundant walker member & assignmentCampbell Barton
2016-10-31Cycles: Deduplicate AO calculationLukas Stockner
No functional changes.
2016-10-31UI: Don't show empty panel right-click menuJulian Eisel
2016-10-30Cycles: Fix OpenCL compilation with the new brick textureLukas Stockner
2016-10-30Cycles: Style Fix: Light sampling threshold descriptionLukas Stockner
2016-10-30Viewport smoke: add support to render the volume using a color ramp.Kévin Dietrich
This is yet another debug option that allows to render an arbitrary simulation field by using a color ramp to inspect its voxel values. Note that when using this, fire rendering is turned off. Reviewers: plasmasolutions, gottfried Differential Revision: https://developer.blender.org/D1733
2016-10-30Cycles: Initialize the RNG state from the kernel instead of the hostLukas Stockner
This allows to save a memory copy, which will be particularly useful for network rendering. Reviewers: sergey, brecht, dingto, juicyfruit, maiself Differential Revision: https://developer.blender.org/D2323
2016-10-30Cycles: Add optional probabilistic termination of light samples based on ↵Lukas Stockner
their expected contribution In scenes with many lights, some of them might have a very small contribution to some pixels, but the shadow rays are traced anyways. To avoid that, this patch adds probabilistic termination to light samples - if the contribution before checking for shadowing is below a user-defined threshold, the sample will be discarded with probability (1 - (contribution / threshold)) and otherwise kept, but weighted more to remain unbiased. This is the same approach that's also used in path termination based on length. Note that the rendering remains unbiased with this option, it just adds a bit of noise - but if the setting is used moderately, the speedup gained easily outweighs the additional noise. Reviewers: #cycles Subscribers: sergey, brecht Differential Revision: https://developer.blender.org/D2217
2016-10-30Fix compile errors for when WITH_ALEMBIC is OFF.Kévin Dietrich
2016-10-30Cycles: Add smoothing option to the Brick TextureLukas Stockner
This option allows to create a smoother transition between Bricks and Mortar - 0 applies no smoothing, and 1 smooths across the whole mortar width. Mainly useful for displacement textures. The new default value for the smoothing option is 0.1 to give some smoothing that helps with antialiasing, but existing nodes are loaded with smoothing 0 to preserve compatibility. Reviewers: sergey, dingto, juicyfruit, brecht Reviewed By: brecht Subscribers: Blendify, nutel Differential Revision: https://developer.blender.org/D2230
2016-10-29Fix T49846: OpenCL rendering compilation failureLukas Stockner
2016-10-29Cycles: Implement texture coordinates for Point, Spot and Area LampsLukas Stockner
When using the Normal output of the Texture Coordinate node on Point and Spot lamps, the coordinates now depend on the rotation of the lamp. On Area lamps, the Parametric output of the Geometry node now returns UV coordinates on the area lamp. Credit for the Area lamp part goes to Stefan Werner (from D1995).
2016-10-29Fix T49878: Alembic crash with long object nameKévin Dietrich
Crash comes from writing to char array (ID::name) out its bound and thus overriding memory in the ID struct.
2016-10-29Alembic: store a pointer to the object reader in the cache modifiers andKévin Dietrich
constraints. This avoids traversing the archive everytime object data is needed and gives an overall consistent ~2x speedup here with files containing between 136 and 500 Alembic objects. Also this somewhat nicely de- duplicates code between data creation (upon import) and data streaming (modifiers and constraints). The only worying part is what happens when a CacheFile is deleted and/or has its path changed. For now, we traverse the whole scene and for each object using the CacheFile we free the pointer and NULL-ify it (see BKE_cachefile_clean), but at some point this should be re-considered and make use of the dependency graph.
2016-10-29Alembic export: fix frame range values being reset at every update, drawKévin Dietrich
call.
2016-10-28Cleanup: avoid using G.main.Kévin Dietrich
2016-10-28Alembic Export: set start and end frame to that of the scene forKévin Dietrich
convenience. Users will most likely export an entire animation rather than a single frame, so it can save a few clicks.
2016-10-28CacheFile: fix missing depsgraph update.Kévin Dietrich
2016-10-28CacheFile: only enable scale property slider if we are editing the cacheKévin Dietrich
through a constraint. It doesn't make sense and is a bit confusing to have this property enabled in the modifier context.
2016-10-28Compile fix for Windows.Nathan Letwory
__inline instead of inline is needed.
2016-10-27Fix T49743: Adding torus in edit mode local mode shows errorBastien Montagne
The 'local' layers were not correctly set when redoing 'add object' addons using object_utils.py helper (we always want to restore layers from view in local view, even if we set 'real' layers from operator afterwards).
2016-10-27Fix T49829: Removal of custom icon previews during add-on unregister crashes ↵Bastien Montagne
Blender. Issue was happening when removal of custom icons was done while they were still being rendered by preview job. Now add a 'deffered deletion' system, to prevent main thread to delete preview image until loading thread is done with them. Note that ideally, calling `ED_preview_kill_jobs()` on custom icon removal would have been simpler, but we don't have easy access to context here...
2016-10-27Cycles: More workarounds for weird crashes on AVX2Sergey Sharybin
Oh man, is it a compiler bug? Is it something we do stupid? For now more crap to prevent crashes. During the conference will talk to Maxyn about how can we troubleshoot such weird issues.
2016-10-26Cycles: Another attempt to fix crashes on AVX2 processorsSergey Sharybin
Basically don't use rcp() in areas which seems to be critical after second look. Also disabled some multiplication operators, not sure yet why they might be a problem. Tomorrow will be setting up a full test with all cases which were buggy in our farm to see if this fix is complete.
2016-10-26Cycles: Fix compilation error of AVX2 kernel without SSE mathSergey Sharybin
2016-10-26Cycles: Completely disable transform SSE for nowSergey Sharybin
Was causing issues on another frame. On a tight schedule, disabling for now so artists are happy. Still looking into root of the issue!
2016-10-26Cycles: Fix crashes after recent optimization commitsSergey Sharybin
There is some precision issues for big magnitude coordinates which started to give weird behavior of release builds. Some weird memory usage in BVH which is tricky to nail down because only happens in release builds and GDB reports all variables as optimized out when trying to use RelWithDebInfo. There are two things in this commit: - Attempt to make vectorized code closer to original one, hoping that it'll eliminate precision issue. This seems to work for transform_point(). - Similar trick did not work for transform_direction() even tho absolute error here is much smaller. For now disabled that function, need a more careful look here.
2016-10-26RangeTree API rewriteCampbell Barton
Rewrite the current range-tree API used by dyn-topo undo to avoid inefficiencies from stdc++'s set use. - every call to `take_any` (called for all verts & faces) removed and added to the set. - further range adjustment also took 2x btree edits. This patch inlines a btree which is modified in-place, so common resizing operations don't need to perform a remove & insert. Ranges are stored in a list so `take_any` can access the first item without a btree lookup. Since range-tree isn't a bottleneck in sculpting, this only gives minor speedups. Measured approx ~15% overall faster calculation for sculpting, although this number time doesn't include GPU updates and depends on how much edits fragment the range-tree.
2016-10-26BLI_bitmap_draw_2d: optimize polygon fillingCampbell Barton
Existing method was fine for basic polygons but didn't scale well because its was checking all coordinates for every y-pixel. Heres an optimized version. Basic logic remains the same this just maintains an ordered list of intersections, tracking in-out points, to avoid re-computing every row, this means sorting is only done once when out of order segments are found, the segments only need to be re-ordered if they cross each other. Speedup isn't linear, test with full-screen complex lasso gave 11x speedup.
2016-10-26Cleanup: rename functions in BLI_bitmap_draw_2dCampbell Barton
2016-10-26Cleanup: move bitmap drawing into its own moduleCampbell Barton
Bitmap drawing is out-of-scope for a general math API, move to BLI_bitmap_draw_2d.
2016-10-26BMesh: edge-net split, edge selection errorCampbell Barton
In practice I couldn't make this cause a bug, however it's a logical regression in fix for T48716. Thanks to Francesc Juhe for finding.
2016-10-25[msvc] make.bat - create a build.log in the build directorylazydodo
2016-10-25Cycles: Fix for fix (tm)Sergey Sharybin
Sorry guys, for some reason read the expression back-to-front and did wrong fix :S
2016-10-25Cycles: Fix typo in previous commit for BVH improvementsSergey Sharybin
2016-10-25Fix T49815: Blender always reverts to RGBA when using Save As Image.Bastien Montagne
`BKE_imformat_defaults()` was doing some weird black magic based on imbuf's channels, instead of merely copying imbuf's planes here...
2016-10-25API: Fix LinksAaron Carlisle
Self-explanatory. to find broken links run `sphinx-build -b linkcheck sphinx-in sphinx-out` Reviewers: mont29 Tags: #bf_blender, #python, #infrastructure:_websites Differential Revision: https://developer.blender.org/D2297
2016-10-25Partial fix for T49836: Camera DOF properties not updating via graph editorSergey Sharybin
Do this for the new dependency graph: was missing handle of OB_UPDATE_TIME in tag update. Hopefully it's all correct still. Old dependency graph needs work, but i'm tempting to call it unsupported and move on to 2.8 branch.
2016-10-25Cycles: Enable SSE math optimization for AVX kernelsSergey Sharybin
This gives about 5% speedup for AVX processors. Benefit of such optimization on other microarchitectures is still under investigation.
2016-10-25Cycles: Use new SSE version of offset calculation for all QBVH flavorsSergey Sharybin
Gives up to ~1% speedup again. While it seems to be small, still nice since the code now is actually more clean that it used to be before.
2016-10-25Cycles: Move QBVH near/far offset calculation to an utility functionSergey Sharybin
Just preparing for new optimization to be used in all traversal implementation. Should be no measurable difference.
2016-10-25Cycles: BVH-related SSE optimizationSergey Sharybin
Several ideas here: - Optimize calculation of near_{x,y,z} in a way that does not require 3 if() statements per update, which avoids negative effect of wrong branch prediction. - Optimization of direction clamping for BVH. - Optimization of point/direction transform. Brings ~1.5% speedup again depending on a scene (unfortunately, this speedup can't be sum across all previous commits because speedup of each of the changes varies from scene to scene, but it still seems to be nice solid speedup of few percent on Linux and bigger speedup was reported on Windows). Once again ,thanks Maxym for inspiration! Still TODO: We have multiple places where we need to calculate near x,y,z indices in BVH, for now it's only done for main BVH traversal. Will try to move this calculation to an utility function and see if that can be easily re-used across all the BVH flavors.
2016-10-25Cycles: Avoid branching in SSE version of intersection pre-calculationSergey Sharybin
Similar to the previous commit, avoid negative effect of bad branch prediction. Gives measurable performance up to ~2% in tests here. Once again, thanks to Maxym Dmytrychenko!