blender.git
14 months agoSub-panel for camera DoF for EEVEE
Pablo Vazquez [Sun, 10 Jun 2018 19:06:49 +0000 (21:06 +0200)]
Sub-panel for camera DoF for EEVEE

14 months agoWorkbench: Xray: Fix hairs with matcaps.
Clément Foucault [Sun, 10 Jun 2018 18:28:04 +0000 (20:28 +0200)]
Workbench: Xray: Fix hairs with matcaps.

14 months agoWorkbench: Xray: Make dithered depth dependant on alpha.
Clément Foucault [Sun, 10 Jun 2018 18:06:02 +0000 (20:06 +0200)]
Workbench: Xray: Make dithered depth dependant on alpha.

The range is 0.25 to 0.75 opacity when the Xray opacity is between 0.0 to 1.0.

This is to avoid loosing completely the sense of occlusion when having no
other solid drawing than the wireframe and loosing the transparency when
xray alpha is at 1.0.

Also replace Bayer (checkerboard) method by interlieved gradient noise to
minimize the chance to loose an occluded line completely.

Other noise function could be tested in the future.

14 months agoWorkbench: Xray: Add selected/active non-occluded outlines
Clément Foucault [Sun, 10 Jun 2018 17:35:25 +0000 (19:35 +0200)]
Workbench: Xray: Add selected/active non-occluded outlines

This Fix the problem when multiple objects are selected and one of them
occlude the others. You cannot see clearly what is selected.

With this option, selection is more clear when Xray mode is enabled.

14 months agoWorkbench: Xray: Make nearest surfaces more clear
Clément Foucault [Sun, 10 Jun 2018 15:31:28 +0000 (17:31 +0200)]
Workbench: Xray: Make nearest surfaces more clear

By using equation 7 from the paper, we make the surfaces nearest to the
viewpoint appear more "opaque". This gives better sense of ordering than
the previous weighting function that was really not doing anything.

14 months agoWorkbench: Xray: Lower hairs opacity
Clément Foucault [Sun, 10 Jun 2018 13:46:10 +0000 (15:46 +0200)]
Workbench: Xray: Lower hairs opacity

Since hairs are very likely to owerflow the weight buffer, we divide their
alpha value by 3.

This might become a particle system setting if needed.

14 months agoWorkbench: Xray: Optimize and fix implementation.
Clément Foucault [Sun, 10 Jun 2018 13:30:49 +0000 (15:30 +0200)]
Workbench: Xray: Optimize and fix implementation.

There was a method explained in the Weighted Blended Order-Independent
Transparency paper to support hardware that does not support per render
target blending function.

So now only 2 geometry passes are required instead of 3 (one being the
outline/depth fill pass).

This also fix how the blending is done. There was some premult confusion
in the implementation.

14 months agoUI: Add redo last to edit-menu
Campbell Barton [Sun, 10 Jun 2018 15:15:24 +0000 (17:15 +0200)]
UI: Add redo last to edit-menu

14 months agoExperimental Tweak: Only show relationship lines between objects when either the...
Joshua Leung [Sun, 10 Jun 2018 14:38:44 +0000 (02:38 +1200)]
Experimental Tweak: Only show relationship lines between objects when either the parent/child object is selected

As in Pose Mode, the idea here it to try to reduce viewport complexity
without requiring users to turn off the overlay completely all the time.
For example, a background prop (e.g. a tree with a tyre hanging off it,
or a branch with hand-placed leaves) won't be cluttering the viewport with
its relationship lines all the time, when you're trying to do something else.

When you really do need to see these lines, you can still select the object
in question, and you'll see the lines for which objects are its children
or what its parent is. And to see all lines, you can still always select all
objects.

14 months agoViewport: "Show Relationship Lines" overlay toggle is now respected by Object Mode...
Joshua Leung [Sun, 10 Jun 2018 14:21:26 +0000 (02:21 +1200)]
Viewport: "Show Relationship Lines" overlay toggle is now respected by Object Mode & Armatures (Edit/Pose)

