blender.git
20 months agoCode cleanup: remove unneeded gla* 2D drawing functions.
Brecht Van Lommel [Tue, 13 Feb 2018 02:57:28 +0000 (03:57 +0100)]
Code cleanup: remove unneeded gla* 2D drawing functions.

20 months agoFix blenderplayer build.
Brecht Van Lommel [Tue, 13 Feb 2018 19:01:46 +0000 (20:01 +0100)]
Fix blenderplayer build.

20 months agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 13 Feb 2018 14:06:41 +0000 (01:06 +1100)]
Merge branch 'master' into blender2.8

20 months agoAdd ED_object_editmode_exit_ex
Campbell Barton [Tue, 13 Feb 2018 13:38:13 +0000 (00:38 +1100)]
Add ED_object_editmode_exit_ex

Allow exiting editmode from non-active scene.

20 months agoCycles: Implement index output for hair node
Sergey Sharybin [Tue, 13 Feb 2018 13:20:47 +0000 (14:20 +0100)]
Cycles: Implement index output for hair node

This is like the only way to add variety to hair which is created
using simple children. Used here for the hair.

Maybe not ideal, but the time will show.

20 months agoFix T54064: Can't create new Cycles materials
Mai Lavelle [Tue, 13 Feb 2018 11:57:57 +0000 (06:57 -0500)]
Fix T54064: Can't create new Cycles materials

Was caused by object mode removal

20 months agoObject Mode: remove Scene.obedit for RNA
Campbell Barton [Tue, 13 Feb 2018 10:06:51 +0000 (21:06 +1100)]
Object Mode: remove Scene.obedit for RNA

20 months agoObject Mode: Loop over objects for ED_editors_exit
Campbell Barton [Tue, 13 Feb 2018 10:00:26 +0000 (21:00 +1100)]
Object Mode: Loop over objects for ED_editors_exit

We could loop over active objects but this ensures don't miss any
and avoids complicated context checks.

20 months agoObject Mode: remove Scene.obedit
Campbell Barton [Tue, 13 Feb 2018 09:35:29 +0000 (20:35 +1100)]
Object Mode: remove Scene.obedit

Add ED_screen_window_find, BKE_workspace_edit_object

20 months agoObject Mode: remove Scene.obedit for 3D View
Campbell Barton [Tue, 13 Feb 2018 08:29:08 +0000 (19:29 +1100)]
Object Mode: remove Scene.obedit for 3D View

20 months agoObject Mode: pass edit-object to outliner drawing
Campbell Barton [Tue, 13 Feb 2018 07:44:53 +0000 (18:44 +1100)]
Object Mode: pass edit-object to outliner drawing

Also add 'OBEDIT_FROM_EVAL_CTX' macro.

20 months agoObject Mode: pass edit-object to UV API
Campbell Barton [Tue, 13 Feb 2018 07:29:49 +0000 (18:29 +1100)]
Object Mode: pass edit-object to UV API

20 months agoObject Mode: remove Scene.obedit in draw manager
Campbell Barton [Tue, 13 Feb 2018 07:15:47 +0000 (18:15 +1100)]
Object Mode: remove Scene.obedit in draw manager

Part of larger change to remove this variable entirely.

20 months ago(Nodes) Display image name if any in the Cycles Image and Environment Texture node...
Ines Almeida [Mon, 12 Feb 2018 23:58:26 +0000 (00:58 +0100)]
(Nodes) Display image name if any in the Cycles Image and Environment Texture node title

20 months agoFix random walk SSS issues with different base and subsurface color.
Brecht Van Lommel [Mon, 12 Feb 2018 20:08:59 +0000 (21:08 +0100)]
Fix random walk SSS issues with different base and subsurface color.

Burley SSS uses a bit of strange thing where the albedo and closure weight are
different, which makes the subsurface color act a bit like a subsurface radius
indirectly by the way the Burley SSS profile works.

This can't work for random walk SSS though, and it's not clear to me that this
is actually a good idea since it's really the subsurface radius that is supposed
to control this. For now I'll leave Burley SSS working the same to not break
backwards compatibility.

