3 years agoCleanup: Move area geometry management into an own file
Severin [Fri, 29 Jun 2018 23:56:07 +0000 (01:56 +0200)]
Cleanup: Move area geometry management into an own file

Area geometry management is quite complex and not easy to get into. We should
gradualy build an API that abstracts away this complexity.

3 years agoFix a number of small errors in area coordinate handling
Severin [Fri, 29 Jun 2018 22:42:19 +0000 (00:42 +0200)]
Fix a number of small errors in area coordinate handling

For example collapsing the lower part of the topbar with 2x interface scale
would hide the top-bar header region. There were also more asserts when changing
window size and moving area edges afterwards (same assert as in T55298).
Fixes are similar to e626998a262ebe4f.

With all the recent fixes I've done, area geometry handling should be stable
again. Let's hope I'm right :)

3 years agoCleanup: Add/use function to get area width/height from area vertices
Severin [Fri, 29 Jun 2018 19:22:27 +0000 (21:22 +0200)]
Cleanup: Add/use function to get area width/height from area vertices

This used to be rather cryptic and it was easy to forget the `+ 1` which in fact
is needed to get the correct width/height, see e626998a262ebe4f. This should
also fix some minor off-by-one errors.

3 years agoFix memory leak when using scroll-bars
Severin [Fri, 29 Jun 2018 18:54:44 +0000 (20:54 +0200)]
Fix memory leak when using scroll-bars

3 years agoCleanup: Remove unused argument in recursive function
Severin [Fri, 29 Jun 2018 18:34:00 +0000 (20:34 +0200)]
Cleanup: Remove unused argument in recursive function

3 years agoCleanup: naming in MOD_utils.
Bastien Montagne [Fri, 29 Jun 2018 17:02:19 +0000 (19:02 +0200)]
Cleanup: naming in MOD_utils.

3 years agoCleanup: Moar DM busting, mostly cleaning up MOD_utils.
Bastien Montagne [Fri, 29 Jun 2018 16:58:13 +0000 (18:58 +0200)]
Cleanup: Moar DM busting, mostly cleaning up MOD_utils.

3 years agoFix unnecessary empty space in shading popover.
Brecht Van Lommel [Fri, 29 Jun 2018 15:46:16 +0000 (17:46 +0200)]
Fix unnecessary empty space in shading popover.

3 years agoWorkbench: Spherical Harmonics tests
Jeroen Bakker [Fri, 29 Jun 2018 12:54:38 +0000 (14:54 +0200)]
Workbench: Spherical Harmonics tests

Added a compile directive in order to test SH4 in stead of SH2Win.
For now I disabled SH4, it is a bit more clear, but has a small
performance impact. Will check later for a better approach

3 years agoCleanup: remove another bunch of DM usages, includes etc.
Bastien Montagne [Fri, 29 Jun 2018 12:56:38 +0000 (14:56 +0200)]
Cleanup: remove another bunch of DM usages, includes etc.

3 years agoFix T55645: broken particle Use Count option for instancing objects.
Brecht Van Lommel [Thu, 28 Jun 2018 12:29:54 +0000 (14:29 +0200)]
Fix T55645: broken particle Use Count option for instancing objects.

There is now a manual refresh button on the panel to update the list
of objects in case it changes, and it also gets refreshed when changing
the collection or toggling the use count option.

This is a bit more manual but the previous code of refreshing the
list while evaluating the depsgraph was unreliable.

This also fixes it to take properly take into account visibility, and
to work with linked collections for which index writing was missing.

3 years agoKeymap: re-enable object apply transform
Campbell Barton [Fri, 29 Jun 2018 12:12:52 +0000 (14:12 +0200)]
Keymap: re-enable object apply transform

3 years agoKeymap: minimal default keymap
Campbell Barton [Fri, 29 Jun 2018 10:46:16 +0000 (12:46 +0200)]
Keymap: minimal default keymap

Use 2.7x keymap preset for full keymap.

Use define to allow further adjustments.

See T55666.

3 years agoRefactor static override code to pass Main around.
Bastien Montagne [Fri, 29 Jun 2018 10:46:54 +0000 (12:46 +0200)]
Refactor static override code to pass Main around.

