Blender Git Commits

Blender Git "master" branch commits.

Page: 2258 / 5574

October 27, 2016, 11:06 (GMT)
Fix T49829: Removal of custom icon previews during add-on unregister crashes 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...
October 27, 2016, 10:51 (GMT)
Cycles: More workarounds for weird crashes on AVX2

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.
October 26, 2016, 20:14 (GMT)
Cycles: Another attempt to fix crashes on AVX2 processors

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.
October 26, 2016, 18:49 (GMT)
Cycles: Fix compilation error of AVX2 kernel without SSE math
October 26, 2016, 13:57 (GMT)
Viewport: Set outline color for mesh based on active/select state

(also, fix warning regarding const float being written)

You only see the color if you use the "modern" viewport option
(otherwise I believe Blender is drawing the old on top of the new outline).

That said, in the "modern" viewport we have unfreed mem. To be
investigated separately.
October 26, 2016, 13:23 (GMT)
Cycles: Completely disable transform SSE for now

Was causing issues on another frame.

On a tight schedule, disabling for now so artists are happy.

Still looking into root of the issue!
October 26, 2016, 12:33 (GMT)
RangeTree API rewrite

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.
October 26, 2016, 12:30 (GMT)
Cycles: Fix crashes after recent optimization commits

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.
October 26, 2016, 12:24 (GMT)
BLI_bitmap_draw_2d: optimize polygon filling

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.
October 26, 2016, 12:24 (GMT)
Cleanup: rename functions in BLI_bitmap_draw_2d
October 26, 2016, 09:11 (GMT)
Cleanup: move bitmap drawing into its own module

Bitmap drawing is out-of-scope for a general math API,
move to BLI_bitmap_draw_2d.
Revision 2783d5d by Mike Erwin
October 26, 2016, 08:18 (GMT)
OpenGL: follow up on mesh wire TODOs

- depth test on (affects scene depth for now)
- color variations
- object outline does not need GL_BLEND with latest shader
Revision a394f4e by Mike Erwin
October 26, 2016, 07:57 (GMT)
OpenGL: edge shader discards fragments of unused edges

Discarded edges should not update depth buffer or blend with color buffer.

Geometry shader version will make this obsolete.
October 26, 2016, 03:18 (GMT)
BMesh: edge-net split, edge selection error

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.
Revision 222ba02 by Mike Erwin
October 25, 2016, 23:38 (GMT)
fix edge shader input

Revision 456d145 by Mike Erwin
October 25, 2016, 23:34 (GMT)
OpenGL: new mesh draw routines for new viewport

Totally WIP.

Started with copies of legacy routines, modified to use the new shaders & batch cache. Not all features are implemented; this is why we keep legacy viewport around during development!
October 25, 2016, 17:49 (GMT)
[msvc] make.bat - create a build.log in the build directory
October 25, 2016, 16:29 (GMT)
Cycles: Fix for fix (tm)

Sorry guys, for some reason read the expression back-to-front
and did wrong fix :S
October 25, 2016, 16:06 (GMT)
Cycles: Fix typo in previous commit for BVH improvements
October 25, 2016, 15:59 (GMT)
Fix T49815: Blender always reverts to RGBA when using Save As Image.

`BKE_imformat_defaults()` was doing some weird black magic based on
imbuf's channels, instead of merely copying imbuf's planes here...
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021