blender.git
16 months agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Mon, 24 Sep 2018 16:11:14 +0000 (18:11 +0200)]
Merge branch 'master' into blender2.8

16 months agoFix T56861: freestyle + BI + full sample AA not working correct.
IRIE Shinsuke [Mon, 24 Sep 2018 16:08:24 +0000 (18:08 +0200)]
Fix T56861: freestyle + BI + full sample AA not working correct.

16 months agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Mon, 24 Sep 2018 15:41:46 +0000 (17:41 +0200)]
Merge branch 'master' into blender2.8

16 months agoSpelling fixes in comments and descriptions, patch by luzpaz.
Brecht Van Lommel [Mon, 24 Sep 2018 15:27:41 +0000 (17:27 +0200)]
Spelling fixes in comments and descriptions, patch by luzpaz.

Differential Revision: https://developer.blender.org/D3719

16 months agoModifiers: use Mesh instead of DerivedMesh for dynamic paint.
Sebastian Parborg [Mon, 24 Sep 2018 14:32:29 +0000 (16:32 +0200)]
Modifiers: use Mesh instead of DerivedMesh for dynamic paint.

Differential Revision: https://developer.blender.org/D3720

16 months agoWeight Paint: Multiply overlay on the mesh
Jacques Lucke [Mon, 24 Sep 2018 15:10:29 +0000 (17:10 +0200)]
Weight Paint: Multiply overlay on the mesh

Use the multiply blending mode for the weight paint overlay.
To support the opacity slider, we need a new shader. Otherwise this combination of multiplication and mixing does not seem to be supported by glBlendFunc.

Reviewers: brecht

Differential Revision: https://developer.blender.org/D3727

16 months agoGP: Some changes in Appearance panel
Antonioya [Mon, 24 Sep 2018 14:35:07 +0000 (16:35 +0200)]
GP: Some changes in Appearance panel

16 months agoTracking: Use pixel aspect from clip
Sergey Sharybin [Mon, 24 Sep 2018 14:23:45 +0000 (16:23 +0200)]
Tracking: Use pixel aspect from clip

Don't force square pixel, since on a more real pipeline
expected delivery is same anamorphic as an input footage.

16 months agoDepsgraph: Always respect visibility flag when building object
Sergey Sharybin [Mon, 24 Sep 2018 13:45:15 +0000 (15:45 +0200)]
Depsgraph: Always respect visibility flag when building object

Before it was only doing this for directly linked objects. This was
initially needed to solve fps issues in some of the shots. Now this
fps drop i can no longer reproduce. Was likely needed prior to
modifiers dependencies "inheriting" visibility from the "parent".

This commit makes it so objects which are linked indirectly to the
scene via collections are properly considered visible (or, rather,
evaluatable) by dependency graph.

Solves missing eyelashes and braids issues with 01_035_A.

16 months agoDepsgraph: Tweak to visibility flush
Sergey Sharybin [Mon, 24 Sep 2018 13:41:00 +0000 (15:41 +0200)]
Depsgraph: Tweak to visibility flush

Make flush ready for component forced to be affecting visible things
from builder.

16 months agoDepsgraph: Provide more information about component
Sergey Sharybin [Mon, 24 Sep 2018 13:40:23 +0000 (15:40 +0200)]
Depsgraph: Provide more information about component

16 months agoDepsgraph: Cleanup, spelling in comment
Sergey Sharybin [Mon, 24 Sep 2018 13:39:42 +0000 (15:39 +0200)]
Depsgraph: Cleanup, spelling in comment

16 months agoCleanup: Spelling
Sergey Sharybin [Mon, 24 Sep 2018 11:30:15 +0000 (13:30 +0200)]
Cleanup: Spelling

16 months agoFix T56895: crash loading template with Load UI unchecked.
Brecht Van Lommel [Mon, 24 Sep 2018 13:41:12 +0000 (15:41 +0200)]
Fix T56895: crash loading template with Load UI unchecked.