Access to main database is actually rarely needed, but some custom
'apply' functions do need it (like Collections' overriding of objects or
children collections).

3 years agoCleanup: nuke G.main from BKE's particle_system.c
Bastien Montagne [Fri, 29 Jun 2018 09:24:58 +0000 (11:24 +0200)]
Cleanup: nuke G.main from BKE's particle_system.c

3 years agoCleanup: some moar DM kicking, in armature edit code.
Bastien Montagne [Thu, 28 Jun 2018 13:42:00 +0000 (15:42 +0200)]
Cleanup: some moar DM kicking, in armature edit code.

3 years agoWorkbench: Transparent textures
Jeroen Bakker [Fri, 29 Jun 2018 10:05:23 +0000 (12:05 +0200)]
Workbench: Transparent textures

Worknemch now supports transparent textures.
As the main engine is a deferred shading only a cutoff is supported
(draw or don't draw this pixel)

3 years agoWorkbench: remove runtime warnings
Jeroen Bakker [Fri, 29 Jun 2018 07:59:37 +0000 (09:59 +0200)]
Workbench: remove runtime warnings

Added feature check when uploading material uniforms

3 years agoWorkbench: TAA optimalization
Jeroen Bakker [Fri, 29 Jun 2018 07:22:50 +0000 (09:22 +0200)]
Workbench: TAA optimalization

First frame of the TAA is just a regular copy of the previous buffer. so
we write directly to the final buffer and skip the taa shader. We do
init the history buffer via blit so it will be initialized for the other

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 29 Jun 2018 07:25:40 +0000 (09:25 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: trailing newlines
Campbell Barton [Fri, 29 Jun 2018 07:23:51 +0000 (09:23 +0200)]
Cleanup: trailing newlines

3 years agoKeymap: 2.7x macos-only additions
Campbell Barton [Fri, 29 Jun 2018 07:17:13 +0000 (09:17 +0200)]
Keymap: 2.7x macos-only additions

3 years agoKeymap: add 2.7x keymap
Campbell Barton [Fri, 29 Jun 2018 06:38:02 +0000 (08:38 +0200)]
Keymap: add 2.7x keymap

This is the keymap from 929c78e33c06f55af4a3d98240959c4afcf9f39c
before the 2.8x keymap diverged from 2.7x.

All non-modal maps have been included.

3 years agoWorkbench: Use less GPU memory
Jeroen Bakker [Fri, 29 Jun 2018 06:42:56 +0000 (08:42 +0200)]
Workbench: Use less GPU memory

When AA was enabled a new buffer was created. As the composite pass is
already done, we can reuse earlier buffers.

For the deferred rendering we reuse the color_buffer_tx and for the
forward rendering we reuse the transparect_accum_tx.

3 years agoWorkbench: Removed MaterialData UBO
Jeroen Bakker [Fri, 29 Jun 2018 06:25:23 +0000 (08:25 +0200)]
Workbench: Removed MaterialData UBO

Most of the times the materials differ due to the object_id. This was an
overhead and resulted in instabilities on Intel graphical cards. This
commit will revert the Material Data UBO and replace it with normal

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 29 Jun 2018 06:05:38 +0000 (08:05 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: trailing newlines
Campbell Barton [Fri, 29 Jun 2018 06:02:49 +0000 (08:02 +0200)]
Cleanup: trailing newlines

3 years agoFix: Moving area edge could corrupt screen in very specific case
Severin [Fri, 29 Jun 2018 00:04:46 +0000 (02:04 +0200)]
Fix: Moving area edge could corrupt screen in very specific case

Caused by ca8f787349dcdf5. This issue is in master actually. Fixing it there
would cause conflicts so won't do that unless needed ;)

Steps to recreate were:
* Split properties editor into two (default startup.blend)
* Move both properties editors to the bottom, so only their headers are visible
* Move the upper edge of the upper properties editor up and down
Although it doesn't happen everytime, you may see the edge between the timeline
and the 3D view move, while the region drawing doesn't update.

What happened is area edge snapping allowed to snap the edge outside of window
bounds (we snap to a 4px grid by default), which screen_vertices_scale
interpreted as window scaling and thus run area size updates.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 28 Jun 2018 21:57:00 +0000 (23:57 +0200)]
Merge branch 'master' into blender2.8

3 years agoWM: Remove Screen Cast
Campbell Barton [Thu, 28 Jun 2018 21:39:20 +0000 (23:39 +0200)]
WM: Remove Screen Cast

This feature is better handled by specialized tools.

3 years agoChange earlier fix to work with hiDPI
Severin [Thu, 28 Jun 2018 19:07:30 +0000 (21:07 +0200)]
Change earlier fix to work with hiDPI

Referring to ca8f787349dcdf5. Thought in this case the simple `+ 1` would be
correct, but we need to make the same pixel adjustment as we do in other places.

3 years agoFix: Moving area edge could make areas overlap status-bar
Severin [Thu, 28 Jun 2018 18:15:09 +0000 (20:15 +0200)]
Fix: Moving area edge could make areas overlap status-bar

Simply moving the properties editor of the default startup.blend all the way to
the bottom could trigger this. Calculating limits for area edge moving would use
screen bounds instead of entire window bounds (screen + global bars).

Added assert that should help debugging further issues like this.

3 years agoFix T55298: Failing assert when splitting areas vertically
Severin [Thu, 28 Jun 2018 17:49:00 +0000 (19:49 +0200)]
Fix T55298: Failing assert when splitting areas vertically

There are more related glitches for which I have fixes. Will test them some more
and push in a followup commit.

3 years agoUI: move UV selection options to left
William Reynish [Thu, 28 Jun 2018 15:54:59 +0000 (17:54 +0200)]
UI: move UV selection options to left

This is consistent with the 3D view.

3 years agoFix: build error with msvc
Ray Molenkamp [Thu, 28 Jun 2018 15:07:10 +0000 (09:07 -0600)]
Fix: build error with msvc

introduced by rBd2757d149bf2d9ac604da6fb7f4742ee77e68d2d

3 years agoOverlay: Make overlay engine rebder on top of paint modes.
Clément Foucault [Thu, 28 Jun 2018 14:12:24 +0000 (16:12 +0200)]
Overlay: Make overlay engine rebder on top of paint modes.

This puts the wireframe on top of the weight in weight paint mode,
sculpt mode ...

Wireframe should be colored differently if the object is in paint mode
but it's not there yet.

3 years agoCorrect mistake checking version
Campbell Barton [Thu, 28 Jun 2018 14:01:01 +0000 (16:01 +0200)]
Correct mistake checking version

3 years agoRemoved most calls to modifier_deformVerts_DM_deprecated()
Sybren A. Stüvel [Thu, 28 Jun 2018 14:01:02 +0000 (16:01 +0200)]
Removed most calls to modifier_deformVerts_DM_deprecated()

None of those calls actually passed a DerivedMesh.

3 years agoAlembic: speed up export of packed UV islands.
Cédric Paille [Thu, 28 Jun 2018 12:55:16 +0000 (14:55 +0200)]
Alembic: speed up export of packed UV islands.

Differential Revision:

3 years agoMake stdout unbuffered
Sybren A. Stüvel [Thu, 28 Jun 2018 13:32:14 +0000 (15:32 +0200)]
Make stdout unbuffered

Unbuffered stdout makes stdout and stderr better synchronised, and helps
when stepping through code in a debugger (prints are immediately
visible). We don't output much to stdout anyway, so this isn't likely to
cause any performance issues.

3 years agoDraw relationship lines for rigid body constraints
Sybren A. Stüvel [Thu, 28 Jun 2018 13:20:55 +0000 (15:20 +0200)]
Draw relationship lines for rigid body constraints

3 years agoWorkbench: Anti-aliasing refactor
Jeroen Bakker [Thu, 28 Jun 2018 12:09:48 +0000 (14:09 +0200)]
Workbench: Anti-aliasing refactor

- TAA is also enabled for Forward rendering
- Uses less GPU memory (removed one history buffer)
- TAA is done after the color management
- consolidated the aa code between forward and deferred rendering

3 years agoWorkbench: Removed unused code in cavity shader
Jeroen Bakker [Thu, 28 Jun 2018 10:55:09 +0000 (12:55 +0200)]
Workbench: Removed unused code in cavity shader

3 years agoStatic Override: add support to override items (objects/sub-collections) in Collectio...
Bastien Montagne [Thu, 28 Jun 2018 12:27:19 +0000 (14:27 +0200)]
Static Override: add support to override items (objects/sub-collections) in Collection IDs.

Was kind of a PITA to get working, but simple tests seem to pass well...

3 years agoStatic Override: fix diffing logic for ietms ID pointers case.
Bastien Montagne [Thu, 28 Jun 2018 12:25:18 +0000 (14:25 +0200)]
Static Override: fix diffing logic for ietms ID pointers case.

I.e. we can now use REPLACE operation directly on items of an RNA
collection, when those items are ID pointers.

Again, mandatory to support new Collection's objects/children override.

3 years agoStatic Override: RNA apply code: pass extra 'item_ptr' to apply callbacks.
Bastien Montagne [Thu, 28 Jun 2018 12:23:00 +0000 (14:23 +0200)]
Static Override: RNA apply code: pass extra 'item_ptr' to apply callbacks.

This is unused currently, but is mandatory for incomming support to
Collections objects and children items override support.

3 years agoPrevented depsgraph errors when RigidBody Constraint is incomplete
Sybren A. Stüvel [Thu, 28 Jun 2018 12:04:51 +0000 (14:04 +0200)]
Prevented depsgraph errors when RigidBody Constraint is incomplete

3 years agoFixed AttributeError when there is no object selected
Sybren A. Stüvel [Thu, 28 Jun 2018 10:53:30 +0000 (12:53 +0200)]
Fixed AttributeError when there is no object selected

3 years agoPrevent copying too much in the Rigid Body simulation
Sybren A. Stüvel [Wed, 27 Jun 2018 15:08:58 +0000 (17:08 +0200)]
Prevent copying too much in the Rigid Body simulation

To prevent the pointcache from being copied-on-write too (and requiring
copying back), the cache is now shared between the original and
evaluated scenes. Reading from the cache is always allowed; running the
sim and writing to the cache is only allowed when the depsgraph is

Some pointers have moved from RigidBodyWorld (RBO) to
RigidBodyWorldShared (RBOS). writefile.c copies some pointers back from
RBOS to RBO so that the file can still be opened on older Blenders
without crashing on a segfault.

The RigidBodyWorldShared struct is written to the blend file, because it
refers to the PointCache ID block.

The RigidObjectShared struct is runtime-only, and thus not saved to the
blend file.

An RNA getter-function is used to hide the new 'shared' pointer. As a
result the Python API hasn't changed.

Reviewed by: campbellbarton

Differential Revision:

3 years agoFix assert to due missing GPU blend mode.
Brecht Van Lommel [Thu, 28 Jun 2018 11:46:30 +0000 (13:46 +0200)]
Fix assert to due missing GPU blend mode.

3 years agoUI: keep some operator text in headers.
Brecht Van Lommel [Thu, 28 Jun 2018 10:06:00 +0000 (12:06 +0200)]
UI: keep some operator text in headers.

Key shortcuts and explanation about how to use the tool should go to the
status bar, but other info can in the header so it's near where the user
is working. This distinction has not been made yet for all operators.

3 years agoGive RigidBodyWorld constraints collection a fake user
Sybren A. Stüvel [Thu, 28 Jun 2018 10:31:44 +0000 (12:31 +0200)]
Give RigidBodyWorld constraints collection a fake user

This prevents it from disappearing when the blend file is saved.

3 years agoRemove flatty_dark_blueberry (now default)
Campbell Barton [Thu, 28 Jun 2018 10:28:49 +0000 (12:28 +0200)]
Remove flatty_dark_blueberry (now default)

3 years agoManipulator: regression from removing keymaps
Campbell Barton [Thu, 28 Jun 2018 10:25:24 +0000 (12:25 +0200)]
Manipulator: regression from removing keymaps

Keymaps were used to check which tool was active.

3 years agoRNA path: add way to get both valid ptr/prop pair, and final item ptr.
Bastien Montagne [Thu, 28 Jun 2018 09:56:30 +0000 (11:56 +0200)]
RNA path: add way to get both valid ptr/prop pair, and final item ptr.

This will be much useful in some cases, at least in override area it is
needed (avoids searching again for the overriden item in a collection).

3 years agoCorrect bad merge
Campbell Barton [Thu, 28 Jun 2018 09:29:35 +0000 (11:29 +0200)]
Correct bad merge

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 28 Jun 2018 09:10:09 +0000 (11:10 +0200)]
Merge branch 'master' into blender2.8

3 years agoFix T55662: Crash on text autocomplete
Campbell Barton [Thu, 28 Jun 2018 09:09:09 +0000 (11:09 +0200)]
Fix T55662: Crash on text autocomplete

Regression from undo system upgrade.

3 years agoProper fix for RNA path evaluation of collection items.
Bastien Montagne [Thu, 28 Jun 2018 09:04:07 +0000 (11:04 +0200)]
Proper fix for RNA path evaluation of collection items.

Following RNA pointer way - only return evaluated item if asked for.

3 years agoRNA_access: path parsing: fix broken code for collections.
Bastien Montagne [Wed, 27 Jun 2018 12:59:00 +0000 (14:59 +0200)]
RNA_access: path parsing: fix broken code for collections.

When RNA path was for a collection item, we'd falsly get NULL final
property (and wrong final RNA pointer too).

Own stupid mistake in some previous commit, iirc.

3 years agoCleanup: Nuke DM out of particle edit code.
Bastien Montagne [Wed, 27 Jun 2018 09:34:45 +0000 (11:34 +0200)]
Cleanup: Nuke DM out of particle edit code.

Note that this commit also fixes serious memory leaks, temp Mesh
generated out of Main from the DM were never freed here!

3 years agoCleanup: remove some DM from editor's Object vgroup code.
Bastien Montagne [Wed, 27 Jun 2018 09:24:39 +0000 (11:24 +0200)]
Cleanup: remove some DM from editor's Object vgroup code.

3 years agoCleanup: more DM include removal, use BAREMESH cddata mask in constraint code.
Bastien Montagne [Wed, 27 Jun 2018 09:10:00 +0000 (11:10 +0200)]
Cleanup: more DM include removal, use BAREMESH cddata mask in constraint code.

3 years agoFix material preview for EEVEE/Cycles
Dalai Felinto [Thu, 28 Jun 2018 08:59:01 +0000 (10:59 +0200)]
Fix material preview for EEVEE/Cycles

The preview files had all the other collections excluded from the view layer.
Although this fix the problem, it probably means we ignored some existing
2.8 files in recent changes. Which is likely fine anyways given that 2.8 is

3 years agoMerge branch 'blender2.8' of into blender2.8
Jeroen Bakker [Thu, 28 Jun 2018 09:00:26 +0000 (11:00 +0200)]
Merge branch 'blender2.8' of into blender2.8

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 28 Jun 2018 08:50:04 +0000 (10:50 +0200)]
Merge branch 'master' into blender2.8