20 months agoFix part of T53080: don't use current scene world for icon previews.
Brecht Van Lommel [Mon, 12 Feb 2018 19:08:50 +0000 (20:08 +0100)]
Fix part of T53080: don't use current scene world for icon previews.

This can be very slow if it contains a big texture, and it's not
necessarily setup in a useful way anyway, and materials can be used
in multiple scenes.

20 months agoBuildbot: Remove usage of deprecated chroot
Sergey Sharybin [Mon, 12 Feb 2018 16:55:38 +0000 (17:55 +0100)]
Buildbot: Remove usage of deprecated chroot

20 months agoAdd boolean regression test.
Howard Trickey [Mon, 12 Feb 2018 12:23:23 +0000 (07:23 -0500)]
Add boolean regression test.

20 months agoFix T54032: Adding torus test fails
Campbell Barton [Mon, 12 Feb 2018 08:39:52 +0000 (19:39 +1100)]
Fix T54032: Adding torus test fails

rna_LayerObjects_active_object_update used wrong viewlayer.

Regression in 345c6298e99

20 months agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 12 Feb 2018 06:57:46 +0000 (17:57 +1100)]
Merge branch 'master' into blender2.8

20 months agoError in last commit, disable cycles when not enabled
Campbell Barton [Mon, 12 Feb 2018 06:56:14 +0000 (17:56 +1100)]
Error in last commit, disable cycles when not enabled

Would only disable when loading old preferences.

20 months agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 12 Feb 2018 06:39:58 +0000 (17:39 +1100)]
Merge branch 'master' into blender2.8

20 months agoDisable cycles when WITH_CYCLES=OFF
Campbell Barton [Mon, 12 Feb 2018 06:37:39 +0000 (17:37 +1100)]
Disable cycles when WITH_CYCLES=OFF

20 months agoBKE_addon: new/free/ensure functions
Campbell Barton [Mon, 12 Feb 2018 06:24:18 +0000 (17:24 +1100)]
BKE_addon: new/free/ensure functions

20 months agoGHOST: Optimize and simplify the creation of a GHOST_Context on Windows
Germano [Sat, 10 Feb 2018 02:32:13 +0000 (00:32 -0200)]
GHOST: Optimize and simplify the creation of a GHOST_Context on Windows

Instead of cloning the window to create dummyHWNDs and dummyHDCs to avoid calling the SetPixelFormat more than once in the same window, use the original window and HDC and do not call the SetPixelFormat again.

In addition to avoiding a lot of unnecessary calls, it simplifies the code and makes it match the others OS

20 months agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Fri, 9 Feb 2018 19:36:37 +0000 (20:36 +0100)]
Merge branch 'master' into blender2.8

20 months agoEevee: Film filter default to 1.5 instead of 1.0
Dalai Felinto [Fri, 9 Feb 2018 19:05:43 +0000 (17:05 -0200)]
Eevee: Film filter default to 1.5 instead of 1.0

Cycles already uses 1.5 as default. BI original 1.0 filter doesn't look good for
Eevee. The ideal scenario would be for both Cycles AND Eevee to use the same DNA
setting.

But for now it is nice to at least have Eevee renders to look better by default.

Note: This handles doversion for 2.7x files only. Files previously created in
2.8 need to be manually corrected.

20 months agoCycles: add random walk subsurface scattering to Principled BSDF.
Brecht Van Lommel [Thu, 8 Feb 2018 15:19:04 +0000 (16:19 +0100)]
Cycles: add random walk subsurface scattering to Principled BSDF.

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

20 months agoCycles: random walk subsurface scattering.
Brecht Van Lommel [Sun, 21 Jan 2018 13:04:22 +0000 (14:04 +0100)]
Cycles: random walk subsurface scattering.

It is basically brute force volume scattering within the mesh, but part
of the SSS code for faster performance. The main difference with actual
volume scattering is that we assume the boundaries are diffuse and that
all lighting is coming through this boundary from outside the volume.

This gives much more accurate results for thin features and low density.
Some challenges remain however:

* Significantly more noisy than BSSRDF. Adding Dwivedi sampling may help
  here, but it's unclear still how much it helps in real world cases.