16 months agoBuild: allow overriding DEPS_BUILD_DIR and DEPS_INSTALL_DIR for make deps.
Brecht Van Lommel [Mon, 24 Sep 2018 12:50:01 +0000 (14:50 +0200)]
Build: allow overriding DEPS_BUILD_DIR and DEPS_INSTALL_DIR for make deps.

16 months agoFix: insert missing break in switch statement (second try)
Jacques Lucke [Mon, 24 Sep 2018 13:44:12 +0000 (15:44 +0200)]
Fix: insert missing break in switch statement (second try)

16 months agoRevert "Fix: insert missing break in switch statement"
Jacques Lucke [Mon, 24 Sep 2018 13:40:01 +0000 (15:40 +0200)]
Revert "Fix: insert missing break in switch statement"

This reverts commit e904bb64df1f0f0275dc209a31cff5ad2a10b79e.

16 months agoAdd support for a one-dimensional Force Field source shape.
Alexander Gavrilov [Sun, 23 Sep 2018 10:10:31 +0000 (13:10 +0300)]
Add support for a one-dimensional Force Field source shape.

The fields currently support a Point source and a two-dimensional
Plane source, but there is no way to create a field that pulls
toward or from a line in space other than using the Texture field
type. This adds a new simple shape option to do that.

The line is aligned along the Z axis so that it works meaningfully
with the Tube and Cone falloff modes.

Reviewers: brecht, mont29, LucaRood

Differential Revision: https://developer.blender.org/D3721

16 months agoGP: Make topbar layer popover wider
Antonioya [Mon, 24 Sep 2018 10:57:11 +0000 (12:57 +0200)]
GP: Make topbar layer popover wider

16 months agoFix: insert missing break in switch statement
Jacques Lucke [Mon, 24 Sep 2018 10:43:26 +0000 (12:43 +0200)]
Fix: insert missing break in switch statement

Reviewers: brecht

Differential Revision: https://developer.blender.org/D3724

16 months agoFix T56875: Auto Render not working after render pass name refactor
Lukas Stockner [Mon, 24 Sep 2018 09:40:00 +0000 (11:40 +0200)]
Fix T56875: Auto Render not working after render pass name refactor

The default compositor node update function sets the need_exec flag on the node
which the Auto Render feature checks, but the custom update function that was
added as part of rB4cf7fc3b3a4d didn't do so.

Therefore, the two custom update functions that were added now also call the
default update function.

16 months agoGizmo: hide redo gizmo when spin tool not active
Campbell Barton [Mon, 24 Sep 2018 07:12:54 +0000 (17:12 +1000)]
Gizmo: hide redo gizmo when spin tool not active

Selecting a another tool left the gizmo,
which could overlap other tools gizmos.

16 months agoGizmo: show partial arc & icons for spin tool
Campbell Barton [Mon, 24 Sep 2018 07:06:49 +0000 (17:06 +1000)]
Gizmo: show partial arc & icons for spin tool

16 months agoGizmo: dial3d option to draw a partial arc
Campbell Barton [Mon, 24 Sep 2018 07:06:04 +0000 (17:06 +1000)]
Gizmo: dial3d option to draw a partial arc

16 months agoGizmo: option to hide from selection
Campbell Barton [Mon, 24 Sep 2018 06:40:21 +0000 (16:40 +1000)]
Gizmo: option to hide from selection

Allows some gizmo to be used as guides.

16 months agoGPU: utility function to draw a partial circle
Campbell Barton [Mon, 24 Sep 2018 06:22:22 +0000 (16:22 +1000)]
GPU: utility function to draw a partial circle

16 months agoCleanup: rename gizmo flag
Campbell Barton [Mon, 24 Sep 2018 06:20:08 +0000 (16:20 +1000)]
Cleanup: rename gizmo flag

16 months agoGizmo: add spin-tool rotate on view axis
Campbell Barton [Mon, 24 Sep 2018 00:09:48 +0000 (10:09 +1000)]
Gizmo: add spin-tool rotate on view axis