3 years agoCMake: enable WITH_ASSERT_ABORT by default
Campbell Barton [Thu, 28 Jun 2018 08:48:06 +0000 (10:48 +0200)]
CMake: enable WITH_ASSERT_ABORT by default

Assert from BLI_assert by default in debug builds
(instead of just printing a warning).

Some developers ignored this, causing errors for others.
Better debug builds cause hard error so code isn't ignored.

Disabling is still useful when bisecting or testing outdated code.

3 years agoUI: use two dot ellipses
Campbell Barton [Thu, 28 Jun 2018 08:45:39 +0000 (10:45 +0200)]
UI: use two dot ellipses

Use less space for sign used when we don't have enough.

3 years agoWorkbench: Fix crash editing in texture modes without uv layer
Jeroen Bakker [Thu, 28 Jun 2018 08:38:00 +0000 (10:38 +0200)]
Workbench: Fix crash editing in texture modes without uv layer

When meshes has no uv layer, but has a texture assigned there was a uv
layer allocated which was corrupt. When no uv layer is available now
there won't be a vbo created. This might impact performance as the draw
cache does not cache this result.

3 years agoHair drawing: respect the amount of layers.
Jeroen Bakker [Thu, 28 Jun 2018 08:35:48 +0000 (10:35 +0200)]
Hair drawing: respect the amount of layers.

