blender.git
19 months agoWorkbench: clean up the viewport shading code
Jeroen Bakker [Tue, 17 Apr 2018 20:11:56 +0000 (22:11 +0200)]
Workbench: clean up the viewport shading code

- added the drawtype_solid, drawtype_wireframe, drawtype_texture to
View3D
- enabled workbench panels for important render engines
- merged workbench_materials to solid_flat_mode. All draw modes will get
its own fast implementation in the workbench

19 months agoCleanup: unused vars, long lines
Campbell Barton [Tue, 17 Apr 2018 18:02:17 +0000 (20:02 +0200)]
Cleanup: unused vars, long lines

19 months agoUI: Perf: Improve Dopesheet performance.
Clément Foucault [Tue, 17 Apr 2018 17:37:00 +0000 (19:37 +0200)]
UI: Perf: Improve Dopesheet performance.

19 months agoGWN: IMM: Add util function to batch several immRecti/immRectf
Clément Foucault [Tue, 17 Apr 2018 17:35:56 +0000 (19:35 +0200)]
GWN: IMM: Add util function to batch several immRecti/immRectf

19 months agoRemove player from buildbot part II
Dalai Felinto [Tue, 17 Apr 2018 16:46:03 +0000 (18:46 +0200)]
Remove player from buildbot part II

19 months agoRemove player from buildbot
Dalai Felinto [Tue, 17 Apr 2018 16:41:53 +0000 (18:41 +0200)]
Remove player from buildbot

19 months agoCleanup: remove modules that were only used by the game engine.
Brecht Van Lommel [Tue, 17 Apr 2018 16:35:22 +0000 (18:35 +0200)]
Cleanup: remove modules that were only used by the game engine.

19 months agoDRW: Perf: Early out empty passes.
Clément Foucault [Tue, 17 Apr 2018 16:26:05 +0000 (18:26 +0200)]
DRW: Perf: Early out empty passes.

19 months agoAdd overridable control to 'edit' feature of custom props.
Bastien Montagne [Tue, 17 Apr 2018 16:06:41 +0000 (18:06 +0200)]
Add overridable control to 'edit' feature of custom props.

19 months agoAdd generic bpy API to check if a property is overridable, and to set overridable...
Bastien Montagne [Tue, 17 Apr 2018 16:05:34 +0000 (18:05 +0200)]
Add generic bpy API to check if a property is overridable, and to set overridable status of custom props.

19 months agoUpdate/improve handling of 'overridable' status of properties.
Bastien Montagne [Tue, 17 Apr 2018 16:03:41 +0000 (18:03 +0200)]
Update/improve handling of 'overridable' status of properties.

Main new thing in this commit is ability for real IDProps (aka custom
properties) to be set as overridable or not, they are not by default.

19 months agoRemove Shift+F2 and other related BGE keymaps
Dalai Felinto [Tue, 17 Apr 2018 15:56:02 +0000 (17:56 +0200)]
Remove Shift+F2 and other related BGE keymaps

Reported by Pablo Vazquez (venomgfx)

19 months agoRemove game properties in image editor
Dalai Felinto [Tue, 17 Apr 2018 13:53:36 +0000 (15:53 +0200)]
Remove game properties in image editor

The following properties were used by the Blender Game Engine and no longer
need to be around:

* Animated
* Tiles
* Clamp
* Mapping

19 months agoRemoving Blender Game Engine from Blender 2.8
Dalai Felinto [Mon, 16 Apr 2018 12:07:42 +0000 (14:07 +0200)]
Removing Blender Game Engine from Blender 2.8

Folders removed entirely:
* //extern/recastnavigation
* //intern/decklink
* //intern/moto
* //source/blender/editors/space_logic
* //source/blenderplayer
* //source/gameengine

This includes DNA data and any reference to the BGE code in Blender itself.
We are bumping the subversion.

