Blender Git Commits

Blender Git "master" branch commits.

Page: 2305 / 5574

Revision c73e4e9 by Mike Erwin
August 8, 2016, 08:56 (GMT)
OpenGL: simple 2D shader with flat color

Flat color means each primitive will use color from the provoking
vertex.
August 8, 2016, 08:50 (GMT)
Cycles: Remove set but unused variable
Revision 4214b3c by Mike Erwin
August 8, 2016, 07:17 (GMT)
OpenGL: simplify 3D cursor drawing

Use simple alternating colored lines instead of stippled overdraw.

Reimplement circ function to not use deprecated GLU (T49042). It also
leaves matrix stack untouched.

Remove unused circf function.
Revision 6c65e5a by Mike Erwin
August 8, 2016, 02:11 (GMT)
GPU: bind builtin shader for immediate mode

immBindBuiltinProgram extends Gawain?s immBindProgram to use Blender?s
library of built-in shader programs.

It uses imm prefix instead of GPU_ so people won?t be tempted to call
GPU_unbind_program() afterward.

From my understanding, Apache code is not allowed to call GPL code, so
this function needs to be in the GPU lib.
Revision 8e99eec by Mike Erwin
August 8, 2016, 01:30 (GMT)
Gawain: immediate mode set uniforms for active program

Start simple with vec4 uniforms. Add more later.
Revision a0c1876 by Julian Eisel
August 7, 2016, 21:20 (GMT)
Cycles: Quiet warning with WITH_OPENSUBDIV disabled

Checked with @maiself, for now going with this simple solution.
August 7, 2016, 19:45 (GMT)
Cycles: fix objects disappearing when starting or stopping movement.

Another issue with the modified particle motion blur fix: since
pre and post are used as validity markers, they must be set even
if there is no actual motion, like the original bool flags were.
Otherwise an object starting to move or stopping is interpreted
as having invalid blur data and hidden.
Revision e635f04 by Julian Eisel
August 7, 2016, 18:58 (GMT)
Fix local view editing broken after changing object's layer from non-local view

Wasn't copying back local view bytes to object after changing layer.

Steps to reproduce were:
* Split 3D view in default startup.blend
* Enter local view in one of the 3D views
* Move default cube to different layer *in the other 3D view* (the one that's not in local view)
* Try transforming object from 3D View that's in local view (should lag)
Revision a58fe05 by Mai Lavelle
August 7, 2016, 18:15 (GMT)
Cycles microdisplacement: Move displacement options from mesh to material settings

Displacement is now a per material setting, which means old files will have to
be updated if they had used displacement. Cool side effect of this change is
material previews now show displacement.

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D2140
August 7, 2016, 17:00 (GMT)
Set WIN32_WINNT for all windows platforms, not just x64
Revision 0b68c68 by Mai Lavelle
August 7, 2016, 15:13 (GMT)
Cycles microdisplacement: Support for Catmull-Clark subdivision via OpenSubdiv

Enables Catmull-Clark subdivision meshes with support for creases and attribute
subdivision. Still waiting on OpenSubdiv to fully support face varying
interpolation for subdividing uv coordinates tho. Also there may be some
inconsistencies with Blender's subdivision which will be resolved at a
later time.

Code for reading patch tables and creating patch maps is borrowed
from OpenSubdiv.

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D2111
August 7, 2016, 14:45 (GMT)
GPencil: Handle drawing on back for polygons

The polygons must move the stroke to back only when polygon is complete
August 7, 2016, 14:45 (GMT)
GPencil: Add option to draw new strokes on back of layer

For artist point of view is very useful to have an option to draw by
default the new strokes on back of all strokes in the layer.
August 7, 2016, 14:45 (GMT)
GPencil: Fix error in arrange strokes

During code review a field was renamed, but one line was missing.
August 7, 2016, 14:45 (GMT)
GPencil: Do not disable continuous drawing if click out of drawing area

Do not clear continuous drawing. This code was related to a previous
test and must be removed.
August 7, 2016, 13:45 (GMT)
Don't hide on/off buttons of the Softbody modifier when there's Collision.

From source code history, it seems this behavior is a relic of a very
old limitation when the same object couldn't be both a Softbody and a
Collision object. In those times if somehow both modifiers were added
to an object, Softbody auto-disabled itself and buttons were hidden.

Now however there is no problem having both modifiers on an object,
so there is no point hiding the buttons. The same exact buttons are
available on the physics tab in any case.
August 7, 2016, 10:48 (GMT)
Particles: don't output nonsense UV data for Grid distribution particles.

As reported in T48928, From Dupli UV is not supported for grid
distribution, and running the normal code as usual simply produces
nonsense data, because fuv is used to hold orco instead of
interpolation factors for uv, and num is zero.

Since support won't be added in 2.78, just stop outputting nonsense.
August 7, 2016, 08:02 (GMT)
Fix pretty stupid mistake in last 'append fix' commit (rB50c017b6eabd).
Revision 11ffbfb by Mike Erwin
August 7, 2016, 05:35 (GMT)
Gawain: bind a shader for immediate mode

How to use:
1) set up vertex format
2) bind a shader
3) draw with immBegin ? immEnd
4) unbind shader

TODO: expand this a little, so we can send uniform values to the bound
shader.
Revision 6fea42d by Mike Erwin
August 7, 2016, 05:30 (GMT)
Gawain: initialize & destroy immediate mode

TODO: make this work better with multiple OpenGL contexts
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021