Current implementation works with at most of 3 layers, but was not
checked during hair drawing leading to reading from uninitialized

This commit limits it to the number of layers that is used during
compilation of blender.

3 years agoWorkbench: Materials Texture hash
Jeroen Bakker [Thu, 28 Jun 2018 08:34:38 +0000 (10:34 +0200)]
Workbench: Materials Texture hash

only hash the texture if it exists. Really minor improvement

3 years agoTools: disable fallback drag action for transform
Campbell Barton [Thu, 28 Jun 2018 08:34:41 +0000 (10:34 +0200)]
Tools: disable fallback drag action for transform

Based on animator feedback, accidentally not clicking on the manipulator
handle had unpredictable behavior.

This functionality will be moved into the manipulator and made optional
(add an invisible fallback manipulator).

3 years agoWorkbench: Fix Texture drawing
Jeroen Bakker [Thu, 28 Jun 2018 07:19:00 +0000 (09:19 +0200)]
Workbench: Fix Texture drawing

textures were not always drawn as the material did not always include
the image in the hash. Not sure if this will solve all cases, but it
definitely works better with this change.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 28 Jun 2018 06:50:11 +0000 (08:50 +0200)]
Merge branch 'master' into blender2.8

3 years agoFix missing blend mode in recent OpenGL refactor
Campbell Barton [Thu, 28 Jun 2018 06:49:30 +0000 (08:49 +0200)]
Fix missing blend mode in recent OpenGL refactor