This also acts to catch stray click events so missing a gizmo
doesn't move the cursor or execute another spin action.

16 months agoCleanup: skip translation to calculate length
Campbell Barton [Sun, 23 Sep 2018 22:30:15 +0000 (08:30 +1000)]
Cleanup: skip translation to calculate length

16 months agoCleanup: style
Campbell Barton [Sun, 23 Sep 2018 22:25:51 +0000 (08:25 +1000)]
Cleanup: style

16 months agoGP: Change direction text depending of sculpt brush
Antonioya [Sat, 22 Sep 2018 14:26:52 +0000 (16:26 +0200)]
GP: Change direction text depending of sculpt brush

16 months agoRemove last traces of game engine and blenderplayer
Ines Almeida [Sat, 22 Sep 2018 13:54:30 +0000 (15:54 +0200)]
Remove last traces of game engine and blenderplayer

16 months agoDepsgraph: Shrinkwrap modifier needs its own object transform.
Alexander Gavrilov [Sat, 22 Sep 2018 09:00:12 +0000 (12:00 +0300)]
Depsgraph: Shrinkwrap modifier needs its own object transform.

It depends on the relative position of its own object and target.

16 months agoGP: Change appearance panel for sculpt brushes
Antonioya [Fri, 21 Sep 2018 21:11:30 +0000 (23:11 +0200)]
GP: Change appearance panel for sculpt brushes

16 months agoGP: Move mask button to header
Antonioya [Fri, 21 Sep 2018 20:59:24 +0000 (22:59 +0200)]
GP: Move mask button to header

16 months agoGP: More changes to sculpt panels and topbar
Antonioya [Fri, 21 Sep 2018 20:50:02 +0000 (22:50 +0200)]
GP: More changes to sculpt panels and topbar

16 months agoSelect Similar: Cleanup - WITH_FREESYTLE
Dalai Felinto [Fri, 21 Sep 2018 19:32:24 +0000 (16:32 -0300)]
Select Similar: Cleanup - WITH_FREESYTLE

16 months agoMulti-Objects: Select similar edge SIMEDGE_FREESTYLE
Dalai Felinto [Fri, 21 Sep 2018 19:28:25 +0000 (16:28 -0300)]
Multi-Objects: Select similar edge SIMEDGE_FREESTYLE

I'm not happy with #ifdef WITH_FREESTYLE everywhere.
But I will remove them in an upcoming commit

16 months agoSelect Similar: Cleanup
Dalai Felinto [Fri, 21 Sep 2018 18:42:07 +0000 (15:42 -0300)]
Select Similar: Cleanup

16 months agoSelect Similar: Skip hidden elements
Dalai Felinto [Fri, 21 Sep 2018 18:39:36 +0000 (15:39 -0300)]
Select Similar: Skip hidden elements

16 months agoMulti-Objects: Select similar edge SIMEDGE_SEAM/SIMEDGE_SHARP
Dalai Felinto [Fri, 21 Sep 2018 18:31:05 +0000 (15:31 -0300)]
Multi-Objects: Select similar edge SIMEDGE_SEAM/SIMEDGE_SHARP

I'm not sure why we may want to sample both a sharp and an unsharp edges at the
same time, maybe to see if the selected edges all have the same values?

Either way, implemented as in 2.79. I also believe we may have a faster way to
select all the edges, but let's file this under optimizations to be done later.

16 months agoFix part of T56865: wrong center with orbit around selection in weight paint.
Brecht Van Lommel [Fri, 21 Sep 2018 18:08:25 +0000 (20:08 +0200)]
Fix part of T56865: wrong center with orbit around selection in weight paint.

16 months agoFix Python errors in weight paint mode.
Brecht Van Lommel [Fri, 21 Sep 2018 17:24:29 +0000 (19:24 +0200)]
Fix Python errors in weight paint mode.

16 months agoGP: Initial changes in sculpt brush panel
Antonioya [Fri, 21 Sep 2018 18:15:25 +0000 (20:15 +0200)]
GP: Initial changes in sculpt brush panel