14 months agoUI: change toolbar icon size from 38 -> 32
Campbell Barton [Sun, 10 Jun 2018 14:42:19 +0000 (16:42 +0200)]
UI: change toolbar icon size from 38 -> 32

14 months agoUI: use property split for UV mask panel
Campbell Barton [Sun, 10 Jun 2018 14:29:55 +0000 (16:29 +0200)]
UI: use property split for UV mask panel

14 months agoUI: correct jitter button
Campbell Barton [Sun, 10 Jun 2018 14:08:19 +0000 (16:08 +0200)]
UI: correct jitter button

14 months agoUI: use split property for tool settings
Campbell Barton [Sun, 10 Jun 2018 13:55:19 +0000 (15:55 +0200)]
UI: use split property for tool settings

Patch by @billreynish w/ edits

14 months agoUI: remove tab use in the tool-settings
Campbell Barton [Sun, 10 Jun 2018 13:40:02 +0000 (15:40 +0200)]
UI: remove tab use in the tool-settings

14 months agoUI: use two columns for the overlay popover
Campbell Barton [Sun, 10 Jun 2018 13:22:47 +0000 (15:22 +0200)]
UI: use two columns for the overlay popover

Also use sub-panels.

Patch by @billreynish w/ edits.

14 months agoUI: Use flow layout for object properties context
Pablo Vazquez [Sun, 10 Jun 2018 11:56:23 +0000 (13:56 +0200)]
UI: Use flow layout for object properties context

Mainly as a proof of concept and test to use in other contexts.

14 months agoMerge branch 'master' into blender2.8
Campbell Barton [Sun, 10 Jun 2018 10:11:16 +0000 (12:11 +0200)]
Merge branch 'master' into blender2.8

14 months agoWM: add macros to check mouse button/gesture/wheel
Campbell Barton [Sun, 10 Jun 2018 10:08:09 +0000 (12:08 +0200)]
WM: add macros to check mouse button/gesture/wheel

Use to check click/drag,
fixes issue with mouse wheel triggering pie menu.

14 months agoFix T55423: GLSL compilation error Flat + XRay
Jeroen Bakker [Sun, 10 Jun 2018 09:51:07 +0000 (11:51 +0200)]
Fix T55423: GLSL compilation error Flat + XRay

14 months agoMerge branch 'master' into blender2.8
Campbell Barton [Sun, 10 Jun 2018 06:21:38 +0000 (08:21 +0200)]
Merge branch 'master' into blender2.8

14 months agoCleanup: trailing space in CMake files
Campbell Barton [Sun, 10 Jun 2018 06:12:13 +0000 (08:12 +0200)]
Cleanup: trailing space in CMake files

14 months agoWorkbench: Fix material compilation.
Clément Foucault [Sat, 9 Jun 2018 19:10:35 +0000 (21:10 +0200)]
Workbench: Fix material compilation.

14 months agoEevee: Improve compilation time (reduce branching).
Clément Foucault [Sat, 9 Jun 2018 18:48:19 +0000 (20:48 +0200)]
Eevee: Improve compilation time (reduce branching).

This patch reduce the branching in the lamp loop, improving compilation time
noticeably (2372ms to 1785ms for the default shader).

This should not change the appearance of the shader.

Performance impact is negligeable.

14 months agoMerge branch 'master' into blender2.8
Campbell Barton [Sat, 9 Jun 2018 16:58:14 +0000 (18:58 +0200)]
Merge branch 'master' into blender2.8

14 months agoRNA: remove Layout.introspect
Campbell Barton [Sat, 9 Jun 2018 16:55:51 +0000 (18:55 +0200)]
RNA: remove Layout.introspect

This was added as an experiment to extract information for docs
but this was never all that useful for its intended purpose.

14 months agoMerge branch 'master' into blender2.8
Campbell Barton [Sat, 9 Jun 2018 16:48:11 +0000 (18:48 +0200)]
Merge branch 'master' into blender2.8