3 years agoCleanup: use f-strings
Campbell Barton [Thu, 28 Jun 2018 06:30:54 +0000 (08:30 +0200)]
Cleanup: use f-strings

3 years agoCleanup: pep8
Campbell Barton [Thu, 28 Jun 2018 06:27:03 +0000 (08:27 +0200)]
Cleanup: pep8

3 years agogl cleanup: fix wrong cast in bf_editor_transform
Ray Molenkamp [Thu, 28 Jun 2018 04:47:25 +0000 (22:47 -0600)]
gl cleanup: fix wrong cast in bf_editor_transform

3 years agoGLRefactor: partially remove gl calls from source/blender/editors.
Ray Molenkamp [Thu, 28 Jun 2018 01:07:23 +0000 (19:07 -0600)]
GLRefactor: partially remove gl calls from source/blender/editors.

This translates the gl calls to the new GPU_ wrappers from D3501.

Given it's tedious and repetitive work, this patch does as much as it can with search + replace, the remainder of the gl calls will need to be manually dealt with on a case by case basis.

This fixes 13 of the 28 failing editors when building without opengl.

For the list of substitutions see D3502

Reviewers: brecht

Differential Revision:

3 years agoUI: Center ID Blocks in Dopesheet Editor
William Reynish [Wed, 27 Jun 2018 22:49:04 +0000 (00:49 +0200)]
UI: Center ID Blocks in Dopesheet Editor

