Blender Git Commits

Blender Git "master" branch commits.

Page: 2304 / 5574

August 9, 2016, 10:20 (GMT)
Cycles: avoid making NaNs in Vector Math node by normalizing zero vectors.

Since inputs are user controlled, the node can't assume they aren't zero.
August 9, 2016, 09:41 (GMT)
CUDA: We don't support Toolkits < 7.5, update error message.
August 9, 2016, 09:34 (GMT)
Bugfix. glDisable with bad enum argument in GPU_texture_unbind

Reported by @panzergame in D1414.

`glDisable` calls with bad enum argument `GL_TEXTURE_2D_MULTISAMPLE` that came from this line:
`tex->target = (n == 1) ? GL_TEXTURE_1D : (samples ? GL_TEXTURE_2D_MULTISAMPLE : GL_TEXTURE_2D);`

Reviewers: brecht

Reviewed By: brecht

Subscribers: AlexKowel, yurikovelenov, panzergame

Differential Revision: https://developer.blender.org/D2145
Revision f3d65ad by Mike Erwin
August 9, 2016, 07:29 (GMT)
OpenGL: debug context on Windows

Enable based on --debug-gpu at the command line. Linux already works
this way.
Revision b7f3fb0 by Mike Erwin
August 9, 2016, 06:27 (GMT)
Gawain: fix Windows build error

MSVC is more strict than gcc or clang about pointer arithmetic. Also
fixed pointer cast warnings.
Revision a77e775 by Mike Erwin
August 9, 2016, 05:29 (GMT)
OpenGL: enhance debug output

When running blender --debug-gpu

Display which debug facilities are available. One of these, in order of preference:
- OpenGL 4.3
- KHR_debug
- ARB_debug_output
- AMD_debug_output

All messages are logged now, not just errors. Will probably turn some of these off later.

GL_DEBUG_OUTPUT_SYNCHRONOUS lets us break on errors and backtrace to the exact trouble spot.

Callers of GPU_string_marker no longer pass in a message length, just the message itself (null terminated).

Apple provides no GL debug logging features.
Revision b53eca1 by Julian Eisel
August 9, 2016, 02:32 (GMT)
Cycles: Fix crash in empty scenes

To recreate, just delete default cube and render.

Simple fix, but @maiself or @sergey may want to double-check ;)
August 8, 2016, 23:31 (GMT)
Fix Cycles CUDA adaptive kernel not working correctly after recent closure changes.
August 8, 2016, 22:57 (GMT)
Alembic: fix finding boost headers for win32
Revision 9893153 by Mike Erwin
August 8, 2016, 22:02 (GMT)
OpenGL: fix FBO error messages

Old code had a mix of framebuffer error codes from OpenGL ES, EXT_framebuffer_object, and desktop GL. We use desktop GL (or ARB_framebuffer_object which acts just like GL 3.x) so I made it compatible with that.

Changed messages to the actual GL_FRAMEBUFFER_XXX symbols. These are less friendly and more accurate. Can easily look up what an error means, unfiltered by what a Blender dev thinks it means.

Kept ES error codes around in case we support that one day. Just flip the #if or use a compile-time option.
August 8, 2016, 20:17 (GMT)
Make previous alembic fix only apply to MSVC
Revision 39259fc by Mike Erwin
August 8, 2016, 19:45 (GMT)
draw 3D cursor with new immediate mode

Replace legacy OpenGL with Gawain. Use shaders instead of fixed
function pipeline.

This simple UI element is shown at startup so is easy to verify things
are working. It also serves as a good example for people converting
other parts of the code.

Part of T49043
August 8, 2016, 18:01 (GMT)
Fix extra ; warning for OpenCL as well.
August 8, 2016, 17:19 (GMT)
Alembic/ msvc : Link alembic_d.lib instead of alembic.lib when doing debug builds.
August 8, 2016, 15:51 (GMT)
Fix ID types DAG update tagging.

The first character of the ID type was used to tag IDs for updates which
is weak since different IDs can have the same first character (for
example meshes, materials and metaballs), causing unnecessary updates of
unrelated IDs.

Now we use a unique index per ID type to tag for updates, unifying IDs
arrays indexing along the way.

Reviewers: sergey, mont29

Differential Revision: https://developer.blender.org/D2139
August 8, 2016, 13:45 (GMT)
BGE: Call DNA_sdna_current_init when launching blenderplayer.

Don't calling DNA_sdna_current_init was creating a crash because a global uninitialized
variable was used when reading blender files.
August 8, 2016, 13:10 (GMT)
Cycles: Fix compilation on Cycles unit tests after recent changes
August 8, 2016, 10:48 (GMT)
Disable depth buffer writes while rendering smoke in the viewport.

Depth buffer values are used by the viewport pan and zoom code to
adjust response scaling factors between mouse and viewport movement.
Letting smoke write to the buffer confuses it and causes the camera
to get stuck and move very slowly inside smoke domains, because it
thinks it is very close to an object.
August 8, 2016, 09:26 (GMT)
GPencil: Cleanup - Rename function for better naming

The old function name was not clear enough
August 8, 2016, 09:26 (GMT)
GPencil: Move polygon to back only if something was drawn

If the user enable polygon draw and press ESC before drawing something,
the last stroke must not be moved back.
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021