blender.git
3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 2 Jul 2018 16:18:16 +0000 (18:18 +0200)]
Merge branch 'master' into blender2.8

3 years agoPainting: fix uninitialized variable use
Campbell Barton [Mon, 2 Jul 2018 16:16:37 +0000 (18:16 +0200)]
Painting: fix uninitialized variable use

3 years agoOutliner: remove view menu, move more into RMB context menu and filter popover.
William Reynish [Mon, 2 Jul 2018 15:36:51 +0000 (17:36 +0200)]
Outliner: remove view menu, move more into RMB context menu and filter popover.

3 years agoUI: update status bar mouse icons, draw in text color.
Brecht Van Lommel [Mon, 2 Jul 2018 13:28:47 +0000 (15:28 +0200)]
UI: update status bar mouse icons, draw in text color.

3 years agoCleanup: remove unused icon code after OpenGL upgrade.
Brecht Van Lommel [Mon, 2 Jul 2018 15:12:30 +0000 (17:12 +0200)]
Cleanup: remove unused icon code after OpenGL upgrade.

3 years agoFix modal keymap breaking exporter
Campbell Barton [Mon, 2 Jul 2018 15:37:15 +0000 (17:37 +0200)]
Fix modal keymap breaking exporter

We could support quotes in keymap names, for now don't write them.

3 years agoFix sculpt key bindings
Campbell Barton [Mon, 2 Jul 2018 15:32:52 +0000 (17:32 +0200)]
Fix sculpt key bindings

3 years agoTheme: use black for object wire
Campbell Barton [Mon, 2 Jul 2018 15:08:25 +0000 (17:08 +0200)]
Theme: use black for object wire

Would too easily loose contrast with shaded objects.

See: T55673

3 years agoError in theme color cleanup #2
Campbell Barton [Mon, 2 Jul 2018 15:03:49 +0000 (17:03 +0200)]
Error in theme color cleanup #2

3 years agoFix: Global area edges couldn't call right click menu to join/split
Julian Eisel [Mon, 2 Jul 2018 14:48:18 +0000 (16:48 +0200)]
Fix: Global area edges couldn't call right click menu to join/split

Operators ignored edges along the screen-layout bounds. They should've ignored
those along window bounds instead.

Although the global areas can not be joined/split, the adjacent areas can. So
the menu should still be shown.
Had to change the return value of area joining operator, so that an error report
can show up when trying to join over a global area edge. Think this is fine to
do, but you never know with such stuff.

Preferably we'd gray out the "Join Area" item in the menu when clicking on the
edge of a global area. Unfotunately the operator uses coordinates passed as
operator properties to find the right edge/areas, which we cannot access from
the poll callback.

3 years agoError in last commit
Campbell Barton [Mon, 2 Jul 2018 14:52:08 +0000 (16:52 +0200)]
Error in last commit

3 years agoCleanup: remove redundant theme colors
Campbell Barton [Mon, 2 Jul 2018 14:34:47 +0000 (16:34 +0200)]
Cleanup: remove redundant theme colors

Remove unused colors (colors which RNA has no access to).

3 years agoUI: show favourites from properties-space in the 3D view
Campbell Barton [Mon, 2 Jul 2018 13:49:51 +0000 (15:49 +0200)]
UI: show favourites from properties-space in the 3D view

This allows settings to be toggled in the 3D view.

3 years agoUI: Header consistency
Pablo Vazquez [Mon, 2 Jul 2018 13:53:46 +0000 (15:53 +0200)]
UI: Header consistency

Snap before proportional editing, pivot after

3 years agoUI: align header menus to space them closely
Campbell Barton [Mon, 2 Jul 2018 13:47:00 +0000 (15:47 +0200)]
UI: align header menus to space them closely

3 years agoKeymap: reinstate Ctrl-L key
Campbell Barton [Mon, 2 Jul 2018 13:27:19 +0000 (15:27 +0200)]
Keymap: reinstate Ctrl-L key

Linking based on selection may be done often, so adding back.

3 years agoCycles: Fix missing curve hair when building with GCC-8 in release mode
Sergey Sharybin [Mon, 2 Jul 2018 13:11:48 +0000 (15:11 +0200)]
Cycles: Fix missing curve hair when building with GCC-8 in release mode

Reshuffle cast intrinsics to make XOR to operate on __m128i rather
than on __m128.

Hopefully this does not affect performance.

3 years agoKeymap: add back macos preferences shortcut
Campbell Barton [Mon, 2 Jul 2018 13:14:49 +0000 (15:14 +0200)]
Keymap: add back macos preferences shortcut