* Due to this being a volumetric method, geometry like eyes or mouth can
  darken the skin on the outside. We may be able to reduce this effect,
  or users can compensate for it by reducing the scattering radius in
  such areas.
* Sharp corners are quite bright. This matches actual volume rendering
  and results in some other renderers, but maybe not so much real world
  objects.

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

20 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Fri, 9 Feb 2018 16:24:23 +0000 (17:24 +0100)]
Merge branch 'master' into blender2.8

20 months agoFix (unreported) error on freeing timers which customdata pointer shall not be freed.
Bastien Montagne [Fri, 9 Feb 2018 16:19:11 +0000 (17:19 +0100)]
Fix (unreported) error on freeing timers which customdata pointer shall not be freed.

Looks like there was no way to avoid that so far, since
WM_event_add_timer_notifier can set mere int-in-pointer there, this can
cause issues. So added mere flags system to wmTimer to allow
controlling this.

20 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Fri, 9 Feb 2018 15:26:05 +0000 (16:26 +0100)]
Merge branch 'master' into blender2.8

20 months agoFix (unreported) crash when duplicating a FileBrowser window in preview draw mode.
Bastien Montagne [Fri, 9 Feb 2018 15:13:13 +0000 (16:13 +0100)]
Fix (unreported) crash when duplicating a FileBrowser window in preview draw mode.

We did not clear preview or smoothscroll timers pointers in copy code...

20 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Fri, 9 Feb 2018 13:27:32 +0000 (14:27 +0100)]
Merge branch 'master' into blender2.8

20 months agoDoc: attempt to document RNA's FunctionFlag.
Bastien Montagne [Fri, 9 Feb 2018 11:04:29 +0000 (12:04 +0100)]
Doc: attempt to document RNA's FunctionFlag.

Tired of searching through code to find which is what, and how to use it
in the C callback, everytime I need anot-so-common option...

20 months agoPaint Dirt: remove operator call from Python
Sybren A. Stüvel [Fri, 9 Feb 2018 11:52:46 +0000 (12:52 +0100)]
Paint Dirt: remove operator call from Python

Instead of calling an operator I just call `collection.new()`. Moving the
code into a separate function also simplifies it. In its new form there is
also no undefined behaviour when me.vertex_colors is non-empty but without
active layer.

20 months agoCleanup: use workspace for object_mode when possible
Campbell Barton [Fri, 9 Feb 2018 11:14:17 +0000 (22:14 +1100)]
Cleanup: use workspace for object_mode when possible

20 months agoFix collection syncing when creating new collections from the outliner
Dalai Felinto [Fri, 9 Feb 2018 11:04:00 +0000 (09:04 -0200)]
Fix collection syncing when creating new collections from the outliner

We were not passing a scene collection parent to the BKE_collection_add
function, which in turn made syncing not work.

Right now we:
* Explicitly pass the master collection in this case
* Fallback to the master collection in other cases

With unittest.

20 months agoPaint Dirt: some small fixes
Sybren A. Stüvel [Thu, 8 Feb 2018 11:33:46 +0000 (12:33 +0100)]
Paint Dirt: some small fixes

- normalize → average the vector: the vector isn't normalized here, because
  it doesn't necessarily becomes unit length. Instead, the sum is converted
  to an average vector.
- angle is the acos()…: the dot product between the vertex normal and the
  average direction of the connected vertices is computed, and not the
  opposite.
- The initial `con` list was discarded immediately and replaced by a new
  list.
- File didn't end with a newline.

20 months agoMissed opencollada edit in recent changes
Campbell Barton [Fri, 9 Feb 2018 09:25:32 +0000 (20:25 +1100)]
Missed opencollada edit in recent changes

20 months agoFix crash with font on curve
Sergey Sharybin [Fri, 9 Feb 2018 09:13:42 +0000 (10:13 +0100)]
Fix crash with font on curve

Was a mistake from recent texspace changes.

Reported by Pablo here in the studio!

20 months agoCleanup: pass eval_ctx to sculpt_init_session
Campbell Barton [Fri, 9 Feb 2018 06:46:46 +0000 (17:46 +1100)]
Cleanup: pass eval_ctx to sculpt_init_session