14 months agoCleanup: unused functions
Campbell Barton [Sat, 9 Jun 2018 16:47:39 +0000 (18:47 +0200)]
Cleanup: unused functions

14 months agoUI: always show popover subpanel header text
Campbell Barton [Sat, 9 Jun 2018 16:15:08 +0000 (18:15 +0200)]
UI: always show popover subpanel header text

14 months agoUI: fix popover subpanel header display
Campbell Barton [Sat, 9 Jun 2018 16:03:22 +0000 (18:03 +0200)]
UI: fix popover subpanel header display

14 months agoUI: use draw_header function for popover buttons
Campbell Barton [Sat, 9 Jun 2018 15:36:28 +0000 (17:36 +0200)]
UI: use draw_header function for popover buttons

Add 'is_popover' for panel draw functions to check if they're in a popup.
This puts dyntopo toggle next to the popover.

14 months agoAdd new GridFlow layout.
Bastien Montagne [Sat, 9 Jun 2018 14:50:05 +0000 (16:50 +0200)]
Add new GridFlow layout.

This mimics the 'spreadsheet' behavior. Columns and/or rows can have
equal sizes, or adapt to their content - but always in a grid way (i.e.
all items in a same column will always have same available width, and
all items in a same row will always have same available height).
Also, you can fill (order) the grid in a row- or column-major way.

Not used anywhere for now.

Differential: https://developer.blender.org/D2395

14 months agoCleanup: style
Campbell Barton [Sat, 9 Jun 2018 14:39:40 +0000 (16:39 +0200)]
Cleanup: style

14 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Sat, 9 Jun 2018 13:18:21 +0000 (15:18 +0200)]
Merge branch 'master' into blender2.8

Conflicts:
source/blender/editors/space_view3d/drawobject.c

14 months agoCleanup: remove some G.main usages.
Bastien Montagne [Sat, 9 Jun 2018 13:16:44 +0000 (15:16 +0200)]
Cleanup: remove some G.main usages.

14 months agoMerge branch 'master' into blender2.8
Campbell Barton [Sat, 9 Jun 2018 12:42:01 +0000 (14:42 +0200)]
Merge branch 'master' into blender2.8

14 months agoCleanup: trailing space in RNA
Campbell Barton [Sat, 9 Jun 2018 12:40:09 +0000 (14:40 +0200)]
Cleanup: trailing space in RNA

14 months agoCleanup: style
Campbell Barton [Sat, 9 Jun 2018 12:30:32 +0000 (14:30 +0200)]
Cleanup: style

14 months agoUI: initial support for parent panels in popovers
Campbell Barton [Sat, 9 Jun 2018 12:21:39 +0000 (14:21 +0200)]
UI: initial support for parent panels in popovers

Currently this just includes the panels, no support for collapsing yet.

14 months agoRNA: revert object mode re-order
Campbell Barton [Sat, 9 Jun 2018 10:55:10 +0000 (12:55 +0200)]
RNA: revert object mode re-order

This was done so numbered shortcuts made sense.
Now order matches master.

14 months agoMerge branch 'master' into blender2.8
Campbell Barton [Sat, 9 Jun 2018 10:56:37 +0000 (12:56 +0200)]
Merge branch 'master' into blender2.8

14 months agoGHOST/X11: Print the keycode w/ debug enabled
Campbell Barton [Sat, 9 Jun 2018 10:53:39 +0000 (12:53 +0200)]
GHOST/X11: Print the keycode w/ debug enabled

14 months agoWorkbench: Fix xray normal not being normalized.
Clément Foucault [Sat, 9 Jun 2018 10:29:21 +0000 (12:29 +0200)]
Workbench: Fix xray normal not being normalized.

14 months agoWorkbench: Matcaps: Fix matcap under perspective.
Clément Foucault [Sat, 9 Jun 2018 10:28:22 +0000 (12:28 +0200)]
Workbench: Matcaps: Fix matcap under perspective.

This fixes the problem that matcaps have when using a very larg FOV in
perspective view.

This was because it was stupidly using the normal direction which can not
aligned with the view vector under perspective.

