blender.git
16 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Fri, 20 Apr 2018 08:49:14 +0000 (10:49 +0200)]
Merge branch 'master' into blender2.8

16 months agoAdd debug tool to check validity of current file *before* saving.
Bastien Montagne [Wed, 18 Apr 2018 16:22:18 +0000 (18:22 +0200)]
Add debug tool to check validity of current file *before* saving.

It is hidden behind the --debug-io flag for now.

Idea is to try to catch broken libraries state in current Main before we
actually write the file on disk, should help catching and understanding
what happens in Spring corruption cases.

16 months agoRemove Armature Sketching & Retarget
Campbell Barton [Fri, 20 Apr 2018 08:18:25 +0000 (10:18 +0200)]
Remove Armature Sketching & Retarget

While the feature is interesting, it's not much from what we can tell.

Retargeting is an important feature but needs
to fit in better with typical animation work-flows.

See: T52809

16 months agoEdit Mesh: use a single report for remove doubles
Campbell Barton [Fri, 20 Apr 2018 08:29:28 +0000 (10:29 +0200)]
Edit Mesh: use a single report for remove doubles

Report all doubles removed instead of report per-object.

Also correct use_unselected check.

16 months agoEdit Mesh: Correction to previous commit
Thomas Beck [Fri, 20 Apr 2018 08:22:05 +0000 (10:22 +0200)]
Edit Mesh: Correction to previous commit

The operation is based on faces, not vertices

16 months agoEdit Mesh: multi-object support for 'Make Planar Faces'
Thomas Beck [Fri, 20 Apr 2018 08:15:51 +0000 (10:15 +0200)]
Edit Mesh: multi-object support for 'Make Planar Faces'

16 months agoLimit updates to active view layer only
Sergey Sharybin [Fri, 20 Apr 2018 07:56:55 +0000 (09:56 +0200)]
Limit updates to active view layer only

This is rather uncommon when operator will operate on a non-active view layer,
so there is no need to do full scene update.

This change solves lag first time using Extrude operator in edit mode.

16 months agoVSE Effects: Wipe box: fix compilation errors
Aaron Carlisle [Thu, 19 Apr 2018 22:41:06 +0000 (18:41 -0400)]
VSE Effects: Wipe box: fix compilation errors

This is still broken I cant tell if it is the fact that the in_band
funtion does not work properally or an issue in the box algorithm, or
both.

It seems like the calculation of the size of the box while roatated
needs to be fixed also.

16 months agoEdit Mesh: multi-object support for 'Remove Doubles'
Thomas Beck [Thu, 19 Apr 2018 22:25:10 +0000 (00:25 +0200)]
Edit Mesh: multi-object support for 'Remove Doubles'

@campbellbarton: This operator works (as intended) on an object level, wich means that it won't remove doubles for vertices that are close to each other but contained in different objects - is that really helpful?

16 months agoFix mistake in previous GLSL cleanup commit.
Brecht Van Lommel [Thu, 19 Apr 2018 17:35:36 +0000 (19:35 +0200)]
Fix mistake in previous GLSL cleanup commit.

16 months agoTriangulate operator: Free memleak
Dalai Felinto [Thu, 19 Apr 2018 17:20:18 +0000 (19:20 +0200)]
Triangulate operator: Free memleak

The leak was introduced in the recent changes to
support multiple-object editing.

16 months agoFix build error with Windows / MSVC.
Brecht Van Lommel [Thu, 19 Apr 2018 17:03:54 +0000 (19:03 +0200)]
Fix build error with Windows / MSVC.

16 months agoCleanup: removed unused GLSL shader functions.
Brecht Van Lommel [Thu, 19 Apr 2018 16:15:55 +0000 (18:15 +0200)]
Cleanup: removed unused GLSL shader functions.

16 months agoCleanup: unused functions
Campbell Barton [Thu, 19 Apr 2018 16:14:01 +0000 (18:14 +0200)]
Cleanup: unused functions

16 months 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

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

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

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

16 months 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.

16 months 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

16 months 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.

16 months 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.

16 months 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.

16 months 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.

16 months 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

16 months 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

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

16 months 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.

16 months 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.

16 months 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

16 months 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.

16 months 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

16 months 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

16 months 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.

16 months 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.

16 months 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.

16 months 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.

16 months 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

16 months 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

16 months 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

16 months 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.

16 months 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!

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

16 months 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

16 months 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.

16 months 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.

16 months 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

16 months 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

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

16 months 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

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

16 months 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'

16 months 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)

16 months 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)

16 months 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'

16 months 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

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

16 months 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.

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

16 months 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

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

16 months 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

16 months 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

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

16 months 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! :)

16 months 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.

16 months 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.

16 months 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.

16 months 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

16 months 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.

16 months 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

16 months 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.

16 months 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`.

16 months 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..

16 months 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!

16 months 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

16 months 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

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

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

16 months 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

16 months 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

16 months 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,

16 months 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

16 months 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

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

16 months 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.

16 months 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'.

16 months 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

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

16 months 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!).

16 months 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.

16 months 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.

16 months 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...

16 months 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.

16 months 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!

16 months 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

16 months 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.

16 months 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

16 months 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.

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