Matches vertex paint mode

20 months agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 9 Feb 2018 02:56:49 +0000 (13:56 +1100)]
Merge branch 'master' into blender2.8

20 months agoCMake: include missing headers
Campbell Barton [Fri, 9 Feb 2018 02:48:34 +0000 (13:48 +1100)]
CMake: include missing headers

20 months agoFix T53958: Sequencer zoom 1:1 fails
Campbell Barton [Fri, 9 Feb 2018 02:39:47 +0000 (13:39 +1100)]
Fix T53958: Sequencer zoom 1:1 fails

20 months agoFix T53347: Vertex paint crash
Campbell Barton [Fri, 9 Feb 2018 00:58:19 +0000 (11:58 +1100)]
Fix T53347: Vertex paint crash

Vertex paint was still using sculpt mode brush (which can be NULL).

20 months agoFix blenderplayer (tm)
Dalai Felinto [Thu, 8 Feb 2018 19:40:49 +0000 (17:40 -0200)]
Fix blenderplayer (tm)

20 months agoMerge branch 'master' into blender2.8
Tamito Kajiyama [Thu, 8 Feb 2018 18:00:20 +0000 (03:00 +0900)]
Merge branch 'master' into blender2.8

Conflicts:
intern/cycles/blender/addon/ui.py

20 months agoFix for missing "Use Freestyle" toggle in the Cycles "Layer" options panel.
Tamito Kajiyama [Thu, 8 Feb 2018 17:46:20 +0000 (02:46 +0900)]
Fix for missing "Use Freestyle" toggle in the Cycles "Layer" options panel.

Reviewed By: Brecht Van Lommel (brecht), Dalai Felinto (dfelinto)

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

20 months agoCycles: unify OSL BSSRDF closure into a single bssrdf() closure with method.
Brecht Van Lommel [Thu, 8 Feb 2018 15:14:04 +0000 (16:14 +0100)]
Cycles: unify OSL BSSRDF closure into a single bssrdf() closure with method.

This is similar to the upstream unified microfacet() closure, and makes it
easier to extend in the future.

20 months agoCode refactor: tweaks in SSS code to prepare for coming changes.
Brecht Van Lommel [Thu, 8 Feb 2018 11:45:12 +0000 (12:45 +0100)]
Code refactor: tweaks in SSS code to prepare for coming changes.

This also fixes a subtle bug in the split kernel branched path SSS, the
volume stack update can't be shared between multiple hit points.

20 months agoCode refactor: remove unnecessary RNG offset in branched path code.
Brecht Van Lommel [Thu, 8 Feb 2018 12:58:02 +0000 (13:58 +0100)]
Code refactor: remove unnecessary RNG offset in branched path code.

This is only needed for SSS which bounces to a different shading point.

20 months agoCycles tests: separate directory for sss tests.
Brecht Van Lommel [Thu, 8 Feb 2018 12:32:07 +0000 (13:32 +0100)]
Cycles tests: separate directory for sss tests.

20 months agoDisable fast adjust code. Add other end spec matching.
Howard Trickey [Thu, 8 Feb 2018 15:48:24 +0000 (10:48 -0500)]
Disable fast adjust code. Add other end spec matching.

This fixes a few caess where new width adjustment code

was less than ideal.

20 months agoRemove redundant check for armature mode
Campbell Barton [Thu, 8 Feb 2018 15:39:54 +0000 (02:39 +1100)]
Remove redundant check for armature mode

Caller ensures pose-mode, this flag is only set while drawing.

20 months agoFix mixed weight-paint & pose mode
Campbell Barton [Thu, 8 Feb 2018 15:31:09 +0000 (02:31 +1100)]
Fix mixed weight-paint & pose mode

20 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Thu, 8 Feb 2018 15:27:28 +0000 (16:27 +0100)]
Merge branch 'master' into blender2.8

20 months agoRemove Carve boolean
Sergey Sharybin [Wed, 7 Feb 2018 13:44:59 +0000 (14:44 +0100)]
Remove Carve boolean