So to workaround this problem we don't use the normal as is, but compute
how much it's facing the camera.

This changes how matcaps looks in perspective because they now always use
the full range of the matcap (which is expected).

14 months agoWorkbench: Fix incident vector calculation.
Clément Foucault [Sat, 9 Jun 2018 10:21:19 +0000 (12:21 +0200)]
Workbench: Fix incident vector calculation.

This fixes specular in perspective view.

14 months agoMerge branch 'master' into blender2.8
Campbell Barton [Sat, 9 Jun 2018 10:06:33 +0000 (12:06 +0200)]
Merge branch 'master' into blender2.8

14 months agoGHOST/X11: Correct non-latin kb workaround case
Campbell Barton [Sat, 9 Jun 2018 10:04:07 +0000 (12:04 +0200)]
GHOST/X11: Correct non-latin kb workaround case

Harmless since this is always enabled,
only do this for easier troubleshooting when disabling the define.

14 months agoMerge branch 'master' into blender2.8
Campbell Barton [Sat, 9 Jun 2018 09:27:22 +0000 (11:27 +0200)]
Merge branch 'master' into blender2.8

14 months agoGHOST/X11: support accessing physical keycodes
Campbell Barton [Sat, 9 Jun 2018 09:23:41 +0000 (11:23 +0200)]
GHOST/X11: support accessing physical keycodes

This means we can check keys such as tilde in a generic way.

14 months agoGHOST/X11: Map unknown us.intl key to accentgrave
Campbell Barton [Sat, 9 Jun 2018 07:10:04 +0000 (09:10 +0200)]
GHOST/X11: Map unknown us.intl key to accentgrave

14 months agoLayout for materials closer to single column
Pablo Vazquez [Fri, 8 Jun 2018 21:56:28 +0000 (23:56 +0200)]
Layout for materials closer to single column

14 months agoAudaspace: add support for latest ffmpeg.
Jörg Müller [Fri, 8 Jun 2018 21:10:52 +0000 (23:10 +0200)]
Audaspace: add support for latest ffmpeg.

14 months agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 8 Jun 2018 20:19:39 +0000 (22:19 +0200)]
Merge branch 'master' into blender2.8

14 months agoWM: correct recent change to click/drag detection
Campbell Barton [Fri, 8 Jun 2018 20:17:21 +0000 (22:17 +0200)]
WM: correct recent change to click/drag detection

fb1915d87090a - caused click/drag events not to be detected.

Now check a key is a mouse or keyboard event.

14 months agoMerge branch 'master' into 28
Campbell Barton [Fri, 8 Jun 2018 17:03:37 +0000 (19:03 +0200)]
Merge branch 'master' into 28

14 months agoWM: fix panel drag event handling
Campbell Barton [Fri, 8 Jun 2018 16:58:41 +0000 (18:58 +0200)]
WM: fix panel drag event handling

14 months agoWM: fix node link & background drag
Campbell Barton [Fri, 8 Jun 2018 16:52:00 +0000 (18:52 +0200)]
WM: fix node link & background drag

14 months agoWM: fix panel drag event handling
Campbell Barton [Fri, 8 Jun 2018 16:58:41 +0000 (18:58 +0200)]
WM: fix panel drag event handling

14 months agoWM: fix node link & background drag
Campbell Barton [Fri, 8 Jun 2018 16:52:00 +0000 (18:52 +0200)]
WM: fix node link & background drag

14 months agoDepsgraph: Remove no longer needed nodetree values copying on eval
Dalai Felinto [Fri, 8 Jun 2018 15:51:08 +0000 (17:51 +0200)]
Depsgraph: Remove no longer needed nodetree values copying on eval

Note: Depsgraph still calls the nodetree eval function that doesn't
nothing in turn. We can remove it, but it is harmless though.

14 months agoUI: clear properties color when empty
Campbell Barton [Fri, 8 Jun 2018 15:29:29 +0000 (17:29 +0200)]
UI: clear properties color when empty