Pending tasks:
* Tile/clamp code in image editor draw code.
* Viewport drawing code (so much of this will go away because of BI removal
  that we can wait until then to remove this.

19 months agoDisable GAME ENGINE from the build options
Dalai Felinto [Mon, 16 Apr 2018 13:54:36 +0000 (15:54 +0200)]
Disable GAME ENGINE from the build options

19 months agoMerge remote-tracking branch 'origin/master' into blender2.8
Dalai Felinto [Tue, 17 Apr 2018 15:36:39 +0000 (17:36 +0200)]
Merge remote-tracking branch 'origin/master' into blender2.8

19 months agoParticles: Hair: Make hair selectable in the 3D view.
Clément Foucault [Tue, 17 Apr 2018 15:34:00 +0000 (17:34 +0200)]
Particles: Hair: Make hair selectable in the 3D view.

19 months agoInterface: Show properties values from evaluated datablocks
Sergey Sharybin [Tue, 17 Apr 2018 15:20:34 +0000 (17:20 +0200)]
Interface: Show properties values from evaluated datablocks

This is a way to deal with animated properties in evaluated version
off datablock. Previously, running blender with copy-on-write enabled
will show original values. Now we can see proper properties, while
typing values in still goes to the original datablock.

Thanks Brecht for the review!

19 months agoObject Mode: Fix wrong wire color on non-meshes objects.
Clément Foucault [Tue, 17 Apr 2018 15:00:24 +0000 (17:00 +0200)]
Object Mode: Fix wrong wire color on non-meshes objects.

19 months agoObject Mode: Cleanup uneeded texture attachment.
Clément Foucault [Tue, 17 Apr 2018 14:21:25 +0000 (16:21 +0200)]
Object Mode: Cleanup uneeded texture attachment.

19 months agoMerge branch 'blender2.8' into blender2.8-workbench
Jeroen Bakker [Tue, 17 Apr 2018 14:39:18 +0000 (16:39 +0200)]
Merge branch 'blender2.8' into blender2.8-workbench

19 months agoWorkbench: Switching Draw engines based on draw mode
Jeroen Bakker [Tue, 17 Apr 2018 14:34:41 +0000 (16:34 +0200)]
Workbench: Switching Draw engines based on draw mode

19 months agoUI: Fix T54691: Vector icon vs Widget base ordering.
Clément Foucault [Tue, 17 Apr 2018 13:53:49 +0000 (15:53 +0200)]
UI: Fix T54691: Vector icon vs Widget base ordering.

It was making keyframe marker and bone theme color icon disappear under
their button.

19 months agoEevee: Render: Fix assert with framebuffer not being bound before read.
Clément Foucault [Tue, 17 Apr 2018 13:32:59 +0000 (15:32 +0200)]
Eevee: Render: Fix assert with framebuffer not being bound before read.

19 months agoEevee: Fix AA in render mode.
Clément Foucault [Tue, 17 Apr 2018 13:32:30 +0000 (15:32 +0200)]
Eevee: Fix AA in render mode.

Was due to wrong framebuffer being read because of wrong comparisson caused
by b9ec7a92725e1567c12475a9eb59191edca1dc32

19 months agoMerge branch 'blender2.8' into blender2.8-workbench
Jeroen Bakker [Tue, 17 Apr 2018 12:59:37 +0000 (14:59 +0200)]
Merge branch 'blender2.8' into blender2.8-workbench

19 months agoWorkbench: Draw modes
Jeroen Bakker [Tue, 17 Apr 2018 12:58:48 +0000 (14:58 +0200)]
Workbench: Draw modes

19 months agoDepsgraph: Allow querying NULL IDs for evaluated version
Sergey Sharybin [Tue, 17 Apr 2018 11:48:39 +0000 (13:48 +0200)]
Depsgraph: Allow querying NULL IDs for evaluated version

Saves us from extra checks for NULL pointers when using datablocks for read.

19 months agoDRW: Fix lightprobe objects outlines.
Clément Foucault [Tue, 17 Apr 2018 11:01:01 +0000 (13:01 +0200)]
DRW: Fix lightprobe objects outlines.

19 months agoGPU: Add GPU_SHADER_INSTANCE_VARIYING_ID_VARIYING_SIZE.
Clément Foucault [Tue, 17 Apr 2018 11:00:09 +0000 (13:00 +0200)]
GPU: Add GPU_SHADER_INSTANCE_VARIYING_ID_VARIYING_SIZE.

Will be used for probe outline id drawing.

19 months agoDRW: Add DRW_UNIFORM_INT_COPY.
Clément Foucault [Tue, 17 Apr 2018 10:59:18 +0000 (12:59 +0200)]
DRW: Add DRW_UNIFORM_INT_COPY.

This allow to use int uniforms that are not references. Convenient for ids.

19 months agoDepsgraph: Fix unwanted node tree copy-over
Sergey Sharybin [Tue, 17 Apr 2018 10:47:28 +0000 (12:47 +0200)]
Depsgraph: Fix unwanted node tree copy-over

Was caused by two things from the past:

- Tagging would set id->recalc to COW update flag.
  This one is to be ignored.

- Particle tagging will use psys recalc flags on id->recalc,
  but we only need to use flags from particles. Otherwise
  it will be some collisions in bit masks.

19 months agobpy consistency fix handler_add(handle)
Dalai Felinto [Tue, 17 Apr 2018 10:29:24 +0000 (12:29 +0200)]
bpy consistency fix handler_add(handle)

This doesn't change the API, so it doesn't affect any script.
However it give more consistent error messages.

19 months agobpy blf api example update
Dalai Felinto [Tue, 17 Apr 2018 10:25:51 +0000 (12:25 +0200)]
bpy blf api example update

With changes from Campbell Barton as well.

19 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Tue, 17 Apr 2018 10:12:35 +0000 (12:12 +0200)]
Merge branch 'master' into blender2.8

