blender.git
2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 3 Jul 2018 05:23:15 +0000 (07:23 +0200)]
Merge branch 'master' into blender2.8

2 years agoPython: Print file:line when editing UI source
Campbell Barton [Tue, 3 Jul 2018 05:22:26 +0000 (07:22 +0200)]
Python: Print file:line when editing UI source

2 years agoCleanup: pep8
Campbell Barton [Tue, 3 Jul 2018 05:13:27 +0000 (07:13 +0200)]
Cleanup: pep8

2 years agoCleanup: pep8
Campbell Barton [Tue, 3 Jul 2018 05:12:24 +0000 (07:12 +0200)]
Cleanup: pep8

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 3 Jul 2018 04:58:34 +0000 (06:58 +0200)]
Merge branch 'master' into blender2.8

2 years agoCleanup: pep8
Campbell Barton [Tue, 3 Jul 2018 04:47:49 +0000 (06:47 +0200)]
Cleanup: pep8

2 years agoCleanup: pep8
Campbell Barton [Tue, 3 Jul 2018 04:27:53 +0000 (06:27 +0200)]
Cleanup: pep8

2 years agoUI: don't change the theme area when setting theme
Campbell Barton [Tue, 3 Jul 2018 03:57:27 +0000 (05:57 +0200)]
UI: don't change the theme area when setting theme

2 years agoUI: Dim color of shortcut label in menus and toolbar
Julian Eisel [Mon, 2 Jul 2018 22:46:02 +0000 (00:46 +0200)]
UI: Dim color of shortcut label in menus and toolbar

The shortcut labels now use the "Item" theme color. Its contrast for hovered
items is a bit low, but not too bad.

Note that this also changes the color of the little toolbar triangle to be grey
(the same color we use for the keymap label). IMHO that looks better though.
This doesn't update any themes other than the default one.

Part of T54711.

2 years agoFix ugly half alignment in timeline header.
Brecht Van Lommel [Mon, 2 Jul 2018 18:25:59 +0000 (20:25 +0200)]
Fix ugly half alignment in timeline header.

2 years agoSplash: add "Alpha" text and link to the development fund.
Brecht Van Lommel [Mon, 2 Jul 2018 17:25:29 +0000 (19:25 +0200)]
Splash: add "Alpha" text and link to the development fund.

2 years agoSculpting: add Manual detail mode for dynamic topology.
Macelaru Tiberiu [Mon, 2 Jul 2018 16:35:50 +0000 (18:35 +0200)]
Sculpting: add Manual detail mode for dynamic topology.

In this mode mesh detail does not change on each stroke, but only when
using flood fill.

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

2 years agoTheme: use highlight from flatty light
Campbell Barton [Mon, 2 Jul 2018 17:58:39 +0000 (19:58 +0200)]
Theme: use highlight from flatty light

Also make text & number editing use same colors.

2 years agoTheme: desaturate colors
Campbell Barton [Mon, 2 Jul 2018 17:49:49 +0000 (19:49 +0200)]
Theme: desaturate colors

Having everything tinted gives isn't good for color perception.

2 years agoWorkbench: Fix use of uninitialized memory.
Clément Foucault [Mon, 2 Jul 2018 17:21:01 +0000 (19:21 +0200)]
Workbench: Fix use of uninitialized memory.

2 years agoUI: Fix Properties with consecutive icons enabled in dropdown menus
Clément Foucault [Mon, 2 Jul 2018 17:11:36 +0000 (19:11 +0200)]
UI: Fix Properties with consecutive icons enabled in dropdown menus

It was using ICON_UNLOCKED when the property was true.

This affected the use_lock_interface properties now displayed in the Render
menu.

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

2 years agoCleanup: right shift
Campbell Barton [Mon, 2 Jul 2018 16:45:26 +0000 (18:45 +0200)]
Cleanup: right shift

2 years agoUI: Transform Orientations panel as popover
Vuk Gardašević [Mon, 2 Jul 2018 16:43:30 +0000 (18:43 +0200)]
UI: Transform Orientations panel as popover

Functionality fits in the Transform Orientations, no need for a dedicated
panel in the viewport sidebar.

See D3511

2 years agoCleanup: use _f, _i suffix for GPU state API
Campbell Barton [Mon, 2 Jul 2018 16:27:05 +0000 (18:27 +0200)]
Cleanup: use _f, _i suffix for GPU state API

2 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

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

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

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

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

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

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

2 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

2 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

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

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

2 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).

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

2 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

2 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

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

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

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

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

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

2 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

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

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

2 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

2 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

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

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

2 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

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

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

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

2 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

2 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

2 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

2 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

2 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

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

2 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

2 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

2 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

2 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

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

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

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

2 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

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

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

2 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

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

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

2 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

2 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?

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

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

2 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

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

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

2 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

2 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

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

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

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

2 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

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

2 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

2 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

2 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

2 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

2 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

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

2 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

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

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

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

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

2 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

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

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

2 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 :)

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