Would like to avoid OS-keys, but apparently this is expected on OSX.

3 years agoUI: revert 3D menu alignment
Campbell Barton [Mon, 2 Jul 2018 13:01:20 +0000 (15:01 +0200)]
UI: revert 3D menu alignment

This caused collapsed menu to draw in a row,
will look into alternate way to avoid menus taking too much room.

3 years agoUI: Header consistency for 3D Viewport
Pablo Vazquez [Mon, 2 Jul 2018 12:50:37 +0000 (14:50 +0200)]
UI: Header consistency for 3D Viewport

Alignment/snapping/proportional edit to the right like in all other editors,
keeping the center for the shading/overlay settings.

3 years agoUI: Header consistency for Text editor
Pablo Vazquez [Mon, 2 Jul 2018 12:49:01 +0000 (14:49 +0200)]
UI: Header consistency for Text editor

3 years agoUI: Header consistency for Squencer
Pablo Vazquez [Mon, 2 Jul 2018 12:48:40 +0000 (14:48 +0200)]
UI: Header consistency for Squencer

3 years agoUI: Header consistency for Node editor
Pablo Vazquez [Mon, 2 Jul 2018 12:48:01 +0000 (14:48 +0200)]
UI: Header consistency for Node editor

Also move use_insert_offset to the View menu as it is not toggled that often
to take space in the header.

3 years agoUI: Header consistency for UV/Image editor
Pablo Vazquez [Mon, 2 Jul 2018 12:46:36 +0000 (14:46 +0200)]
UI: Header consistency for UV/Image editor

3 years agoUI: Header consistency for animation editors
Pablo Vazquez [Mon, 2 Jul 2018 12:45:55 +0000 (14:45 +0200)]
UI: Header consistency for animation editors

3 years agoUI: File Browser header consistency
Pablo Vazquez [Mon, 2 Jul 2018 12:44:45 +0000 (14:44 +0200)]
UI: File Browser header consistency

Move "Recursion" and "Display Size" to a new View menu.

Thanks Campbell for helping with wonky menus.

3 years agoOutliner: add outliner wide RMB context menu.
Brecht Van Lommel [Mon, 2 Jul 2018 12:47:30 +0000 (14:47 +0200)]
Outliner: add outliner wide RMB context menu.

All right click menus in the outliner now include OUTLINER_MT_context.

3 years agoUI: add workspace cycling menu items
Campbell Barton [Mon, 2 Jul 2018 12:26:31 +0000 (14:26 +0200)]
UI: add workspace cycling menu items

3 years agoUI: update mouse icons in status bar.
Brecht Van Lommel [Mon, 2 Jul 2018 11:27:22 +0000 (13:27 +0200)]
UI: update mouse icons in status bar.

3 years agoKeymap: add back X-Key for delete
Campbell Barton [Mon, 2 Jul 2018 11:00:43 +0000 (13:00 +0200)]
Keymap: add back X-Key for delete

This is needed as part of modeling work-flow, so keep it accessible.

3 years agoKeymap: use Page Up/Down for workspace switching
Campbell Barton [Mon, 2 Jul 2018 10:49:45 +0000 (12:49 +0200)]
Keymap: use Page Up/Down for workspace switching

These are common keys for changing tabs,
leaving tab free to be used for tools/mode switching.

3 years agoUI: add screen split to window context menu
Campbell Barton [Mon, 2 Jul 2018 10:46:51 +0000 (12:46 +0200)]
UI: add screen split to window context menu

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 2 Jul 2018 10:41:47 +0000 (12:41 +0200)]
Merge branch 'master' into blender2.8

