blender.git
22 months agoMore debug timing info from main RNA diffing func.
Bastien Montagne [Fri, 20 Apr 2018 14:04:27 +0000 (16:04 +0200)]
More debug timing info from main RNA diffing func.

22 months agoUI: move manipulator to tool-system
Campbell Barton [Fri, 20 Apr 2018 13:59:42 +0000 (15:59 +0200)]
UI: move manipulator to tool-system

Current manipulator now follows active tool.

22 months agoUI: Python API defining dynamic icons
Campbell Barton [Fri, 20 Apr 2018 13:25:18 +0000 (15:25 +0200)]
UI: Python API defining dynamic icons

Currently only able to define geometry icons.

22 months agoUI: Support for runtime geometry icons
Campbell Barton [Fri, 20 Apr 2018 13:15:10 +0000 (15:15 +0200)]
UI: Support for runtime geometry icons

22 months agoFix building w/o clay
Campbell Barton [Fri, 20 Apr 2018 13:24:57 +0000 (15:24 +0200)]
Fix building w/o clay

22 months agoMerge remote-tracking branch 'origin/master' into blender2.8
Gaia Clary [Fri, 20 Apr 2018 13:13:06 +0000 (15:13 +0200)]
Merge remote-tracking branch 'origin/master' into blender2.8

22 months agoCleanup (followup commit for D3160)
Gaia Clary [Fri, 20 Apr 2018 13:09:56 +0000 (15:09 +0200)]
Cleanup (followup commit for D3160)

Added some spaces to keep the eInsertKeyFlags enumeration proper

22 months agoMerge remote-tracking branch 'origin/master' into blender2.8
Gaia Clary [Fri, 20 Apr 2018 13:05:22 +0000 (15:05 +0200)]
Merge remote-tracking branch 'origin/master' into blender2.8

22 months agoFix: D3160 Propose to use proper typedefs to avoid confusion
Gaia Clary [Wed, 18 Apr 2018 16:21:27 +0000 (18:21 +0200)]
Fix: D3160 Propose to use proper typedefs to avoid confusion

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

22 months agoWorkbench: Clay renderer was not accessible anymore
Jeroen Bakker [Fri, 20 Apr 2018 12:52:16 +0000 (14:52 +0200)]
Workbench: Clay renderer was not accessible anymore

issue was the factoring of the workspace engine that was removed. the logic implied that the clay could not be rendered as clay will be a draw mode we placed it already there so it is accessible in any engine. Should eventually fix the clay engine by migrating it to the workbench engine.

22 months agoWorkbench: Draw random object colors
Jeroen Bakker [Fri, 20 Apr 2018 12:38:55 +0000 (14:38 +0200)]
Workbench: Draw random object colors

Basic implementation hashes the ob->id.name. In the future we should use
an golden ratio offset algorithm as it can make a better random
palettte.

22 months agoWorkbench: drawtype_* => drawtype_options, drawtype_lighting
Jeroen Bakker [Fri, 20 Apr 2018 11:40:18 +0000 (13:40 +0200)]
Workbench: drawtype_* => drawtype_options, drawtype_lighting

In the new design the lighting is shared across the drawtypes.
the drawtype_options will be used for viewport draw engine settings

22 months agoWorkbench: Face orientation blending
Jeroen Bakker [Fri, 20 Apr 2018 11:01:16 +0000 (13:01 +0200)]
Workbench: Face orientation blending

22 months agoMerge branch 'blender2.8' into blender2.8-workbench
Jeroen Bakker [Fri, 20 Apr 2018 10:49:02 +0000 (12:49 +0200)]
Merge branch 'blender2.8' into blender2.8-workbench

22 months agoWorkbench: Face orientation overlay
Jeroen Bakker [Fri, 20 Apr 2018 10:46:37 +0000 (12:46 +0200)]
Workbench: Face orientation overlay

- Removed the depth pass as it will reuse the depth pass of the render
engine
- Used gl_FrontFacing to determine the facing
- Blender the result with the render engine result

22 months agoStatic overrides optimization: 30% quicker.
Bastien Montagne [Fri, 20 Apr 2018 10:19:14 +0000 (12:19 +0200)]
Static overrides optimization: 30% quicker.

use stack instead of always allocating memory for RNA paths of checked
properties! From average 167ms to 118ms here with Autumn rig... Still a
lot to improve, but that's already much better.

22 months agoEdit Mesh: multi-object support for 'Symmetrize'
Thomas Beck [Fri, 20 Apr 2018 09:02:19 +0000 (11:02 +0200)]
Edit Mesh: multi-object support for 'Symmetrize'

22 months agoDepsgraph: Add utility functions to go from evaluated to original datablock
Sergey Sharybin [Fri, 20 Apr 2018 09:01:43 +0000 (11:01 +0200)]
Depsgraph: Add utility functions to go from evaluated to original datablock

22 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Fri, 20 Apr 2018 09:01:29 +0000 (11:01 +0200)]
Merge branch 'master' into blender2.8

22 months agoFix usage of lib filepath in previous own commit...
Bastien Montagne [Fri, 20 Apr 2018 09:00:12 +0000 (11:00 +0200)]
Fix usage of lib filepath in previous own commit...

22 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

22 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.

22 months agoWorkbench: Added the basics for the OverlayMode
Jeroen Bakker [Fri, 20 Apr 2018 08:45:46 +0000 (10:45 +0200)]
Workbench: Added the basics for the OverlayMode

Implemented the face orientation overlay for testing.
Overlay mode is only drawn when there are overlays to be rendered.
The overlay mode is rendered before the object mode.

22 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

22 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.

22 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

22 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'

22 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.

22 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.

22 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?

22 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.

22 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.

22 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.

22 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.

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

22 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

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

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

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

22 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.

22 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

22 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.

22 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.

22 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.

22 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.

22 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

22 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

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

22 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.

22 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.

22 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

22 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.

22 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

22 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

22 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.

22 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.

22 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.

22 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.

22 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

22 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

22 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

22 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.

22 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!

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

22 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

22 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.

22 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.

22 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

22 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

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

22 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

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

22 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'

22 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)

22 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)

22 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'

22 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

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

22 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.

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

22 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

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

22 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

22 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

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

22 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! :)

22 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.

22 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.

22 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.

22 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

22 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.

22 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

22 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.

22 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`.

22 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..

22 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!

22 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

22 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

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

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