19 months agoFix (unreported) RNA sometimes trying to get named sub-props from non-Group IDProp.
Bastien Montagne [Tue, 17 Apr 2018 09:59:14 +0000 (11:59 +0200)]
Fix (unreported) RNA sometimes trying to get named sub-props from non-Group IDProp.

Why exactly this happens remains unclear, found that in the
autumn.blenrig file of Spring production while working on static
overrides... Tons of ugly IDProps in that rig. xD

19 months agoPose: fix wpaint + pose mode pick & linked select
Campbell Barton [Tue, 17 Apr 2018 09:21:27 +0000 (11:21 +0200)]
Pose: fix wpaint + pose mode pick & linked select

19 months agoFix blenderplayer and collada build.
Brecht Van Lommel [Tue, 17 Apr 2018 08:58:27 +0000 (10:58 +0200)]
Fix blenderplayer and collada build.

19 months agoPose: multi-object hide/reveal support
Campbell Barton [Tue, 17 Apr 2018 08:15:40 +0000 (10:15 +0200)]
Pose: multi-object hide/reveal support

19 months agoBKE_object: utility functions for pose access
Campbell Barton [Tue, 17 Apr 2018 08:13:32 +0000 (10:13 +0200)]
BKE_object: utility functions for pose access

Pose objects may be from the active object,
or from the weight paint mesh.

Since this is such a common check move this to a function call.

19 months agoMake particle edit mode work again
Mai Lavelle [Thu, 12 Apr 2018 07:32:36 +0000 (03:32 -0400)]
Make particle edit mode work again

This is just to have hair rendering and editing mostly working as in
master. A better fix is probably needed, there seems to be some
missing depsgraph relations for particle edit settings, and particle
edit code doesn't rebuild caches after applying edits. But at least
you can see and interact with hair now until those things can be
sorted out.

19 months agoView3D: Check all objects w/ view-selected
Campbell Barton [Tue, 17 Apr 2018 06:30:29 +0000 (08:30 +0200)]
View3D: Check all objects w/ view-selected

19 months agoObject Mode: Outline: Perf: Only do outlines detection if needed.
Clément Foucault [Mon, 16 Apr 2018 20:55:02 +0000 (22:55 +0200)]
Object Mode: Outline: Perf: Only do outlines detection if needed.

19 months agoObject Mode: Outlines: Use textureGather extension if available.
Clément Foucault [Mon, 16 Apr 2018 20:53:44 +0000 (22:53 +0200)]
Object Mode: Outlines: Use textureGather extension if available.

This has very little impact (only had 12.5% perf improvment on Nvidia for this specific pass).
But it's an improvement nontheless!

19 months agoFix for building w/o open-subdiv
Campbell Barton [Mon, 16 Apr 2018 18:45:43 +0000 (20:45 +0200)]
Fix for building w/o open-subdiv

19 months agoMerge branch 'blender2.8' into blender2.8-workbench
Jeroen Bakker [Mon, 16 Apr 2018 18:35:59 +0000 (20:35 +0200)]
Merge branch 'blender2.8' into blender2.8-workbench

19 months agoDepsgraph: remove EvaluationContext, pass Depsgraph instead.
Brecht Van Lommel [Fri, 6 Apr 2018 10:07:27 +0000 (12:07 +0200)]
Depsgraph: remove EvaluationContext, pass Depsgraph instead.

The depsgraph was always created within a fixed evaluation context. Passing
both risks the depsgraph and evaluation context not matching, and it
complicates the Python API where we'd have to expose both which is not so
easy to understand.

This also removes the global evaluation context in main, which assumed there
to be a single active scene and view layer.

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

19 months agoFix multi-object edit crash
Campbell Barton [Mon, 16 Apr 2018 17:40:57 +0000 (19:40 +0200)]
Fix multi-object edit crash