Move some options to subpanels

16 months agoGPU Python API: matrix.load_projection_matrix
mano-wii [Fri, 21 Sep 2018 18:06:22 +0000 (15:06 -0300)]
GPU Python API: matrix.load_projection_matrix

If the `push_projection` and `pop_projection` functions already exist, there should naturally be a way to load a projection matrix.

16 months agoRe-enable OBJ add-on.
Bastien Montagne [Fri, 21 Sep 2018 18:06:36 +0000 (20:06 +0200)]
Re-enable OBJ add-on.

16 months agoMESH_OT_select_similar: Cleanup
Dalai Felinto [Fri, 21 Sep 2018 17:17:35 +0000 (14:17 -0300)]
MESH_OT_select_similar: Cleanup

16 months agoMulti-objects: Select similar edge SIMEDGE_FACE_ANGLE
Dalai Felinto [Fri, 21 Sep 2018 16:57:33 +0000 (13:57 -0300)]
Multi-objects: Select similar edge SIMEDGE_FACE_ANGLE

I'm not sure why the original implementation was only checking for equal
comparison but I'm doing the same here. It is a one line change if we
want to support LT/GT anyways.

Also "technically" we should compare the angles in the worldspace, since
different scales will result in different angles. Added as a TODO but
honestly I think this is overkill.

16 months agoRename bm_sel_similar_cmp_short > select_similar_compare_LONG
Dalai Felinto [Fri, 21 Sep 2018 16:29:16 +0000 (13:29 -0300)]
Rename bm_sel_similar_cmp_short > select_similar_compare_LONG

16 months agoMulti-objects: Select similar edge SIMEDGE_LENGTH
Dalai Felinto [Fri, 21 Sep 2018 14:11:23 +0000 (11:11 -0300)]
Multi-objects: Select similar edge SIMEDGE_LENGTH

I'm using kdtree here but there is nothing preventing us from using a simple
float linked list with a sorting and finding "nearest" equivalents.

At least we are benefitting from bisecting as oppose to the original solution.

Also we need epsilon for the float comparisons.

16 months agoMulti-objects: Select similar edge SIMEDGE_DIR
Dalai Felinto [Fri, 21 Sep 2018 13:51:38 +0000 (10:51 -0300)]
Multi-objects: Select similar edge SIMEDGE_DIR

16 months agoMulti-objects: Select similar edge SIMEDGE_FACE
Dalai Felinto [Fri, 21 Sep 2018 13:04:46 +0000 (10:04 -0300)]
Multi-objects: Select similar edge SIMEDGE_FACE

16 months agoSelect similar edge: Granular error message
Dalai Felinto [Fri, 21 Sep 2018 12:35:36 +0000 (09:35 -0300)]
Select similar edge: Granular error message

This way we can implement them onw by one

