blender.git
3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 19 Apr 2018 16:11:49 +0000 (18:11 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: make variable name English
Campbell Barton [Thu, 19 Apr 2018 16:10:51 +0000 (18:10 +0200)]
Cleanup: make variable name English

3 years agoCleanup: rename vlak -> poly
Campbell Barton [Thu, 19 Apr 2018 16:08:55 +0000 (18:08 +0200)]
Cleanup: rename vlak -> poly

3 years agoCleanup: warnings
Campbell Barton [Thu, 19 Apr 2018 16:07:06 +0000 (18:07 +0200)]
Cleanup: warnings

3 years agoRemove Blender Internal and legacy viewport from Blender 2.8.
Ton Roosendaal [Thu, 19 Apr 2018 15:34:44 +0000 (17:34 +0200)]
Remove Blender Internal and legacy viewport from Blender 2.8.

Brecht authored this commit, but he gave me the honours to actually
do it. Here it goes; Blender Internal. Bye bye, you did great!

* Point density, voxel data, ocean, environment map textures were removed,
  as these only worked within BI rendering. Note that the ocean modifier
  and the Cycles point density shader node continue to work.
* Dynamic paint using material shading was removed, as this only worked
  with BI. If we ever wanted to support this again probably it should go
  through the baking API.
* GPU shader export through the Python API was removed. This only worked
  for the old BI GLSL shaders, which no longer exists. Doing something
  similar for Eevee would be significantly more complicated because it
  uses a lot of multiplass rendering and logic outside the shader, it's
  probably impractical.
* Collada material import / export code is mostly gone, as it only worked
  for BI materials. We need to add Cycles / Eevee material support at some
  point.
* The mesh noise operator was removed since it only worked with BI
  material texture slots. A displacement modifier can be used instead.
* The delete texture paint slot operator was removed since it only worked
  for BI material texture slots. Could be added back with node support.

* Not all legacy viewport features are supported in the new viewport, but
  their code was removed. If we need to bring anything back we can look at
  older git revisions.
* There is some legacy viewport code that I could not remove yet, and some
  that I probably missed.
* Shader node execution code was left mostly intact, even though it is not
  used anywhere now. We may eventually use this to replace the texture
  nodes with Cycles / Eevee shader nodes.

* The Cycles Bake panel now includes settings for baking multires normal
  and displacement maps. The underlying code needs to be merged properly,
  and we plan to add back support for multires AO baking and add support
  to Cycles baking for features like vertex color, displacement, and other
  missing baking features.

* This commit removes DNA and the Python API for BI material, lamp, world
  and scene settings. This breaks a lot of addons.
* There is more DNA that can be removed or renamed, where Cycles or Eevee
  are reusing some old BI properties but the names are not really correct
  anymore.
* Texture slots for materials, lamps and world were removed. They remain
  for brushes, particles and freestyle linestyles.
* 'BLENDER_RENDER' remains in the COMPAT_ENGINES of UI panels. Cycles and
  other renderers use this to find all panels to show, minus a few panels
  that they have their own replacement for.

3 years agoGHOST: Fix `processEvents` not notifying events handled by the system if the window...
Germano [Thu, 19 Apr 2018 14:26:33 +0000 (11:26 -0300)]
GHOST: Fix `processEvents` not notifying events handled by the system if the window is hidden.

Reviewed By: @LazyDodo
Differential Revision: https://developer.blender.org/D3154

3 years agoGWN Immediate: use GWN_BATCH_OWNS_VBO for created with imm immBeginBatch.
Germano [Thu, 19 Apr 2018 14:24:10 +0000 (11:24 -0300)]
GWN Immediate: use GWN_BATCH_OWNS_VBO for created with imm immBeginBatch.

3 years agoUV Editor: Fix memleak with loop_vbo and loop_batch.
Germano [Thu, 19 Apr 2018 14:22:16 +0000 (11:22 -0300)]
UV Editor: Fix memleak with loop_vbo and loop_batch.

3 years agoUV Editor: Style: rename variables to match others.
Germano [Thu, 19 Apr 2018 14:20:13 +0000 (11:20 -0300)]
UV Editor: Style: rename variables to match others.

3 years agoUV Editor: Fix memleak from recent changes.
Clément Foucault [Thu, 19 Apr 2018 13:38:37 +0000 (15:38 +0200)]
UV Editor: Fix memleak from recent changes.

3 years agoWorkbench: removed per collection object color
Jeroen Bakker [Thu, 19 Apr 2018 13:22:30 +0000 (15:22 +0200)]
Workbench: removed per collection object color

Will be part of the collection manager where per collection the
ob->col can be set. This currently depends on DepsGraph +
CollectionManager.

I removed it for now so the code won't influence development

3 years agoMerge branch 'blender2.8' of git.blender.org:blender into blender2.8
Jeroen Bakker [Thu, 19 Apr 2018 12:49:34 +0000 (14:49 +0200)]
Merge branch 'blender2.8' of git.blender.org:blender into blender2.8

3 years agoWorkbench: Diffuse studio lighting
Jeroen Bakker [Thu, 19 Apr 2018 12:48:53 +0000 (14:48 +0200)]
Workbench: Diffuse studio lighting

3 years agoUV Editor: Fix overflow issue with IMM usage.
Clément Foucault [Thu, 19 Apr 2018 12:22:32 +0000 (14:22 +0200)]
UV Editor: Fix overflow issue with IMM usage.

Use batch API in this case.

It's not the ideal solution (slow) but it works.

3 years agoUV Editor: Fix imm assert about program still bound.
Clément Foucault [Thu, 19 Apr 2018 09:22:25 +0000 (11:22 +0200)]
UV Editor: Fix imm assert about program still bound.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 19 Apr 2018 10:53:21 +0000 (12:53 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: rename Icon.type -> id_type
Campbell Barton [Thu, 19 Apr 2018 10:52:32 +0000 (12:52 +0200)]
Cleanup: rename Icon.type -> id_type

Confusing when adding non-id icons.

3 years agoMerge branch 'blender2.8' of git.blender.org:blender into blender2.8
Jeroen Bakker [Thu, 19 Apr 2018 10:47:11 +0000 (12:47 +0200)]
Merge branch 'blender2.8' of git.blender.org:blender into blender2.8

3 years agoWorkbench: drawtype object color from collection to v3d
Jeroen Bakker [Thu, 19 Apr 2018 10:44:37 +0000 (12:44 +0200)]
Workbench: drawtype object color from collection to v3d

Now every 3d view can have its own solid draw color setting

3 years agoFix: Armature display settings (names, axes, shapes, etc.) didn't refresh view with...
Joshua Leung [Thu, 19 Apr 2018 10:36:44 +0000 (12:36 +0200)]
Fix: Armature display settings (names, axes, shapes, etc.) didn't refresh view with Copy on Write enabled

Now we need to tag the depsgraph to inform all copies that stuff changed.

3 years agoDepsgraph: Fix crash with copy-on-write enabled
Sergey Sharybin [Thu, 19 Apr 2018 10:03:02 +0000 (12:03 +0200)]
Depsgraph: Fix crash with copy-on-write enabled

Was caused by ec0756af6c7, once again, we can't pass view layer,
need to pass index.

The sad part is that currently we don't have quick way to look up
view layer by index. Can do similar thing as we do for bones and
bases.

3 years agoFix edit-bone select crash w/ multi-edit
Campbell Barton [Thu, 19 Apr 2018 09:28:47 +0000 (11:28 +0200)]
Fix edit-bone select crash w/ multi-edit

Also avoid duplicate base lookups and minor cleanup.

3 years agoFix bug with NULL context being used in undo
Campbell Barton [Thu, 19 Apr 2018 09:12:57 +0000 (11:12 +0200)]
Fix bug with NULL context being used in undo

Caused sculpt to crash.

3 years agoPort particle instance modifier changes from Gooseberry branch
Sergey Sharybin [Wed, 18 Apr 2018 10:14:28 +0000 (12:14 +0200)]
Port particle instance modifier changes from Gooseberry branch

The work is mainly from Lukas Toenne, with some modifications from myself.

Includes following obvious changes:

- Particle system selection is now name-based, with lookup menu.
- Lots of new options to control varieties.

Changes comparing to the Gooseberry branch:

- Default values and versioning code ensures same behavior as the
  old modifier.

- Custom data layers are coming from vertex color, the modifier
  does not create arbitrary layers now. The hope is to keep data
  more manageable, and maybe make it easier to select in the shader
  later on.

  This means, values are quantized to 256 values, but it should be
  enough to get varieties in practice.

Reviewers: brecht, campbellbarton

Reviewed By: brecht

Subscribers: eyecandy

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

3 years agoMerge branch 'blender2.8' of git.blender.org:blender into blender2.8
Jeroen Bakker [Thu, 19 Apr 2018 08:42:03 +0000 (10:42 +0200)]
Merge branch 'blender2.8' of git.blender.org:blender into blender2.8

3 years agoWorkbench: added draw_scene_finish to workbench_materials
Jeroen Bakker [Thu, 19 Apr 2018 08:41:24 +0000 (10:41 +0200)]
Workbench: added draw_scene_finish to workbench_materials

3 years agoFix use of missing properties in UI after game engine removal.
Brecht Van Lommel [Thu, 19 Apr 2018 08:28:29 +0000 (10:28 +0200)]
Fix use of missing properties in UI after game engine removal.

3 years agoFinish use-after-free in workbench code.
Bastien Montagne [Thu, 19 Apr 2018 08:25:52 +0000 (10:25 +0200)]
Finish use-after-free in workbench code.

GHash should probably not own the data itself, but that's other question
to be fixed later, at least this fixes the crash.

Solution by @fclem, thanks!

3 years agoCode cleanup
Jeroen Bakker [Thu, 19 Apr 2018 07:51:22 +0000 (09:51 +0200)]
Code cleanup

3 years agoMerge branch 'blender2.8' of git.blender.org:blender into blender2.8
Jeroen Bakker [Thu, 19 Apr 2018 07:49:44 +0000 (09:49 +0200)]
Merge branch 'blender2.8' of git.blender.org:blender into blender2.8

3 years agoWorkbench: Option to use Object color
Jeroen Bakker [Thu, 19 Apr 2018 07:45:52 +0000 (09:45 +0200)]
Workbench: Option to use Object color

- added `object_color_type` where the user can set if the collection
determines the color, or the object will be used for the color.
Implemented it as an enum as later this can have a random color option.
- moved OB_LIGHTING_* to DNA_view3d_types and renamed it.
- Fixed some DRY in workbench_materials.c. Can remove more DRY's but
will need to discuss the responsibility of the workbench engine as it
might become part of the eevee renderer.

3 years agoBMesh: Add back call to finish operator
Campbell Barton [Thu, 19 Apr 2018 07:08:46 +0000 (09:08 +0200)]
BMesh: Add back call to finish operator

Was commented in multi-edit patch, finish is needed to free memory.

3 years agoFix T54712: Undo w/ multi-edit failed
Campbell Barton [Thu, 19 Apr 2018 06:58:49 +0000 (08:58 +0200)]
Fix T54712: Undo w/ multi-edit failed

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 19 Apr 2018 06:18:42 +0000 (08:18 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: style
Campbell Barton [Thu, 19 Apr 2018 06:18:16 +0000 (08:18 +0200)]
Cleanup: style

3 years agoUndo: add missing flag for text delete
Campbell Barton [Thu, 19 Apr 2018 06:16:37 +0000 (08:16 +0200)]
Undo: add missing flag for text delete

3 years agoCleanup: style
Campbell Barton [Thu, 19 Apr 2018 05:47:03 +0000 (07:47 +0200)]
Cleanup: style

3 years agoEdit Mesh: multi-object support for 'Decimate Geometry'
Thomas Beck [Wed, 18 Apr 2018 22:30:05 +0000 (00:30 +0200)]
Edit Mesh: multi-object support for 'Decimate Geometry'

3 years agoEdit Mesh: multi-object support for 'Vertices Only' extrusion (Alt+E)
Thomas Beck [Wed, 18 Apr 2018 22:03:51 +0000 (00:03 +0200)]
Edit Mesh: multi-object support for 'Vertices Only' extrusion (Alt+E)

3 years agoEdit Mesh: multi-object support for 'Individual Faces' extrusion (Alt+E)
Thomas Beck [Wed, 18 Apr 2018 21:55:27 +0000 (23:55 +0200)]
Edit Mesh: multi-object support for 'Individual Faces' extrusion (Alt+E)

3 years agoEdit Mesh: multi-object support for 'Edges Only' extrusion'
Thomas Beck [Wed, 18 Apr 2018 21:53:21 +0000 (23:53 +0200)]
Edit Mesh: multi-object support for 'Edges Only' extrusion'

3 years agoEdit Mesh: multi-object duplicate_move support
Thomas Beck [Wed, 18 Apr 2018 21:17:52 +0000 (23:17 +0200)]
Edit Mesh: multi-object duplicate_move support

3 years agoCleanup: indent face poke example
Campbell Barton [Wed, 18 Apr 2018 21:16:34 +0000 (23:16 +0200)]
Cleanup: indent face poke example

3 years agoCleanup: Use BLI_layer / BLI_view_layer prefix
Campbell Barton [Wed, 18 Apr 2018 19:01:55 +0000 (21:01 +0200)]
Cleanup: Use BLI_layer / BLI_view_layer prefix

Also use doxy sections for iterators.

3 years agoCleanup: consistent changed_multi assignment
Campbell Barton [Wed, 18 Apr 2018 17:20:06 +0000 (19:20 +0200)]
Cleanup: consistent changed_multi assignment

3 years agoEdit Mesh: multi-object flip normals support
Dalai Felinto [Wed, 18 Apr 2018 17:10:02 +0000 (19:10 +0200)]
Edit Mesh: multi-object flip normals support

3 years agoPose: multi-object Flip Quats
Campbell Barton [Wed, 18 Apr 2018 17:11:11 +0000 (19:11 +0200)]
Pose: multi-object Flip Quats

3 years agoPose: multi-object support for clear transform
Campbell Barton [Wed, 18 Apr 2018 16:53:00 +0000 (18:53 +0200)]
Pose: multi-object support for clear transform

3 years agoUse macros for looping over pose bones
Campbell Barton [Wed, 18 Apr 2018 16:32:32 +0000 (18:32 +0200)]
Use macros for looping over pose bones

3 years agoMSVC: use 'unsigned int'
Campbell Barton [Wed, 18 Apr 2018 16:55:55 +0000 (18:55 +0200)]
MSVC: use 'unsigned int'

3 years agoDepsgraph: Fix base flag flush for objects from set scene
Sergey Sharybin [Wed, 18 Apr 2018 16:04:38 +0000 (18:04 +0200)]
Depsgraph: Fix base flag flush for objects from set scene

Fixes view_layer_background_set regression test.

This makes Dalai happy! :)

3 years agoDepsgraph; Correct assert for depsgraph scene
Sergey Sharybin [Wed, 18 Apr 2018 15:43:15 +0000 (17:43 +0200)]
Depsgraph; Correct assert for depsgraph scene

We can not do it from builder, since builder will pull set scenes.

3 years agoDepsgraph: Fix missing bases array update
Sergey Sharybin [Wed, 18 Apr 2018 15:34:18 +0000 (17:34 +0200)]
Depsgraph: Fix missing bases array update

view_layer_object_copy test was broken.

This is a quick fix for now, can be optimized further later.

3 years agoEdit Mesh: improve subdivide multi-object
Campbell Barton [Wed, 18 Apr 2018 15:22:51 +0000 (17:22 +0200)]
Edit Mesh: improve subdivide multi-object

Don't run the operator on faces/edges without selection.

3 years agoEdit Mesh: multi-object poke support
Campbell Barton [Wed, 18 Apr 2018 15:15:14 +0000 (17:15 +0200)]
Edit Mesh: multi-object poke support

3 years agoFix layer unittests after scene/workspace engine changes
Dalai Felinto [Wed, 18 Apr 2018 15:06:57 +0000 (17:06 +0200)]
Fix layer unittests after scene/workspace engine changes

Note: view_layer_background_set and view_layer_object_copy still fail.
But they were failing before.

3 years agoWorkspaces: remove workspace engine, use 3D viewport draw mode instead.
Brecht Van Lommel [Tue, 17 Apr 2018 11:35:05 +0000 (13:35 +0200)]
Workspaces: remove workspace engine, use 3D viewport draw mode instead.

ViewRender was removed, which means we can't get the render engine for files
saved in 2.8. We assume that any files saved in 2.8 were intended to use Eevee
and set the engine to that.

A fix included with this is that .blend thumbails now draw with Clay mode,
and never Eevee or Cycles. These were drawn with solid mode in 2.7, and should
be very fast and not e.g. load heavy image textures.

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

3 years agoWorkbench: don't change to workbench drawtype for files saved in 2.8.
Brecht Van Lommel [Wed, 18 Apr 2018 09:51:20 +0000 (11:51 +0200)]
Workbench: don't change to workbench drawtype for files saved in 2.8.

Assume files saved in 2.8 were intended for Eevee and set them to material
viewport shading. In Eevee this is equal to rendered draw mode, in Cycles
this will draw with Eevee. This way Eevee demo files still show something
interesting when opened.

3 years agoUV Edit Draw: Fix assert in `immBeginBatch` -> `vertex_count_makes_sense_for_primitive`.
Germano [Wed, 18 Apr 2018 14:34:44 +0000 (11:34 -0300)]
UV Edit Draw: Fix assert in `immBeginBatch` -> `vertex_count_makes_sense_for_primitive`.

3 years agoFix bad merge conflict resolution
Sergey Sharybin [Wed, 18 Apr 2018 14:12:56 +0000 (16:12 +0200)]
Fix bad merge conflict resolution

Line got lost..

3 years agoFix missing initialization of depsgraph for snapping context
Sergey Sharybin [Wed, 18 Apr 2018 13:40:51 +0000 (15:40 +0200)]
Fix missing initialization of depsgraph for snapping context

Was causing crashes once attempting to use snapping.

Reported by mano-wii in IRC, thanks!

3 years agoWorkbench: use SET_UINT_IN_POINTER for hashes
Jeroen Bakker [Wed, 18 Apr 2018 13:16:21 +0000 (15:16 +0200)]
Workbench: use SET_UINT_IN_POINTER for hashes

3 years agoMerge branch 'blender2.8' into blender2.8-workbench
Jeroen Bakker [Wed, 18 Apr 2018 13:06:03 +0000 (15:06 +0200)]
Merge branch 'blender2.8' into blender2.8-workbench

3 years agoWorkbench: fixed C++ style comments
Jeroen Bakker [Wed, 18 Apr 2018 12:56:25 +0000 (14:56 +0200)]
Workbench: fixed C++ style comments

3 years agoCleanup: Indentation
Sergey Sharybin [Wed, 18 Apr 2018 12:40:20 +0000 (14:40 +0200)]
Cleanup: Indentation

3 years agoAdded comment to explain MeshRenderData.orco
Sybren A. Stüvel [Wed, 18 Apr 2018 12:13:16 +0000 (14:13 +0200)]
Added comment to explain MeshRenderData.orco

3 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Wed, 18 Apr 2018 11:55:09 +0000 (13:55 +0200)]
Merge branch 'master' into blender2.8

3 years agoDepsgraph: Fix missinf relation for particle instance modifier
Sergey Sharybin [Wed, 18 Apr 2018 11:54:02 +0000 (13:54 +0200)]
Depsgraph: Fix missinf relation for particle instance modifier

Was causing lack of animation update when particle system had simulation,

3 years agoMerge branch 'blender2.8' into blender2.8-workbench
Jeroen Bakker [Wed, 18 Apr 2018 11:53:22 +0000 (13:53 +0200)]
Merge branch 'blender2.8' into blender2.8-workbench

3 years agoWorkbench: reuse similar materials
Jeroen Bakker [Wed, 18 Apr 2018 11:44:33 +0000 (13:44 +0200)]
Workbench: reuse similar materials

Similar materials will reuse the same shadergroup. Currently using
a custom hash function that might select too similar colors into the
same material.

Reintroduced the workbench_materials.c this file will be responsible for
material lookup/creation and shader compilation

Fixed a GPUShader mem leak

3 years agoCleanup: Trailing whitespace
Sergey Sharybin [Wed, 18 Apr 2018 10:04:58 +0000 (12:04 +0200)]
Cleanup: Trailing whitespace

3 years agoMerge remote-tracking branch 'origin/master' into blender2.8
Sybren A. Stüvel [Wed, 18 Apr 2018 10:27:31 +0000 (12:27 +0200)]
Merge remote-tracking branch 'origin/master' into blender2.8

Explicitly undoing 287d1924fa149f0 here, as that was a master-only change.

3 years agoRemove irrelevant print statement
Sybren A. Stüvel [Wed, 18 Apr 2018 10:22:58 +0000 (12:22 +0200)]
Remove irrelevant print statement

This statement is only relevant in 2.8, but causes confusion in master.
I kept the 'default' label to prevent compiler warnings about unhandled
cases. The break is needed because there should be at least one statement
after 'default'.

3 years agoMerge branch 'blender2.8' of git.blender.org:blender into blender2.8
Jeroen Bakker [Wed, 18 Apr 2018 10:11:59 +0000 (12:11 +0200)]
Merge branch 'blender2.8' of git.blender.org:blender into blender2.8

3 years agoWORKBENCH: Solve C2016 compile errors
Jeroen Bakker [Wed, 18 Apr 2018 10:11:36 +0000 (12:11 +0200)]
WORKBENCH: Solve C2016 compile errors

3 years agoDisable auto-override for all but active object in group case.
Bastien Montagne [Wed, 18 Apr 2018 09:38:38 +0000 (11:38 +0200)]
Disable auto-override for all but active object in group case.

I.E. only enable auto-override for 'active' selected object when making
an override of a linked group. This will ease on auto-override creation,
and you typically do not want to auto-override most objects in the group
anyway (in proxy system, you could only proxyfy one object of the group
anyaway!).

3 years agoObject Mode: Outlines: Make outline thinner.
Clément Foucault [Wed, 18 Apr 2018 09:34:46 +0000 (11:34 +0200)]
Object Mode: Outlines: Make outline thinner.

This is by default. We can still enable the thicker outlines for high dpi
screens or personnal preference but it's not used atm. This also improve
the performance removing 1/3 of the outline cost.

3 years agoObject Mode: Outlines: Fix sample coordinates.
Clément Foucault [Wed, 18 Apr 2018 09:28:32 +0000 (11:28 +0200)]
Object Mode: Outlines: Fix sample coordinates.

3 years agoMake depsgraph tag for auto-override IDs it updates.
Bastien Montagne [Wed, 18 Apr 2018 09:25:31 +0000 (11:25 +0200)]
Make depsgraph tag for auto-override IDs it updates.

This will reduce amount of needless auto-override checks, at least when
not touching anything related to overriding IDs...

3 years agoParticles: Interpolate size for interpolated children
Sergey Sharybin [Wed, 18 Apr 2018 08:52:27 +0000 (10:52 +0200)]
Particles: Interpolate size for interpolated children

This finally allows us to use Random factor to add variations to the
interpolated children. This feature never worked since 2007L there was
random factor slider in the interface, but it was only used by simple
children. Now it has affect on interpolated children as well.

Technically, this will break compatibility if older file had random
factor set to something else than 0 (default value is 0 though). But
we are leaving 2.7 series, so can accept such breackage in the name
of supported features.

3 years agoCleanup: rename 'static override regarding reference ID' tag.
Bastien Montagne [Wed, 18 Apr 2018 08:44:38 +0000 (10:44 +0200)]
Cleanup: rename 'static override regarding reference ID' tag.

Just 'OK' was waaayyyyyy too generic!

3 years agoMerge branch 'blender2.8' of git.blender.org:blender into blender2.8
Jeroen Bakker [Wed, 18 Apr 2018 08:44:52 +0000 (10:44 +0200)]
Merge branch 'blender2.8' of git.blender.org:blender into blender2.8

3 years agoWorkbench: Fixed SegFault
Jeroen Bakker [Wed, 18 Apr 2018 08:43:03 +0000 (10:43 +0200)]
Workbench: Fixed SegFault

In more complex models the object color uniform data is freed before rendered.
We should copy it to local data. but for now we redirected it to a
constant.

3 years agoCleanup: merge checks for same version
Campbell Barton [Wed, 18 Apr 2018 07:20:28 +0000 (09:20 +0200)]
Cleanup: merge checks for same version

3 years agoMove transform orientation to scene
Campbell Barton [Wed, 18 Apr 2018 07:12:44 +0000 (09:12 +0200)]
Move transform orientation to scene

This was stored in the workspace, selected from the view.
Move both to scene since custom orientations are closely related to your
scene data.

3 years agoCleanup: unused var
Campbell Barton [Wed, 18 Apr 2018 07:15:48 +0000 (09:15 +0200)]
Cleanup: unused var

3 years agoMerge branch 'blender2.8-workbench' into blender2.8
Jeroen Bakker [Wed, 18 Apr 2018 06:25:59 +0000 (08:25 +0200)]
Merge branch 'blender2.8-workbench' into blender2.8

3 years agoCleanup: unused var
Campbell Barton [Wed, 18 Apr 2018 06:23:59 +0000 (08:23 +0200)]
Cleanup: unused var

3 years agoCMake: make recent bad level include explicit
Campbell Barton [Wed, 18 Apr 2018 06:21:24 +0000 (08:21 +0200)]
CMake: make recent bad level include explicit

This isn't something we should do,
each instance should be noted and removed.

3 years agoWorkbench: Basic Solid Studio
Jeroen Bakker [Wed, 18 Apr 2018 06:20:12 +0000 (08:20 +0200)]
Workbench: Basic Solid Studio

Currently uses static lighting. Will become HDRI lighting.
Added do_versions to set default drawtype_solid and drawtype_texture to
OB_LIGHTING_STUDIO. When View3D space is created drawtype_solid and
drawtype_texture are also set to OB_LIGHTING_STUDIO.

Current studio lighting uses a dot product to simulate static lighting.
Will need to be changed in the future with different lighting models.

3 years agoFix makesdna not respecting C++ comments
Julian Eisel [Tue, 17 Apr 2018 22:29:53 +0000 (00:29 +0200)]
Fix makesdna not respecting C++ comments

Tab after C++ comment broke parsing and didn't remove the line at all.
Was there since 2002 at least, probably confused some peeps.

This means commented out code was actually written to SDNA.

3 years agoEevee: Use textureGather for minmaxZbuffer downsampling.
Clément Foucault [Tue, 17 Apr 2018 20:25:53 +0000 (22:25 +0200)]
Eevee: Use textureGather for minmaxZbuffer downsampling.

I haven't noticed any performance improvement but it could be more important
for other hardware. At least it's not slower!

3 years agoObject Mode: Outlines: Fix precision issue on intel GPU.
Clément Foucault [Tue, 17 Apr 2018 20:09:56 +0000 (22:09 +0200)]
Object Mode: Outlines: Fix precision issue on intel GPU.

3 years 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

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

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

3 years 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

3 years 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

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

3 years 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.