Border select assumed all objects had pose bones.

19 months agoDRW: Fix outdated code.
Clément Foucault [Mon, 16 Apr 2018 17:38:49 +0000 (19:38 +0200)]
DRW: Fix outdated code.

19 months agoObject Mode: Rework outline drawing.
Clément Foucault [Mon, 16 Apr 2018 17:38:40 +0000 (19:38 +0200)]
Object Mode: Rework outline drawing.

This changes quite a few things.
- Outline is now per object.
- No more outline at object intersection (fix hairs problem).
- Simplify the code quite a bit.

We use a R16UI buffer to save one id per object outline. We convert this id
to color when detecting the outline.

Added textureGatherOffsets to the code but could not test on current hardware
so leaving it commented for now.

19 months agoGPU/DRW: Add GPU_R16UI format.
Clément Foucault [Mon, 16 Apr 2018 17:33:09 +0000 (19:33 +0200)]
GPU/DRW: Add GPU_R16UI format.

19 months agoDRW/GWN: Add callId builtin uniform.
Clément Foucault [Mon, 16 Apr 2018 17:26:54 +0000 (19:26 +0200)]
DRW/GWN: Add callId builtin uniform.

This uniforms can be used to have a unique id for each drawcall of a shgrp.
This only works for standard shgroups and is an exception for the outline
drawing.

19 months agoDRW: Culling: Fix algorithm for asymmetric perspective frustum reconstruction.
Germano [Mon, 16 Apr 2018 17:34:32 +0000 (14:34 -0300)]
DRW: Culling: Fix algorithm for asymmetric perspective frustum reconstruction.

19 months agoAudaspace: Change default plugin path on windows.
Jörg Müller [Mon, 16 Apr 2018 17:00:35 +0000 (19:00 +0200)]
Audaspace: Change default plugin path on windows.

This was suggested by Ray Molenkamp in order to avoid problems with
thumbnail dlls.

19 months agoCleanup: indentation
Campbell Barton [Mon, 16 Apr 2018 16:24:38 +0000 (18:24 +0200)]
Cleanup: indentation

19 months agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 16 Apr 2018 16:22:43 +0000 (18:22 +0200)]
Merge branch 'master' into blender2.8

19 months agoCleanup: indentation
Campbell Barton [Mon, 16 Apr 2018 16:13:48 +0000 (18:13 +0200)]
Cleanup: indentation

19 months agoCleanup: indentation
Campbell Barton [Mon, 16 Apr 2018 15:54:33 +0000 (17:54 +0200)]
Cleanup: indentation

Indent lines for multi object editing, no functional changes.

Also strip trailing space from indented regions.

19 months agoMulti-Object Editing
Campbell Barton [Mon, 16 Apr 2018 14:27:55 +0000 (16:27 +0200)]
Multi-Object Editing

This adds initial multi-object editing support.

- Selected objects are used when entering edit & pose modes.
- Selection & tools work on all objects however many tools need porting
  See: T54641 for remaining tasks.

Indentation will be done separately.

See patch: D3101

19 months agoFix T54491: Do not avoid the creation of inverted frustum.
Germano [Mon, 16 Apr 2018 15:37:14 +0000 (12:37 -0300)]
Fix T54491: Do not avoid the creation of inverted frustum.

Blender allows this.
The Cube in the file in the report would always disappear with the non camera view.
The clip_end was too small.
The correction here is only on the assert.

19 months agoCleanup: indentation
Campbell Barton [Mon, 16 Apr 2018 15:26:55 +0000 (17:26 +0200)]
Cleanup: indentation

19 months agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 16 Apr 2018 15:23:24 +0000 (17:23 +0200)]
Merge branch 'master' into blender2.8

19 months agoCleanup: indentation
Campbell Barton [Mon, 16 Apr 2018 15:16:29 +0000 (17:16 +0200)]
Cleanup: indentation

19 months agoCleanup: indentation
Campbell Barton [Mon, 16 Apr 2018 15:08:27 +0000 (17:08 +0200)]
Cleanup: indentation

19 months agoDRW: Culling: Reorganize frustum_boundbox_calc to match comments.
Germano [Mon, 16 Apr 2018 14:48:58 +0000 (11:48 -0300)]
DRW: Culling: Reorganize frustum_boundbox_calc to match comments.

And Cleanup.

19 months agoFix unreported error: Algorithm for extracting the Bounding Sphere from an Orthograph...
Germano [Mon, 16 Apr 2018 14:42:20 +0000 (11:42 -0300)]
Fix unreported error: Algorithm for extracting the Bounding Sphere from an Orthographic frustum was incorrect.