Also move use_multi_word_filter to the View menu instead of next to every
search field, as it can be very slow in big scenes.

3 years agoUI: Center ID Blocks in Clip Editor
William Reynish [Wed, 27 Jun 2018 22:33:52 +0000 (00:33 +0200)]
UI: Center ID Blocks in Clip Editor

See T55635

3 years agoUI: Center ID Blocks in Image Editor
William Reynish [Wed, 27 Jun 2018 22:33:10 +0000 (00:33 +0200)]
UI: Center ID Blocks in Image Editor

See T55635

3 years agoUI: Center ID Blocks in Video Sequencer
William Reynish [Wed, 27 Jun 2018 22:32:02 +0000 (00:32 +0200)]
UI: Center ID Blocks in Video Sequencer

Also remove Use Preview Range and Lock Frame buttons from the header
they belong to the Timeline editor now.

See T55635

3 years agoUI: Center ID Blocks in Node Editor
William Reynish [Wed, 27 Jun 2018 22:30:22 +0000 (00:30 +0200)]
UI: Center ID Blocks in Node Editor

See T55635

3 years agoUI: Center ID Blocks in Text Editor
William Reynish [Wed, 27 Jun 2018 22:28:32 +0000 (00:28 +0200)]
UI: Center ID Blocks in Text Editor

