blender.git
19 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.

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

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

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

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

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

19 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

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

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

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

19 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

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

19 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

19 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

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

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

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

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

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

19 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

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

19 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

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

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

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

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

19 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

19 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

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

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

19 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

19 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

19 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,

19 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

19 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

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

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

19 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'.

19 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

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

19 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!).

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

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

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

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

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

19 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

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

19 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

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

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

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

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

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

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

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

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

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

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