14 months agoSculpt/Paint: move PBVH building to use evaluated mesh instead of deprecated Derivedmesh.
Bastien Montagne [Fri, 8 Jun 2018 15:04:54 +0000 (17:04 +0200)]
Sculpt/Paint: move PBVH building to use evaluated mesh instead of deprecated Derivedmesh.

Pretty straightforward changes, merely mimicking dm-related code,
which was already essentially using either Mesh or BMesh data to
build the PBVH...

Note that we "lose" the subsurf (a.k.a. grid) PBVH case here, but that
one was already dead code in current blender2.8, since final dm is
always a cddm built from evaluated mesh.

Proper fix is pending new code for subsurf/multires area.

14 months agoUI: remove tools space type, use properties context
Campbell Barton [Fri, 8 Jun 2018 14:30:56 +0000 (16:30 +0200)]
UI: remove tools space type, use properties context

We've decieded to use tools context in properties editor.

14 months agoDRW: Fix animated material not refreshing
Dalai Felinto [Fri, 8 Jun 2018 14:11:34 +0000 (16:11 +0200)]
DRW: Fix animated material not refreshing

This introduces a garbage collection system similar to gpu_texture.

14 months agoFix crash with wertex and weight modes
Sergey Sharybin [Fri, 8 Jun 2018 14:22:52 +0000 (16:22 +0200)]
Fix crash with wertex and weight modes

Similar to recent sculpt mode.

14 months agoRename: GPU_material_get_uniform_buffer > GPU_material_uniform_buffer_get
Dalai Felinto [Fri, 8 Jun 2018 13:54:11 +0000 (15:54 +0200)]
Rename: GPU_material_get_uniform_buffer > GPU_material_uniform_buffer_get

14 months agoRename: GPU_texture_orphans
Dalai Felinto [Fri, 8 Jun 2018 13:51:25 +0000 (15:51 +0200)]
Rename: GPU_texture_orphans

14 months agoWorkbench: XFlip Matcap per 3D View
Jeroen Bakker [Fri, 8 Jun 2018 14:12:25 +0000 (16:12 +0200)]
Workbench: XFlip Matcap per 3D View

Note: Icons are not yet updated.

14 months agoFix T55387: Render fullscreen from top menu crashes Blender
Julian Eisel [Fri, 8 Jun 2018 13:57:01 +0000 (15:57 +0200)]
Fix T55387: Render fullscreen from top menu crashes Blender

Would try to use data from global area for the newly created fullscreen area.
This should not happen, so instead of a global area use first area from layout.

14 months agoAlembic: replaced BLI_assert() with comment why the assert is wrong
Sybren A. Stüvel [Fri, 8 Jun 2018 13:49:33 +0000 (15:49 +0200)]
Alembic: replaced BLI_assert() with comment why the assert is wrong

The comment also hints at what should be fixed, instead.

14 months agoAlembic: slight clarifications
Sybren A. Stüvel [Fri, 8 Jun 2018 13:46:54 +0000 (15:46 +0200)]
Alembic: slight clarifications

14 months agoAlembic export: get evaluated object when exporting shape
Sybren A. Stüvel [Thu, 7 Jun 2018 16:59:50 +0000 (18:59 +0200)]
Alembic export: get evaluated object when exporting shape

14 months agoAlembic: Moved a BLI_assert
Sybren A. Stüvel [Fri, 8 Jun 2018 13:42:51 +0000 (15:42 +0200)]
Alembic: Moved a BLI_assert

The assert should only be triggered when assigning a pointer, and not
simply when checking the pointer.

14 months agomesh_get_eval_final() should check ob->runtime.mesh_eval
Sybren A. Stüvel [Fri, 8 Jun 2018 13:42:27 +0000 (15:42 +0200)]
mesh_get_eval_final() should check ob->runtime.mesh_eval

It has nothing to do with ob->derivedFinal, which it checked before.

14 months agoAdd check in BKE_pbvh_apply_vertCos that number of deforming cos matches number of...
Bastien Montagne [Fri, 8 Jun 2018 13:42:37 +0000 (15:42 +0200)]
Add check in BKE_pbvh_apply_vertCos that number of deforming cos matches number of pbvh vertices.