We've got quite comprehensive BMesh based implementation, which is way easier
for maintenance than abandoned Carve library.

After all the time BMesh implementation was working on the same level of
limitations about manifold meshes and touching edges than Carve. Is better
to focus on maintaining one boolean implementation now.

Reviewers: campbellbarton

Reviewed By: campbellbarton

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

20 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Thu, 8 Feb 2018 14:14:22 +0000 (15:14 +0100)]
Merge branch 'master' into blender2.8

20 months agoDepsgraph: Fix missing camera animation after visibility changes
Sergey Sharybin [Thu, 8 Feb 2018 14:12:38 +0000 (15:12 +0100)]
Depsgraph: Fix missing camera animation after visibility changes

Synchronize code in on_visible_update with depsgraph building.

Need to update all cameras, since they might be hooked up to marker.

20 months agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 8 Feb 2018 12:48:36 +0000 (23:48 +1100)]
Merge branch 'master' into blender2.8

20 months agoMesh: concave quad support
Campbell Barton [Thu, 8 Feb 2018 12:38:17 +0000 (23:38 +1100)]
Mesh: concave quad support

Previously quads always split along first-third vertices.
This is still the default, to avoid flickering with animated deformation
however concave quads that would create two opposing triangles now use
second-fourth split.

Reported as T53999 although this issue has been known limitation
for a long time.

20 months agoDopesheet: Synchronize selection on bones when selecting everything
Sergey Sharybin [Thu, 8 Feb 2018 11:35:42 +0000 (12:35 +0100)]
Dopesheet: Synchronize selection on bones when selecting everything

This is also how box selection and mouse selection is working.

Requested by Hjalti, reviewed by Joshua. Thanks!

20 months agoFix error in object-mode removal
Campbell Barton [Thu, 8 Feb 2018 10:58:45 +0000 (21:58 +1100)]
Fix error in object-mode removal

Wasn't setting transform context

20 months agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 8 Feb 2018 10:43:37 +0000 (21:43 +1100)]
Merge branch 'master' into blender2.8

20 months agoFail gracefully when editmode data doesn't exist
Campbell Barton [Thu, 8 Feb 2018 10:27:08 +0000 (21:27 +1100)]
Fail gracefully when editmode data doesn't exist

Sync changes from 2.8

20 months agoObject Mode: move to workspace struct
Campbell Barton [Thu, 8 Feb 2018 10:14:26 +0000 (21:14 +1100)]
Object Mode: move to workspace struct

- Read-only access can often use EvaluationContext.object_mode
- Write access to go to WorkSpace.object_mode.
- Some TODO's remain (marked as "TODO/OBMODE")
- Add-ons will need updating
  (context.active_object.mode -> context.workspace.object_mode)
- There will be small/medium issues that still need resolving
  this does work on a basic level though.

See D3037

20 months agoFixing builds for 2.8 - outliner typo
Dalai Felinto [Thu, 8 Feb 2018 10:03:35 +0000 (08:03 -0200)]
Fixing builds for 2.8 - outliner typo

20 months agoLinux: Add appdata.xml file for packagers
Campbell Barton [Thu, 8 Feb 2018 04:57:14 +0000 (15:57 +1100)]
Linux: Add appdata.xml file for packagers

D3025 by @januz

20 months agoFix: Data-Blocks view in Outliner no longer displayed property values, making it...
Joshua Leung [Thu, 8 Feb 2018 03:15:49 +0000 (16:15 +1300)]
Fix: Data-Blocks view in Outliner no longer displayed property values, making it semi-useless

Partially revert efe1af3d11a930b539718cc566049f07316427ff

The offending commit over-zealously removed the datablocks viewer case
as well, when only the condition needed to be modified.

20 months agoDRW: Fix crash caused by fixing the leak (badly).
Clément Foucault [Wed, 7 Feb 2018 23:40:50 +0000 (00:40 +0100)]
DRW: Fix crash caused by fixing the leak (badly).

Previous commit was af425f3f7a08c09f7fbc7076b364fac75163b296

20 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Wed, 7 Feb 2018 21:27:08 +0000 (22:27 +0100)]
Merge branch 'master' into blender2.8

