Blender Git Loki

Blender Git commits from all branches.

Page: 2010 / 2888

June 8, 2016, 19:45 (GMT)
Make playback invoked form animation editors more usable

This covers the following workflow. Animator will disable Update All 3D views
in order to get quick playback in a particular 3D editor. However, it also
handy to see playback in all editors and image editors to see comparison of
animation and reference footage.

So the idea here is to refresh reasonable editors when playback is invoked
from animation editors.

Commit to make Hjalti happy.
June 8, 2016, 19:45 (GMT)
Cycles: Simplify check for degenerated faces on GPU

Still not sure how to properly solve the issue, needs some trickery to get
actual optimized values from intersection function (using printf() avoids
some optimization and makes stuff render correct).

For the time being let's just simplify check.
June 8, 2016, 19:45 (GMT)
Cleanup & simplify snapping functions

- the name of the enumerator `SNAP_NOT_OBEDIT` was changed to `SNAP_NOT_ACTIVE`.
- the parameter `snap_to_flag` was moved to outside `SnapObjectParams`.
- the member `use_object_edit` was renamed to `use_object_edit_cage`.
- added the arg `params` in `ED_transform_snap_object_project_ray`.
- simplifications in the loop of the function `snapObjectsRay`.
June 8, 2016, 19:45 (GMT)
Fix possible uninitialized variable in snapping

Introduced in 0b5a0d84, thanks to Brecht for spotting.
June 8, 2016, 19:45 (GMT)
Fix T48111: Auto-run fails w/ empty paths

Enabling auto-run, then excluding a path but leaving it set to a blank value would ignore all paths.
June 8, 2016, 19:45 (GMT)
Fix T48575: Particle crash using 'Parting' setting
June 8, 2016, 19:45 (GMT)
Add upstream information to wcwidth library
June 8, 2016, 19:45 (GMT)
Theme: 2.4x, correct graph region color
June 8, 2016, 19:45 (GMT)
Fix T48456: 2x pixel size clamps min brush size

Using double pixel size prevented 1px brushes

D2044 by @jeske
June 8, 2016, 19:45 (GMT)
Fix T47637: Multiple multires objects in Sculpt mode make blender crash.

That was a nice and funny hunt, albeit rather time consumming!

To summarize, so far code was using a static global gpu_buffer for pbvh vbo drawing
of 'grid' types (multires mostly?).

There were two issues here:
1) Global gpu buffer was assigned to GPU_PBVH_Buffers->index_buf, but then nearly no
check was done when freeing that buffer, to ensure we were not freeing the global one
(not totally sure this one was actually causing any issue, but was bad and unsafe anyway).
Was solved by adding a flag to GPU_PBVH_Buffers to indicate when we are using some
'common' buffer here, which freeing is handled separately.

2) Main issue: if several multires objects in sculpt mode with different grid size
were present simultaneously, the global gpu buffer had to be resized for each object draw
(i.e., freed and re-allocated), but then the pbvh nodes from other objects storing freed reference
to that global buffer had no way to know that it had been freed, which was causing the segfault & crash.
Was solved by getting rid of that global buffer, and instead allocating one 'grid_commmon_gpu_buffer' per pbvh.

Told ya baby, globals are *PURE EVIL*!
June 8, 2016, 19:45 (GMT)
Fix for GLSL uniform being update from inside glBegin/glEnd

This seems to be illegal and not productive anyway. Do it ahead of
a time now, which solves shading issues in edit mode and prevents
assert from happening.
June 8, 2016, 19:45 (GMT)
Fix leak using UI_BTYPE_TEXT button w/o a callback

Moving ownership of the string to the button's 'rename_orig'
leaked when the button didn't have a uiAfterFunc.
June 8, 2016, 19:45 (GMT)
Cleanup: warnings in previous commit
June 8, 2016, 19:45 (GMT)
Minor edits to last commit

Failed with chunk merging disabled
June 8, 2016, 19:45 (GMT)
BLI_array_store: Move writing many chunks into a function

Minor optimization, avoid some checks each iteration.
June 8, 2016, 19:45 (GMT)
BLI_array_store: store max size in BArrayInfo
June 8, 2016, 19:45 (GMT)
Add extra validation checks to array-store
June 8, 2016, 19:45 (GMT)
Minor changes to help text

D2040 by @Blendify, also move 'Experimental Features' above more general help text.
June 8, 2016, 19:45 (GMT)
ShapeKey was missing lattice-flag

missed from 7a8bd2eae
June 8, 2016, 19:45 (GMT)
Fix T48566: Render-border minor offset issue
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021