16 months agoPy io_utils: deprecate `orientation_helper_factory` and add new `orientation_helper...
Bastien Montagne [Fri, 21 Sep 2018 17:28:39 +0000 (19:28 +0200)]
Py io_utils: deprecate `orientation_helper_factory` and add new `orientation_helper` decorator.

This fixes warning about not using annotations, and a decorator here is
a much cleaner solution anyway.

16 months agoFixup for gpu.types.GPUOffscreen.py example
Dalai Felinto [Fri, 21 Sep 2018 16:34:38 +0000 (13:34 -0300)]
Fixup for gpu.types.GPUOffscreen.py example

Addressing the changes introduced on: 43fa51835adee390aa4bcb9fe3bda1034480b7cf

16 months agoWireframe Mode: Fix missing wireframe if overlays are disabled
Clément Foucault [Fri, 21 Sep 2018 16:29:05 +0000 (18:29 +0200)]
Wireframe Mode: Fix missing wireframe if overlays are disabled

16 months agogpu.types.GPUOffscreen.py example file: Move the shader reference removal code to...
mano-wii [Fri, 21 Sep 2018 16:25:38 +0000 (13:25 -0300)]
gpu.types.GPUOffscreen.py example file: Move the shader reference removal code to execute on __main__

16 months agoViewport: tweak shading pie layout and naming.
Brecht Van Lommel [Fri, 21 Sep 2018 15:55:04 +0000 (17:55 +0200)]
Viewport: tweak shading pie layout and naming.

16 months agoCleanup: Indentation
Sergey Sharybin [Fri, 21 Sep 2018 15:40:16 +0000 (17:40 +0200)]
Cleanup: Indentation

16 months agoMultires: Remove unused field from reshape context
Sergey Sharybin [Fri, 21 Sep 2018 15:39:46 +0000 (17:39 +0200)]
Multires: Remove unused field from reshape context

16 months agogpu.types.GPUOffscreen.py example file: Delete the reference of the previous shader.
mano-wii [Fri, 21 Sep 2018 15:36:38 +0000 (12:36 -0300)]
gpu.types.GPUOffscreen.py example file: Delete the reference of the previous shader.

Strange that the `bpy.utils.register_class` utility does not remove the reference of the class with same name.

16 months agoViewport: tweak shading pie menu to have X-ray on same side as wireframe.
Brecht Van Lommel [Fri, 21 Sep 2018 15:01:10 +0000 (17:01 +0200)]
Viewport: tweak shading pie menu to have X-ray on same side as wireframe.

16 months agoViewport: change Z key to shading pie menu to switch mode, X-ray and overlays.
Brecht Van Lommel [Fri, 21 Sep 2018 13:46:49 +0000 (15:46 +0200)]
Viewport: change Z key to shading pie menu to switch mode, X-ray and overlays.

This lets us do the most common shading switching with one shortcut. We keep
alt+Z and shift+Z for quickly toggling to lookdev and rendered mode and back,
it's debatable which settings deserve a dedicated shortcut like this.

The downside is that switching X-ray is a little slower, and that there is
some risk of accidentally going to lookdev or rendered mode which can be slow
to cancel.

16 months agoFix: missing cache invalidation when the active vertex group changed
Jacques Lucke [Fri, 21 Sep 2018 14:19:34 +0000 (16:19 +0200)]
Fix: missing cache invalidation when the active vertex group changed

Reviewers: brecht

Differential Revision: https://developer.blender.org/D3716

16 months agoEdit Mesh Mode: Increase Face dot Z bias
Clément Foucault [Fri, 21 Sep 2018 13:44:52 +0000 (15:44 +0200)]
Edit Mesh Mode: Increase Face dot Z bias

16 months agoEdit Mode: Merge Xray and "Limit selection to visible" options behaviour
Clément Foucault [Fri, 21 Sep 2018 13:44:04 +0000 (15:44 +0200)]
Edit Mode: Merge Xray and "Limit selection to visible" options behaviour

We now treat Xray as being the mode where Limit selection to visible is off.
If Xray is OFF, Limit selection to visible is considered ON.

To allow 'see through wires' with solid shading (not Xray shading) we still
draw solid shading if Xray is ON with Xray Alpha set to 1.0.

16 months agoDRW: Add back wireframe mode
Clément Foucault [Fri, 21 Sep 2018 12:10:06 +0000 (14:10 +0200)]
DRW: Add back wireframe mode

This is using the existing engine (workbench forward) with 0.0 xray_alpha
and forcing wireframes on all objects.

There is no workflow/shortcut changes in this commit.

16 months agoCleanup: Inetnation
Sergey Sharybin [Fri, 21 Sep 2018 13:35:34 +0000 (15:35 +0200)]
Cleanup: Inetnation

16 months agoMultires: Support masks propagation to higher levels
Sergey Sharybin [Fri, 21 Sep 2018 13:30:55 +0000 (15:30 +0200)]
Multires: Support masks propagation to higher levels

16 months agoMultires: Copy mask from sculpt to multires
Sergey Sharybin [Fri, 21 Sep 2018 12:15:05 +0000 (14:15 +0200)]
Multires: Copy mask from sculpt to multires

Allows to paint mask in sculpt mode, then go out of sculpt
mode, come back and see proper mask.

16 months agoSubdiv: CCG, initialize grid mask from paint mask
Sergey Sharybin [Fri, 21 Sep 2018 11:58:49 +0000 (13:58 +0200)]
Subdiv: CCG, initialize grid mask from paint mask

16 months agoSubdiv: CCG, cleanup
Sergey Sharybin [Fri, 21 Sep 2018 11:01:09 +0000 (13:01 +0200)]
Subdiv: CCG, cleanup

16 months agoRe-enable FBX add-on.
Bastien Montagne [Fri, 21 Sep 2018 13:14:44 +0000 (15:14 +0200)]
Re-enable FBX add-on.

16 months agoDepsgraph: update frame in scene on frame change.
Brecht Van Lommel [Fri, 21 Sep 2018 12:09:07 +0000 (14:09 +0200)]
Depsgraph: update frame in scene on frame change.

Normally the time can be read from DEG_get_ctime(depsgraph), but this is a
bit more forgiving for e.g. addons that don't care too much about the details
of the COW depsgraph.

16 months agoFix smoke to render in Cycles again.
Brecht Van Lommel [Thu, 20 Sep 2018 12:41:47 +0000 (14:41 +0200)]
Fix smoke to render in Cycles again.

Viewport caching seems still broken, though baking works.

16 months agoGP: Change canvas titles
Antonioya [Fri, 21 Sep 2018 12:10:24 +0000 (14:10 +0200)]
GP: Change canvas titles

These changes are to harmonize names.

16 months agoCleanup: convert smoke modifier from DerivedMesh to Mesh.
Brecht Van Lommel [Thu, 20 Sep 2018 10:33:45 +0000 (12:33 +0200)]
Cleanup: convert smoke modifier from DerivedMesh to Mesh.

16 months agoCycles: keep material settings panel closed by default.
Brecht Van Lommel [Fri, 21 Sep 2018 09:24:56 +0000 (11:24 +0200)]
Cycles: keep material settings panel closed by default.

16 months agoRevert "Fix: setUp of ID Property tests failed"
Jacques Lucke [Fri, 21 Sep 2018 10:54:43 +0000 (12:54 +0200)]
Revert "Fix: setUp of ID Property tests failed"

This reverts commit 52cee1a23c92d30b241d58f7ed65a951ff034dee.

16 months agoFix: setUp of ID Property tests failed
Jacques Lucke [Fri, 21 Sep 2018 10:51:06 +0000 (12:51 +0200)]
Fix: setUp of ID Property tests failed

16 months agoSubdiv: Fix crash subdividing mesh withotu faces
Sergey Sharybin [Fri, 21 Sep 2018 10:18:50 +0000 (12:18 +0200)]
Subdiv: Fix crash subdividing mesh withotu faces

16 months agoMultires: Support sculpting on a lover levels
Sergey Sharybin [Fri, 21 Sep 2018 09:43:42 +0000 (11:43 +0200)]
Multires: Support sculpting on a lover levels

Added propagation of displacement to a higher levels.

Has the same limitation as reshape from object, which makes
grids somewhat choppy due to linear interpolation nature.

This is to be addressed next.

16 months agoMultires: Fix reshaping from object at lower level
Sergey Sharybin [Fri, 21 Sep 2018 09:18:37 +0000 (11:18 +0200)]
Multires: Fix reshaping from object at lower level

This brings basic implementation of displacement propagation
to a higher levels. Currently does linear interpolation between
grid points at which reshape happened. It makes results a bit
choppy, proper solution would be to use some interpolation
weights from the limit patch.

16 months agoUI: fractional DPI scaling of splash, instead of always 1x or 2x.
Brecht Van Lommel [Fri, 21 Sep 2018 08:43:36 +0000 (10:43 +0200)]
UI: fractional DPI scaling of splash, instead of always 1x or 2x.

16 months agoGP: Fix select tools from toolbar error
Antonioya [Fri, 21 Sep 2018 08:28:51 +0000 (10:28 +0200)]
GP: Fix select tools from toolbar error

The operators used were not the right ones.

16 months agoFix minor typo in comment.
Bastien Montagne [Fri, 21 Sep 2018 08:07:57 +0000 (10:07 +0200)]
Fix minor typo in comment.

16 months agoGP: Convert lock axis to popover
Antonioya [Fri, 21 Sep 2018 06:51:04 +0000 (08:51 +0200)]
GP: Convert lock axis to popover

16 months agoFix missing edge in shape-to-wire utility
Campbell Barton [Fri, 21 Sep 2018 06:08:02 +0000 (16:08 +1000)]
Fix missing edge in shape-to-wire utility

16 months agoGizmo: spin tool XYZ axis toggles
Campbell Barton [Fri, 21 Sep 2018 03:03:25 +0000 (13:03 +1000)]
Gizmo: spin tool XYZ axis toggles

New handle type for initial spin,
gives clear differentiation between do & redo (similar to extrude).

Some tweaks still required to match T56571.

16 months agoGizmo: enable spin tool redo gizmos again
Campbell Barton [Fri, 21 Sep 2018 00:50:55 +0000 (10:50 +1000)]
Gizmo: enable spin tool redo gizmos again

- Add x,y rotate and translate controls.
- Remove x-depth adjustment.

16 months agoGizmo: fix incorrect dial clip scaling
Campbell Barton [Fri, 21 Sep 2018 00:29:29 +0000 (10:29 +1000)]
Gizmo: fix incorrect dial clip scaling

Failed with obvious error when the dials scale wasn't 1.0

16 months agoUpdated gpu.types.GPUOffscreen.py example file
Dalai Felinto [Thu, 20 Sep 2018 22:06:51 +0000 (22:06 +0000)]
Updated gpu.types.GPUOffscreen.py example file

The image I get is a bit too dark, which is the same I get in the viewport
itself when there is no Display Device. So I believe for cases like this
we need to have color management on top of the buffer.

Also, on EEVEE it looks like it needs to clear some extra buffers. You can see
that, by rotating the camera view around.

That said, this is the first step to bring back fun addons
that use external offscreen buffers.

Note: When using gpu offscreen with POST_VIEW (as oppose to POST_PIXEL)
I get a crash with DST having 0xFF..

16 months agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 20 Sep 2018 22:18:23 +0000 (08:18 +1000)]
Merge branch 'master' into blender2.8

16 months agoCleanup: style, use raw strings
Campbell Barton [Thu, 20 Sep 2018 22:15:46 +0000 (08:15 +1000)]
Cleanup: style, use raw strings

16 months agoCleanup: style
Campbell Barton [Thu, 20 Sep 2018 21:31:29 +0000 (07:31 +1000)]
Cleanup: style

16 months agoPreserve the actively bound framebuffer after using gpu.offscreen
Dalai Felinto [Thu, 20 Sep 2018 21:41:30 +0000 (21:41 +0000)]
Preserve the actively bound framebuffer after using gpu.offscreen

Otherwise we cannot draw anything after drawing in the offscreen buffer

16 months agoGP: Change lock axis property text
Antonioya [Thu, 20 Sep 2018 20:51:56 +0000 (22:51 +0200)]
GP: Change lock axis property text

16 months agoGP: Rename origin to stroke placement
Antonioya [Thu, 20 Sep 2018 20:51:34 +0000 (22:51 +0200)]
GP: Rename origin to stroke placement

16 months agoGPU Python API: shader.uniform_float
Dalai Felinto [Thu, 20 Sep 2018 19:51:02 +0000 (19:51 +0000)]
GPU Python API: shader.uniform_float

The existing alternative is to use a buffer and call
uniform_vector_float which is overkill for such a simple operation.

16 months agoTypo on pydoc for uniform_int
Dalai Felinto [Thu, 20 Sep 2018 19:49:08 +0000 (19:49 +0000)]
Typo on pydoc for uniform_int