20 months agoForgot to return actual value in previous own commit.
Bastien Montagne [Wed, 7 Feb 2018 21:26:11 +0000 (22:26 +0100)]
Forgot to return actual value in previous own commit.

Sorry about the noise...

20 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Wed, 7 Feb 2018 21:19:11 +0000 (22:19 +0100)]
Merge branch 'master' into blender2.8

Conflicts:
source/blender/windowmanager/intern/wm_files_link.c

20 months agoLibrary linking code: proper early out in case there is nothing to link.
Bastien Montagne [Wed, 7 Feb 2018 21:09:44 +0000 (22:09 +0100)]
Library linking code: proper early out in case there is nothing to link.

20 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Wed, 7 Feb 2018 20:54:52 +0000 (21:54 +0100)]
Merge branch 'master' into blender2.8

Conflicts:
source/blender/windowmanager/intern/wm_files_link.c

20 months agoLibrary reload code: add early out in case there is nothing to reload.
Bastien Montagne [Wed, 7 Feb 2018 20:52:38 +0000 (21:52 +0100)]
Library reload code: add early out in case there is nothing to reload.

20 months agoDRW: Fix memory leak with dupli objects.
Clément Foucault [Wed, 7 Feb 2018 18:15:37 +0000 (19:15 +0100)]
DRW: Fix memory leak with dupli objects.

This was caused by dupli's ObjectEngineData that were not free.

This allocates the data using the instance data manager (no alloc/free between frames). Though the data should be treated as not persistent in this case.

20 months agoDRW: Opti: Use less bytes in DRWUniform.
Clément Foucault [Wed, 7 Feb 2018 17:12:35 +0000 (18:12 +0100)]
DRW: Opti: Use less bytes in DRWUniform.

20 months agoClay: Small refactoring of matcap_colors and put ubos into sldata.
Clément Foucault [Wed, 7 Feb 2018 17:10:32 +0000 (18:10 +0100)]
Clay: Small refactoring of matcap_colors and put ubos into sldata.

Ubos needed to be free correctly.
Also the matcap colors are statics and does not need to be uploaded each drawcall.

20 months agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Wed, 7 Feb 2018 16:17:24 +0000 (17:17 +0100)]
Merge branch 'master' into blender2.8

20 months agoDepsgraph: More fixes for shape keys
Sergey Sharybin [Wed, 7 Feb 2018 13:15:24 +0000 (14:15 +0100)]
Depsgraph: More fixes for shape keys

Made shape keys to work for meshes. Also added missing code for curves.

Curves and lattices will not have shape keys visible, since modifiers support
is still to be done for them.

20 months agoDepsgraph: Fix crash with shape keys and lattices
Sergey Sharybin [Wed, 7 Feb 2018 11:26:30 +0000 (12:26 +0100)]
Depsgraph: Fix crash with shape keys and lattices

Only crash is fixed, still need to do something about missing recalc
or something like that.

20 months agoUpdate CUEW to latest version
Brecht Van Lommel [Tue, 6 Feb 2018 13:54:18 +0000 (14:54 +0100)]
Update CUEW to latest version

This brings separate initialization for libcuda and libnvrtc, which
fixes Cycles nvrtc compilation not working on build machines without
CUDA hardware available.

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

20 months agoDepsgraph: Fix crash when visible update is called after tagging for updates
Sergey Sharybin [Wed, 7 Feb 2018 10:18:54 +0000 (11:18 +0100)]
Depsgraph: Fix crash when visible update is called after tagging for updates

It is possible to have non-NULL scene in graph which was never built yet,
this happens when ID is tagged for update for non-built graph.

Was causing crash opening deg_anim_pose_bones.

Reported by Mai in IRC, thanks!

20 months agoDepsgraph: Fix node sockets as driver variables
Sergey Sharybin [Wed, 7 Feb 2018 09:57:54 +0000 (10:57 +0100)]
Depsgraph: Fix node sockets as driver variables

Fixes empty not moving int deg_anim_material_driving_empty.

Reported by Mai in IRC, thanks!