This shall help catching issues in future.

14 months agoFix T55404: Auto key with only-available doesn't work
Sergey Sharybin [Fri, 8 Jun 2018 13:42:42 +0000 (15:42 +0200)]
Fix T55404: Auto key with only-available doesn't work

14 months agoCode cleanup
Jeroen Bakker [Fri, 8 Jun 2018 13:35:25 +0000 (15:35 +0200)]
Code cleanup

14 months agoWorkbench: Custom StudioLight UI
Jeroen Bakker [Fri, 8 Jun 2018 13:34:13 +0000 (15:34 +0200)]
Workbench: Custom StudioLight UI

14 months agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 8 Jun 2018 13:22:28 +0000 (15:22 +0200)]
Merge branch 'master' into blender2.8

14 months agoGHOST/X11: Map unknown es,dk keys to accentgrave
Campbell Barton [Fri, 8 Jun 2018 13:21:20 +0000 (15:21 +0200)]
GHOST/X11: Map unknown es,dk keys to accentgrave

14 months agoAlembic: fixed MSVC incompatibility
Sybren A. Stüvel [Fri, 8 Jun 2018 13:09:01 +0000 (15:09 +0200)]
Alembic: fixed MSVC incompatibility

14 months agoWorkbench: Default specular settings when no materials are used
Jeroen Bakker [Fri, 8 Jun 2018 13:07:05 +0000 (15:07 +0200)]
Workbench: Default specular settings when no materials are used

14 months agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 8 Jun 2018 12:57:17 +0000 (14:57 +0200)]
Merge branch 'master' into blender2.8

14 months agoCleanup: unused var, trailing space
Campbell Barton [Fri, 8 Jun 2018 12:55:47 +0000 (14:55 +0200)]
Cleanup: unused var, trailing space

14 months agoGHOST/X11: Map unknown de,fr keys to accentgrave
Campbell Barton [Fri, 8 Jun 2018 12:53:03 +0000 (14:53 +0200)]
GHOST/X11: Map unknown de,fr keys to accentgrave

This still uses the correct string when typing text,
it just allows the key to be used in keymaps.

We should eventually add scan-code support.

14 months agoAlembic unit tests: fixed compiler errors
Sybren A. Stüvel [Fri, 8 Jun 2018 12:48:26 +0000 (14:48 +0200)]
Alembic unit tests: fixed compiler errors

This doesn't mean the code is correct, but at least it builds.

14 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Fri, 8 Jun 2018 12:38:57 +0000 (14:38 +0200)]
Merge branch 'master' into blender2.8

Conflicts:
source/blender/blenkernel/BKE_sequencer.h
source/blender/blenkernel/intern/sequencer.c
source/blender/editors/curve/editcurve_paint.c
source/blender/editors/gpencil/gpencil_edit.c
source/blender/editors/gpencil/gpencil_paint.c
source/blender/editors/gpencil/gpencil_utils.c
source/blender/editors/include/ED_object.h
source/blender/editors/include/ED_view3d.h
source/blender/editors/interface/interface_eyedropper_depth.c
source/blender/editors/render/render_opengl.c
source/blender/editors/sculpt_paint/paint_image_proj.c
source/blender/editors/sculpt_paint/sculpt.c
source/blender/editors/space_view3d/drawobject.c
source/blender/editors/space_view3d/view3d_draw.c
source/blender/editors/space_view3d/view3d_edit.c
source/blender/editors/space_view3d/view3d_intern.h
source/blender/editors/space_view3d/view3d_select.c
source/blender/editors/space_view3d/view3d_utils.c
source/blender/editors/transform/transform_conversions.c
source/blender/editors/transform/transform_snap.c
source/blender/python/intern/gpu_offscreen.c
source/blender/windowmanager/intern/wm_files.c