3 years agoScreen: support splitting from floating menu
Campbell Barton [Mon, 2 Jul 2018 10:24:21 +0000 (12:24 +0200)]
Screen: support splitting from floating menu

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 2 Jul 2018 10:03:56 +0000 (12:03 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: use bool for poll functions
Campbell Barton [Mon, 2 Jul 2018 09:47:00 +0000 (11:47 +0200)]
Cleanup: use bool for poll functions

3 years agoCommit D3494 : Compiled shader lookup fix
Clément Foucault [Mon, 2 Jul 2018 09:03:14 +0000 (11:03 +0200)]
Commit D3494 : Compiled shader lookup fix

Authored by Pavel Rudko (PavelRudko) on Thu, Jun 21, 10:41 AM.

Original description:

I've encounterd into a problem with blender 2.8.
See the example screenshot (scene, shader setup). For some materials it's not enough to calculate hash based on fragment code and defines. In some cases attribute names may change. And if we change uv set name, for example, vertex shader is not recompiled, and another attribute name inside it is used.

3 years agoCorrect f-string in own recent changes
Campbell Barton [Mon, 2 Jul 2018 07:18:38 +0000 (09:18 +0200)]
Correct f-string in own recent changes

3 years agoFix T55675: Crash internal animation player
Campbell Barton [Sun, 1 Jul 2018 19:07:18 +0000 (21:07 +0200)]
Fix T55675: Crash internal animation player

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sun, 1 Jul 2018 18:15:21 +0000 (20:15 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: right shift in interface code
Campbell Barton [Sun, 1 Jul 2018 17:57:31 +0000 (19:57 +0200)]
Cleanup: right shift in interface code

3 years agoKeymap: add generally useful popups to F-Keys 1..4
Campbell Barton [Sun, 1 Jul 2018 15:51:31 +0000 (17:51 +0200)]
Keymap: add generally useful popups to F-Keys 1..4

This allows key bindings: link/append and user-preferences
to be accessed via keys - without having to assign keys to each action.

- F1: Context sensitive help.
- F2: File Context Menu.
- F3: Search.
- F4: Window Context Menu.

Other keys F5..10, remain free,
ideally they can be kept for user actions.

3 years agoFix T55687: compile error when not using c++11.
Brecht Van Lommel [Sun, 1 Jul 2018 14:48:19 +0000 (16:48 +0200)]
Fix T55687: compile error when not using c++11.

3 years agoFix T55626, fix T55106: Cycles motion blur + persistent images bug.
Brecht Van Lommel [Sun, 1 Jul 2018 14:31:46 +0000 (16:31 +0200)]
Fix T55626, fix T55106: Cycles motion blur + persistent images bug.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sun, 1 Jul 2018 14:22:06 +0000 (16:22 +0200)]
Merge branch 'master' into blender2.8

3 years agoRNA: use bool for boolean RNA types
Campbell Barton [Sun, 1 Jul 2018 13:47:09 +0000 (15:47 +0200)]
RNA: use bool for boolean RNA types

We were using int's for bool arguments in BKE,
just to avoid having wrapper functions.

3 years agoCleanup: reduce variable scope
Campbell Barton [Sun, 1 Jul 2018 08:32:47 +0000 (10:32 +0200)]
Cleanup: reduce variable scope

3 years agoCleanup: avoid calloc when immediately overwritten
Campbell Barton [Sun, 1 Jul 2018 08:26:37 +0000 (10:26 +0200)]
Cleanup: avoid calloc when immediately overwritten

3 years agoCleanup: remove num argument prefix
Campbell Barton [Sun, 1 Jul 2018 07:23:51 +0000 (09:23 +0200)]
Cleanup: remove num argument prefix

3 years agoCleanup: RNA naming
Campbell Barton [Sun, 1 Jul 2018 07:05:36 +0000 (09:05 +0200)]
Cleanup: RNA naming

3 years agoCleanup: use '_len' suffix for line stipple
Campbell Barton [Sun, 1 Jul 2018 06:42:16 +0000 (08:42 +0200)]
Cleanup: use '_len' suffix for line stipple

3 years ago3D View: use 3px dashed relationship line
Campbell Barton [Sun, 1 Jul 2018 06:34:04 +0000 (08:34 +0200)]
3D View: use 3px dashed relationship line

Seems this was accidentally doubled from 2.7x?

3 years agoRevert "Experimental Tweak: Only show relationship lines between objects when either...
Campbell Barton [Sun, 1 Jul 2018 06:26:48 +0000 (08:26 +0200)]
Revert "Experimental Tweak: Only show relationship lines between objects when either the parent/child object is selected"

This reverts commit 912931964723cb69dafd4adebe3daf093e3e78c1.

This meant users needed to select everything to see relationship lines,
this isn't always easy since objects can have limit-selection set.

This could be made into an enum option if it's important.

3 years agoUI: set default theme outline alpha
Campbell Barton [Sun, 1 Jul 2018 06:04:39 +0000 (08:04 +0200)]
UI: set default theme outline alpha

The outline wasn't being set causing it not to draw.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sun, 1 Jul 2018 05:24:46 +0000 (07:24 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: use f-string
Campbell Barton [Sat, 30 Jun 2018 20:02:41 +0000 (22:02 +0200)]
Cleanup: use f-string

3 years agoUI: support check-boxes in quick menu
Campbell Barton [Sat, 30 Jun 2018 18:59:10 +0000 (20:59 +0200)]
UI: support check-boxes in quick menu

Could support other RNA types,
however menus don't work well in this case.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sat, 30 Jun 2018 16:06:20 +0000 (18:06 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: split out context member query
Campbell Barton [Sat, 30 Jun 2018 16:05:01 +0000 (18:05 +0200)]
Cleanup: split out context member query

3 years agoRNA: check for 3D view overlay/shading
Campbell Barton [Sat, 30 Jun 2018 15:41:51 +0000 (17:41 +0200)]
RNA: check for 3D view overlay/shading

Use to calculate paths for the info window.

3 years agoUI: Support status-bar hiding
Severin [Sat, 30 Jun 2018 14:51:31 +0000 (16:51 +0200)]
UI: Support status-bar hiding

Just like the top-bar, the status-bar can now be hidden/collapsed by dragging
its edge. We display a small line with the editor outline color then, so there
is something that can be dragged up to un-collapse the area again.
This collapsed state is not written to files yet.

3 years agoUI: correct menu label comparison
Campbell Barton [Sat, 30 Jun 2018 13:58:45 +0000 (15:58 +0200)]
UI: correct menu label comparison

3 years agoFix corrupt screen when splitting areas after collapsing top-bar
Severin [Sat, 30 Jun 2018 13:36:00 +0000 (15:36 +0200)]
Fix corrupt screen when splitting areas after collapsing top-bar

3 years agoDNA: rename operator idname
Campbell Barton [Sat, 30 Jun 2018 12:17:13 +0000 (14:17 +0200)]
DNA: rename operator idname

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sat, 30 Jun 2018 11:52:04 +0000 (13:52 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: remove unused context arg to menu
Campbell Barton [Sat, 30 Jun 2018 10:31:53 +0000 (12:31 +0200)]
Cleanup: remove unused context arg to menu

3 years agoUI: support adding menu's to favourites
Campbell Barton [Sat, 30 Jun 2018 10:08:08 +0000 (12:08 +0200)]
UI: support adding menu's to favourites

3 years agoUI: move queries into interface_query.c
Campbell Barton [Sat, 30 Jun 2018 08:58:56 +0000 (10:58 +0200)]
UI: move queries into interface_query.c

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sat, 30 Jun 2018 08:56:12 +0000 (10:56 +0200)]
Merge branch 'master' into blender2.8

3 years agoUI: Add 'interface_query.c'
Campbell Barton [Sat, 30 Jun 2018 08:36:40 +0000 (10:36 +0200)]
UI: Add 'interface_query.c'

Interface files are increasingly mixing up too much functionality,
add a file only to handle queries.

More functions can be moved/added here.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sat, 30 Jun 2018 08:32:55 +0000 (10:32 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: rename bmesh_queries -> bmesh_query
Campbell Barton [Sat, 30 Jun 2018 08:29:40 +0000 (10:29 +0200)]
Cleanup: rename bmesh_queries -> bmesh_query

Other files with the same purpose already used 'query'.

3 years agoKeymap: 2.7x, use fractions
Campbell Barton [Sat, 30 Jun 2018 08:20:16 +0000 (10:20 +0200)]
Keymap: 2.7x, use fractions

3 years agoKeymap: 2.7x uses spacebar for search.
Campbell Barton [Sat, 30 Jun 2018 08:06:30 +0000 (10:06 +0200)]
Keymap: 2.7x uses spacebar for search.

3 years agoUI: add operator search to edit-menu
Campbell Barton [Sat, 30 Jun 2018 08:04:08 +0000 (10:04 +0200)]
UI: add operator search to edit-menu

While this is most useful to access from an active-region,
it's not discoverable without a menu entry.

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

3 years agoCleanup: use f-string
Campbell Barton [Sat, 30 Jun 2018 07:23:07 +0000 (09:23 +0200)]
Cleanup: use f-string

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 T54524: keyframe and driver colors not showing in shape key list.
Brecht Van Lommel [Fri, 29 Jun 2018 19:13:35 +0000 (21:13 +0200)]
Fix T54524: keyframe and driver colors not showing in shape key list.

This reverts commit 357b72e0a7d4a270bf1273102595446ccca16259 which caused
the issue, we need a better fix for that cosmetic issue from T50862. For
now displaying keyframes and drivers is the more important one.

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 agoCycles: change AO node default to 16 samples and only local off.
Brecht Van Lommel [Fri, 29 Jun 2018 13:02:09 +0000 (15:02 +0200)]
Cycles: change AO node default to 16 samples and only local off.

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

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