20 months agoFix error with Main.eval_ctx.object_mode being unset
Campbell Barton [Wed, 7 Feb 2018 07:33:19 +0000 (18:33 +1100)]
Fix error with Main.eval_ctx.object_mode being unset

This made vertex/weight/sculpt crash.

Add BKE_workspace_update_object_mode which sets the object mode from the
workspace.

We may want to re-visit exactly when this is set, for now call within
wm_event_do_refresh_wm_and_depsgraph.

20 months agoDepsgraph: Add missing relationship between object transform and point cache reset
Mai Lavelle [Tue, 6 Feb 2018 10:17:19 +0000 (05:17 -0500)]
Depsgraph: Add missing relationship between object transform and point cache reset

This fixes an issue where old cache data was used after an object has been moved.
Particles were coming from very wrong positions. Reproduction case is to move an
object while animation is running and then let the animation loop back and
play again.

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

20 months agoMove eval_ctx after object mode changes
Campbell Barton [Wed, 7 Feb 2018 05:36:12 +0000 (16:36 +1100)]
Move eval_ctx after object mode changes

20 months agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 7 Feb 2018 04:59:16 +0000 (15:59 +1100)]
Merge branch 'master' into blender2.8

20 months agoCorrect header guard in last commit
Campbell Barton [Wed, 7 Feb 2018 04:51:23 +0000 (15:51 +1100)]
Correct header guard in last commit

20 months agoCleanup: Python context access
Campbell Barton [Wed, 7 Feb 2018 04:47:54 +0000 (15:47 +1100)]
Cleanup: Python context access

Avoid access from bpy when it's already declared.

20 months agoEevee: Fix SSR & AO on Vega + Mesa.
Clément Foucault [Wed, 7 Feb 2018 04:30:26 +0000 (05:30 +0100)]
Eevee: Fix SSR & AO on Vega + Mesa.

Really strange bug. Maybe gl_FragDepth is broken on this implementation.

20 months agoGPU: Remove Mesa + Vega hack.
Clément Foucault [Wed, 7 Feb 2018 04:26:56 +0000 (05:26 +0100)]
GPU: Remove Mesa + Vega hack.

This is not needed anymore with linux 4.15 + Mesa 17.3.3.

20 months agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 7 Feb 2018 00:18:50 +0000 (11:18 +1100)]
Merge branch 'master' into blender2.8

20 months agoCleanup: add _types.h suffix to DNA headers
Campbell Barton [Wed, 7 Feb 2018 00:14:08 +0000 (11:14 +1100)]
Cleanup: add _types.h suffix to DNA headers

20 months agoOutliner: Add object(s) to new collection
Dalai Felinto [Tue, 6 Feb 2018 20:27:26 +0000 (18:27 -0200)]
Outliner: Add object(s) to new collection

Suggested by Pablo Vazquez (venomgfx).

The idea here is that it should be easy to work in the outliner by picking a
bunch of objects and adding them to a new collection.
Where is the new collection? In the same level as the "outliner active" object.

Note, since the outliner has no pure concept of an active object, I'm using
the highlight tag for this. Hopefully it works fine.

It should work in "Collections", "View Layer", and "Groups".
Only when collections are not filtered out.

20 months agoFix poll for OUTLINER_OT_object_remove_from_collection
Dalai Felinto [Tue, 6 Feb 2018 20:37:37 +0000 (18:37 -0200)]
Fix poll for OUTLINER_OT_object_remove_from_collection

Outliner groups mode support no filtering.

20 months agoRename OUTLINER_OT_collection_object_remove > _object_remove_from_collection
Dalai Felinto [Tue, 6 Feb 2018 15:28:37 +0000 (13:28 -0200)]
Rename OUTLINER_OT_collection_object_remove > _object_remove_from_collection

Better make it clear it is different than OUTLINER_OT_collection_objects_remove.

20 months agoOutliner: Operator to delete outliner selected elements from collection
Dalai Felinto [Tue, 6 Feb 2018 15:19:52 +0000 (13:19 -0200)]
Outliner: Operator to delete outliner selected elements from collection

Suggested by Pablo Vazquez (venomgfx).