See T55635

3 years agoUI: keep statusbar keymap icons in same position, if there is enough space.
Brecht Van Lommel [Wed, 27 Jun 2018 21:59:05 +0000 (23:59 +0200)]
UI: keep statusbar keymap icons in same position, if there is enough space.

3 years agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Wed, 27 Jun 2018 22:13:52 +0000 (00:13 +0200)]
Merge branch 'master' into blender2.8

3 years agoFix Cycles tests build on macOS.
Brecht Van Lommel [Sat, 23 Jun 2018 21:30:38 +0000 (23:30 +0200)]
Fix Cycles tests build on macOS.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 27 Jun 2018 21:01:19 +0000 (23:01 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: style
Campbell Barton [Wed, 27 Jun 2018 20:32:52 +0000 (22:32 +0200)]
Cleanup: style

3 years agoCleanup: style
Campbell Barton [Wed, 27 Jun 2018 20:29:59 +0000 (22:29 +0200)]
Cleanup: style

3 years agoUI: shorten labels to avoid clipping
William Reynish [Wed, 27 Jun 2018 20:11:29 +0000 (22:11 +0200)]
UI: shorten labels to avoid clipping

3 years agoRemove empty gradient definitions in new theme
Campbell Barton [Wed, 27 Jun 2018 18:21:23 +0000 (20:21 +0200)]
Remove empty gradient definitions in new theme

MSVC doesn't support

3 years agoRemove empty gradient definitions in new theme
Campbell Barton [Wed, 27 Jun 2018 18:21:23 +0000 (20:21 +0200)]
Remove empty gradient definitions in new theme

MSVC doesn't support

3 years agoUI: tweak status bar layout to make it less jumpy.
Brecht Van Lommel [Wed, 27 Jun 2018 17:48:54 +0000 (19:48 +0200)]
UI: tweak status bar layout to make it less jumpy.

Keymap on the left, messages and jobs in the middle, stats on the right.

3 years agoUI: some renaming for more clear/consistent cursor keymaps in status bar.
Brecht Van Lommel [Wed, 27 Jun 2018 15:07:02 +0000 (17:07 +0200)]
UI: some renaming for more clear/consistent cursor keymaps in status bar.

There's much more work to be done here, this is just fixing some obvious ones.

3 years agoFix T55644: Multires ignores render subdivision when simplified
Sergey Sharybin [Wed, 27 Jun 2018 14:34:26 +0000 (16:34 +0200)]
Fix T55644: Multires ignores render subdivision when simplified

We did not tell proper render/viewport context to subsurf derived mesh
created for multires.

3 years agoDepsgraph: Move time dependency to animation of action
Sergey Sharybin [Wed, 27 Jun 2018 14:10:37 +0000 (16:10 +0200)]
Depsgraph: Move time dependency to animation of action

This way we guarantee that animation component on the datablock will
totally wait for action to be fully evaluated before attempting to
evaluate f-curves.

Fixes T55642: Inconsistent result on animated DoF file

3 years agoDepsgraph: Add missing relation to pose init
Sergey Sharybin [Wed, 27 Jun 2018 13:27:58 +0000 (15:27 +0200)]
Depsgraph: Add missing relation to pose init

Pose init initializes inversed object matrix, which means it does
need to have proper object transform.

3 years agoDepsgraph: Fix missing relation from action to animation when it's shared
Sergey Sharybin [Wed, 27 Jun 2018 12:36:37 +0000 (14:36 +0200)]
Depsgraph: Fix missing relation from action to animation when it's shared