There was double transformation.

19 months agoFix two more 'infinite recursions' cases in RNA pose.
Bastien Montagne [Mon, 16 Apr 2018 14:38:28 +0000 (16:38 +0200)]
Fix two more 'infinite recursions' cases in RNA pose.

19 months agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 16 Apr 2018 14:22:28 +0000 (16:22 +0200)]
Merge branch 'master' into blender2.8

19 months agoBKE_context: macro to access ID's while looping
Campbell Barton [Mon, 16 Apr 2018 14:19:16 +0000 (16:19 +0200)]
BKE_context: macro to access ID's while looping

19 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Mon, 16 Apr 2018 14:17:03 +0000 (16:17 +0200)]
Merge branch 'master' into blender2.8

19 months agoDepsgraph: Pull indirect relations via driver targets
Sergey Sharybin [Mon, 16 Apr 2018 14:12:15 +0000 (16:12 +0200)]
Depsgraph: Pull indirect relations via driver targets

19 months agoSwitch 'make static override' of group to making all objects local overrides.
Bastien Montagne [Mon, 16 Apr 2018 13:56:48 +0000 (15:56 +0200)]
Switch 'make static override' of group to making all objects local overrides.

Note: tried with a complex production file characters, this is currently
totally non-functionnal (crashing even in a infinite recursion loop),
IDProps and override need some love :(

19 months agoFix warning: Passed ID pointer where screen pointer was expected
Julian Eisel [Mon, 16 Apr 2018 13:53:34 +0000 (15:53 +0200)]
Fix warning: Passed ID pointer where screen pointer was expected

19 months agoFix rBb31ebd8c5c55: the asymmetric furstrum algorithm was still incorrect.
Germano [Mon, 16 Apr 2018 13:40:46 +0000 (10:40 -0300)]
Fix rBb31ebd8c5c55: the asymmetric furstrum algorithm was still incorrect.

Although somewhat less micro efficient, I decided to separate the `viewinv` matrix to calculate the world position separately.
This makes it easier to understand the code.

19 months agoCleanup: move some screen utility functions, from topbar branch.
Julian Eisel [Fri, 13 Apr 2018 19:43:57 +0000 (21:43 +0200)]
Cleanup: move some screen utility functions, from topbar branch.

19 months agoCleanup: split off area reading/writing functions, from topbar branch.
Julian Eisel [Fri, 13 Apr 2018 18:29:16 +0000 (20:29 +0200)]
Cleanup: split off area reading/writing functions, from topbar branch.

19 months agoFix build errors after recent depsgraph changes.
Brecht Van Lommel [Mon, 16 Apr 2018 13:14:11 +0000 (15:14 +0200)]
Fix build errors after recent depsgraph changes.

19 months agoMerge branch 'blender2.8' into blender2.8-workbench
Jeroen Bakker [Mon, 16 Apr 2018 13:02:40 +0000 (15:02 +0200)]
Merge branch 'blender2.8' into blender2.8-workbench

19 months agoWorkbench: Added Object Color to collection_properties
Jeroen Bakker [Mon, 16 Apr 2018 13:01:31 +0000 (15:01 +0200)]
Workbench: Added Object Color to collection_properties

19 months agoFix stubs
Campbell Barton [Mon, 16 Apr 2018 08:53:16 +0000 (10:53 +0200)]
Fix stubs

19 months agoFix T54609: Erros in precise BBox extraction algorithm
Germano [Mon, 16 Apr 2018 12:22:42 +0000 (09:22 -0300)]
Fix T54609: Erros in precise BBox extraction algorithm

19 months agoDepsgraph: Tag scene after changing cursor location
Sergey Sharybin [Mon, 16 Apr 2018 10:56:39 +0000 (12:56 +0200)]
Depsgraph: Tag scene after changing cursor location

While 3d cursor is mainly an UI thing and isn't needed for scene evaluation,
it is stored in scene DNA. This means, operator is inform depsgraph that data
has changed, so all copies of that scene can copy new values.

Fixes lack of visual feedback when changing cursor location in viewport
with copy-on-write enabled.

19 months agoFix incorrect scene used for building freestyle stroke depsgraph.
Brecht Van Lommel [Mon, 16 Apr 2018 08:27:05 +0000 (10:27 +0200)]
Fix incorrect scene used for building freestyle stroke depsgraph.

19 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Mon, 16 Apr 2018 08:19:03 +0000 (10:19 +0200)]
Merge branch 'master' into blender2.8