14 months agoFix T55380: Crash when getting out of EditMode in some cases
Sergey Sharybin [Fri, 8 Jun 2018 12:36:26 +0000 (14:36 +0200)]
Fix T55380: Crash when getting out of EditMode in some cases

Derived meshes are to be dead, so soon this code will be removed as well.

14 months agoWorkbench: Lights user pref
Jeroen Bakker [Fri, 8 Jun 2018 12:30:11 +0000 (14:30 +0200)]
Workbench: Lights user pref

14 months agoPrevent wheel causing spurious click/drag events
Campbell Barton [Fri, 8 Jun 2018 12:09:45 +0000 (14:09 +0200)]
Prevent wheel causing spurious click/drag events

14 months agoAlembic import: fixed memory management for CoW copies of CacheFile blocks
Sybren A. Stüvel [Fri, 8 Jun 2018 11:51:42 +0000 (13:51 +0200)]
Alembic import: fixed memory management for CoW copies of CacheFile blocks

When a CacheFile datablock is copied to an in-main datablock, it means that
the new copy should be independent of the old copy. In this case certain
properties are reset/duplicated. When it is copied to a no-main datablock,
we assume this is a copy-on-write copy that's used for evaluating things,
in which case the handle and object paths are referenced instead of
reset/ duplicated. This prevents us from re-opening the Alembic file every
time a new CoW copy is made.

The same approach is taken when freeing data (only when an in-main datablock
is freed do we actually free the data).

14 months agoAlembic import: assign cache_file handle to original datablock
Sybren A. Stüvel [Fri, 8 Jun 2018 11:52:18 +0000 (13:52 +0200)]
Alembic import: assign cache_file handle to original datablock

14 months agoCleanup: getting rid of G.main.
Bastien Montagne [Fri, 8 Jun 2018 10:16:37 +0000 (12:16 +0200)]
Cleanup: getting rid of G.main.

Sometimes one needs a *lot* of changes for a single G.main... :/

14 months agoFix T55391: Anim render only shows scene state at current frame (no animation)
Sergey Sharybin [Fri, 8 Jun 2018 10:12:26 +0000 (12:12 +0200)]
Fix T55391: Anim render only shows scene state at current frame (no animation)

14 months agoStudiolight: Segment when using float based matcaps
Jeroen Bakker [Fri, 8 Jun 2018 10:10:29 +0000 (12:10 +0200)]
Studiolight: Segment when using float based matcaps

14 months agoDepsgraph: Fix missing relations when camera has drivers
Sergey Sharybin [Fri, 8 Jun 2018 10:04:53 +0000 (12:04 +0200)]
Depsgraph: Fix missing relations when camera has drivers

14 months agoDepsgraph: Cleanup, make conditions more clear and less indented
Sergey Sharybin [Fri, 8 Jun 2018 09:46:51 +0000 (11:46 +0200)]
Depsgraph: Cleanup, make conditions more clear and less indented

14 months agoDepsgraph: Don't optimize out collections used by duplication system
Sergey Sharybin [Fri, 8 Jun 2018 09:42:41 +0000 (11:42 +0200)]
Depsgraph: Don't optimize out collections used by duplication system

This makes evaluated objects to point to a non-evaluated collection,
which is already really bad. What is even more worse, objects in those
collections are not evaluated either.

Proper solution would be to implement visibility flag for nodes, which
will be set to 0 for transform/geometry components, but which will be
1 for copy-on-write components.

This way we will guarantee consistency of dependency graph.

For now this change is good enough and unlocks production.

Fixes T55375: Crash when changing visibility of instanced collection
Fixes T55357: Particle geometry crash

14 months agoDepsgraph: Cleanup, indentation
Sergey Sharybin [Fri, 8 Jun 2018 09:27:58 +0000 (11:27 +0200)]
Depsgraph: Cleanup, indentation

14 months agoDepsgraph: Cleanup, make conditions more clear and less indented
Sergey Sharybin [Fri, 8 Jun 2018 09:25:00 +0000 (11:25 +0200)]
Depsgraph: Cleanup, make conditions more clear and less indented