19 months agoMake ID icons safe for deletion from threads
Sergey Sharybin [Fri, 13 Apr 2018 11:52:37 +0000 (13:52 +0200)]
Make ID icons safe for deletion from threads

Added a lock-free deferred queue for deletion. Now if ID icon
is requested to be freed from non-main thread, it will be added
to the deferred list. Actual deletion will happen later from main
thread.

Currently actual deletion only happens next time BKE_icon_id_delete()
is called, which might not be enough. But it's easy to enforce
deferred deletion.

Icons for preview images are not covered by deferred deletion yet.

Reviewers: mont29

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

19 months agoAdded lock-free single linked list implementation
Sergey Sharybin [Fri, 13 Apr 2018 11:31:55 +0000 (13:31 +0200)]
Added lock-free single linked list implementation

Only supports lock-free insertion for now, can not delete element
or traverse the list at the same time.

19 months agoMerge remote-tracking branch 'origin' into blender2.8
Gaia Clary [Mon, 16 Apr 2018 07:59:52 +0000 (09:59 +0200)]
Merge remote-tracking branch 'origin' into blender2.8

19 months agoDisable Feature Collada: Tests do not work on unix
Gaia Clary [Mon, 16 Apr 2018 07:55:05 +0000 (09:55 +0200)]
Disable Feature Collada: Tests do not work on unix

The tests as they are now make string comparisons. This only works
on Windows because the reference files look different for different
operating systems because of different number formatting.
The collada tests need a complete rework (wip)

19 months agoFix object/bone select buffer big-endian sorting
Campbell Barton [Mon, 16 Apr 2018 06:51:41 +0000 (08:51 +0200)]
Fix object/bone select buffer big-endian sorting

19 months agoMerge branch 'blender2.8' into blender2.8-workbench
Jeroen Bakker [Mon, 16 Apr 2018 06:20:12 +0000 (08:20 +0200)]
Merge branch 'blender2.8' into blender2.8-workbench

19 months agoCleanup: unused function
Campbell Barton [Mon, 16 Apr 2018 05:40:40 +0000 (07:40 +0200)]
Cleanup: unused function

19 months agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 16 Apr 2018 05:39:47 +0000 (07:39 +0200)]
Merge branch 'master' into blender2.8

19 months agoLogging: edits to build on macOS
Campbell Barton [Mon, 16 Apr 2018 05:38:11 +0000 (07:38 +0200)]
Logging: edits to build on macOS

19 months agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 16 Apr 2018 05:27:53 +0000 (07:27 +0200)]
Merge branch 'master' into blender2.8

19 months agoEevee: Cleanup remaining shadow geometry references.
Clément Foucault [Sun, 15 Apr 2018 20:23:28 +0000 (22:23 +0200)]
Eevee: Cleanup remaining shadow geometry references.

19 months agoEevee: Shadows: Transition to individual face rendering.
Clément Foucault [Sun, 15 Apr 2018 20:22:50 +0000 (22:22 +0200)]
Eevee: Shadows: Transition to individual face rendering.

This gets rid of the need of a geom shader and instancing.

Both are pretty slow compared to the new method.
The only moment the old method could be better is when scene is filled
with lots of objects and most of the objects in the shadow map appear
on every layer.

But even then, we could optimize the culling and minimize the overhead.

19 months agoDRW: Fix culling algorithm for cascade shadow maps.
Clément Foucault [Sun, 15 Apr 2018 19:48:57 +0000 (21:48 +0200)]
DRW: Fix culling algorithm for cascade shadow maps.

draw_frustum_boundbox_calc does not work properly it seems in this case.

19 months agoDRW: Override matrices: fix const correctness.
Clément Foucault [Sun, 15 Apr 2018 17:03:42 +0000 (19:03 +0200)]
DRW: Override matrices: fix const correctness.

19 months agoCleanup: skip redundant edit-bone select lookups
Campbell Barton [Sun, 15 Apr 2018 19:45:19 +0000 (21:45 +0200)]
Cleanup: skip redundant edit-bone select lookups

19 months agoCleanup: Make access to widget triangle defines explicit
Julian Eisel [Sun, 15 Apr 2018 19:32:04 +0000 (21:32 +0200)]
Cleanup: Make access to widget triangle defines explicit

E.g. the vertices created for each of the defines would require a
certain offset. If you don't know what to look for, finding out about
this is pretty difficult. Make them easily searchable instead.