3 years agoFurther tweaks to drawing of non-selected graph editor keyframes
Joshua Leung [Fri, 6 Jul 2018 03:38:25 +0000 (15:38 +1200)]
Further tweaks to drawing of non-selected graph editor keyframes

The previous commit only solves the problem when using the default
theme using factory settings. For previously saved themes, there could
still be problems, as the alpha values were still 0.

This commit improves the logic here so that while keyframe points on
unselected F-Curves will still get faded out (to not stick out too much
from the curves they live on), but the effect will not be as pronounced
(i.e. the points will stay visible all the time).

3 years agoFix T55777: Non-selected keys in Graph Editor are invisible
Joshua Leung [Fri, 6 Jul 2018 03:15:45 +0000 (15:15 +1200)]
Fix T55777: Non-selected keys in Graph Editor are invisible

Restore theem setting default for Graph Editor's vertex,
with default alpha set to 1.0. The alpha value here needs
to be non-zero, as the alpha values currently get used
when drawing verts.

3 years agoFix T55775: Crash when select keyframe on object channels in Timeline editor
Joshua Leung [Fri, 6 Jul 2018 03:01:28 +0000 (15:01 +1200)]
Fix T55775: Crash when select keyframe on object channels in Timeline editor

3 years agoCleanup: flag checks
Campbell Barton [Thu, 5 Jul 2018 20:56:18 +0000 (22:56 +0200)]
Cleanup: flag checks

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 5 Jul 2018 20:50:07 +0000 (22:50 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: flag checks
Campbell Barton [Thu, 5 Jul 2018 20:49:42 +0000 (22:49 +0200)]
Cleanup: flag checks

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 5 Jul 2018 20:46:04 +0000 (22:46 +0200)]
Merge branch 'master' into blender2.8

3 years agoRNA: correct callback type
Campbell Barton [Thu, 5 Jul 2018 20:25:34 +0000 (22:25 +0200)]
RNA: correct callback type

Missed when changing callbacks from int to bool type.

3 years agoRNA: use is_dirty prefix for checking updates
Campbell Barton [Thu, 5 Jul 2018 19:48:46 +0000 (21:48 +0200)]
RNA: use is_dirty prefix for checking updates

Common convention for read-only update checks

3 years agoKeymap: Make Ctrl-Tab toggles pose mode
Campbell Barton [Thu, 5 Jul 2018 19:28:25 +0000 (21:28 +0200)]
Keymap: Make Ctrl-Tab toggles pose mode

Showing a pie menu is redundant since tab is already
mapped to edit mode.

Bypass the menu for pose mode toggle.

3 years agoDraw Manager: simplify object mask usage
Campbell Barton [Thu, 5 Jul 2018 18:27:04 +0000 (20:27 +0200)]
Draw Manager: simplify object mask usage

Remove flag defines, use object types directly.

3 years agoCleanup: minor changes to last commit, #2
Campbell Barton [Thu, 5 Jul 2018 17:49:05 +0000 (19:49 +0200)]
Cleanup: minor changes to last commit, #2

3 years agoCleanup: minor changes to last commit
Campbell Barton [Thu, 5 Jul 2018 17:41:38 +0000 (19:41 +0200)]
Cleanup: minor changes to last commit

3 years agoKeymap: convenience Alt-MMB view switching
Campbell Barton [Thu, 5 Jul 2018 17:29:56 +0000 (19:29 +0200)]
Keymap: convenience Alt-MMB view switching

Allows to quickly set the view axis for advanced users,
Requested by @hjalti

3 years ago3D View: support setting the relative axis
Campbell Barton [Thu, 5 Jul 2018 17:27:57 +0000 (19:27 +0200)]
3D View: support setting the relative axis

This sets the closest view axis, as if the current view is 'front'.

Useful to switch to the nearest left/right/top/bottom.

3 years agoUI: add separators in properties editor header tabs.
Brecht Van Lommel [Thu, 5 Jul 2018 17:19:43 +0000 (19:19 +0200)]
UI: add separators in properties editor header tabs.

3 years agoShaders: add target setting to material output node.
Brecht Van Lommel [Thu, 5 Jul 2018 10:44:15 +0000 (12:44 +0200)]
Shaders: add target setting to material output node.

This makes it possible to have a single shading nodetree that contains
separate Cycles and Eevee shaders. By default the target is set to All
so shaders are shared.

3 years agoViewport: tweak Z key shading toggle.
Brecht Van Lommel [Thu, 5 Jul 2018 10:28:03 +0000 (12:28 +0200)]
Viewport: tweak Z key shading toggle.

* Z now goes to solid mode when in lookdev or rendered mode.
* Alt-Z was broken after removal of texture mode, now toggles lookdev mode.
* Simplify code by turning it into a single operator.

3 years agoGPU: avoid unnecessary multiple nodetree localize and output finding.
Brecht Van Lommel [Thu, 5 Jul 2018 15:20:44 +0000 (17:20 +0200)]
GPU: avoid unnecessary multiple nodetree localize and output finding.

3 years agoCleanup: indentation
Campbell Barton [Thu, 5 Jul 2018 14:59:52 +0000 (16:59 +0200)]
Cleanup: indentation

3 years ago3D View: split view-numpad into two operators
Campbell Barton [Thu, 5 Jul 2018 14:54:30 +0000 (16:54 +0200)]
3D View: split view-numpad into two operators

Naming operator based on keys it used was strange,
split into view-axis and view-camera.

3 years agoRefactored into a single option
Jeroen Bakker [Thu, 5 Jul 2018 13:39:20 +0000 (15:39 +0200)]
Refactored into a single option

Technical all options are still there for finetuning.

3 years agoRefactor: SHOW->HIDE
Jeroen Bakker [Thu, 5 Jul 2018 13:13:15 +0000 (15:13 +0200)]
Refactor: SHOW->HIDE

HIDE needs less code also in the future, RNA still uses SHOW.

3 years agoOverlay: enable/disable drawing of specific object types.
Jeroen Bakker [Thu, 5 Jul 2018 13:01:04 +0000 (15:01 +0200)]
Overlay: enable/disable drawing of specific object types.

This patch will allow users to customize what object types will be drawn by the object mode overlay.
It supports: Empties, Lamps, Cameras, Speakers, Armatures and Lightprobes.

It currently does not support Physics objects due to the overlap it has with other objects types.

Also be aware that in pose mode the armature is drawn, but not by the object mode overlay

Reviewers: campbellbarton

Tags: #bf_blender_2.8

Differential Revision:

3 years agoDepsgraph: Preserve engine data when doing object copy on write update
Sergey Sharybin [Thu, 5 Jul 2018 14:55:46 +0000 (16:55 +0200)]
Depsgraph: Preserve engine data when doing object copy on write update

3 years agoCleanup: Undefined function declarations
Sergey Sharybin [Thu, 5 Jul 2018 14:55:25 +0000 (16:55 +0200)]
Cleanup: Undefined function declarations

3 years agoEnsure dependency graph exists before initializing editors
Sergey Sharybin [Thu, 5 Jul 2018 13:30:56 +0000 (15:30 +0200)]
Ensure dependency graph exists before initializing editors

Will help entering sculpt mode on file load by making it possible
to fully initialize sculpt session. The goal is to make sure PBVH
exists since the very beginning of file open (missing PBVH is a
reason why object is not visible before first stroke).

This is not enough yet to fully solve the issue, since entering
sculpt mode tags object for Copy-on-Write update, which frees

3 years agoRevert "Overlay: enable/disable drawing of specific object types."
Jeroen Bakker [Thu, 5 Jul 2018 14:51:49 +0000 (16:51 +0200)]
Revert "Overlay: enable/disable drawing of specific object types."

This reverts commit f7ec70895c78900db8e7db88d3713ebb9aa62730.

3 years agoOverlay: enable/disable drawing of specific object types.
Jeroen Bakker [Thu, 5 Jul 2018 12:38:14 +0000 (14:38 +0200)]
Overlay: enable/disable drawing of specific object types.

Added a option to the overlay popover that controls the visibility of
non-renderable objects like lamps, cameras, speakers, armatures, curves
empties and force fields.

After discussion we went for a single option with more detailed check in
the object_mode draw engine.

Differential Revision:

3 years agoCycles: Adding native support for UINT16 textures.
Stefan Werner [Thu, 5 Jul 2018 10:37:52 +0000 (12:37 +0200)]
Cycles: Adding native support for UINT16 textures.

Textures in 16 bit integer format are sometimes used for displacement, bump and normal maps and can be exported by tools like Substance Painter. Without this patch, Cycles would promote those textures to single precision floating point, causing them to take up twice as much memory as needed.

Reviewers: #cycles, brecht, sergey

Reviewed By: #cycles, brecht, sergey

Subscribers: sergey, dingto, #cycles

Tags: #cycles

Differential Revision:

3 years agoCleanup: warning
Campbell Barton [Thu, 5 Jul 2018 10:29:48 +0000 (12:29 +0200)]
Cleanup: warning

3 years agoSculpt: Fix disappearing object on undo
Sergey Sharybin [Thu, 5 Jul 2018 10:31:17 +0000 (12:31 +0200)]
Sculpt: Fix disappearing object on undo

Tagging object for copy on write will ruin its PBVH.

Since sculpting is an "original" domain, we only need to
update draw batches to update.

3 years agoUI: show modal operator keymaps in the status bar
Campbell Barton [Thu, 5 Jul 2018 10:09:17 +0000 (12:09 +0200)]
UI: show modal operator keymaps in the status bar

This is work in progress, transform keymap especially
needs some filtering on it's keymap.

3 years agoFix build w/o fluidsim
Campbell Barton [Thu, 5 Jul 2018 10:26:10 +0000 (12:26 +0200)]
Fix build w/o fluidsim

3 years agoFluidsim: fixed memory leak
Sybren A. Stüvel [Thu, 5 Jul 2018 10:21:33 +0000 (12:21 +0200)]
Fluidsim: fixed memory leak

3 years agoFluidsim: ported from DerivedMesh to Mesh
Sybren A. Stüvel [Thu, 5 Jul 2018 09:08:05 +0000 (11:08 +0200)]
Fluidsim: ported from DerivedMesh to Mesh

Also removed a bunch of unnecessary #include statements from fluidsim.c.

3 years agoPorted CDDM_apply_vert_normals from DM to Mesh
Sybren A. Stüvel [Thu, 5 Jul 2018 08:12:36 +0000 (10:12 +0200)]
Ported CDDM_apply_vert_normals from DM to Mesh

3 years agoRevert "Keymap: use Shift-Space for auto-complete"
Campbell Barton [Thu, 5 Jul 2018 06:27:42 +0000 (08:27 +0200)]
Revert "Keymap: use Shift-Space for auto-complete"

This reverts commit 30680b8d51caada48a4f773caee8b934f06e3f30.

Conflicts with typing in capitals.

3 years agoKeymap: use Shift-Space for auto-complete
Campbell Barton [Thu, 5 Jul 2018 06:16:22 +0000 (08:16 +0200)]
Keymap: use Shift-Space for auto-complete

Resolve conflict w/ maximized area.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 5 Jul 2018 05:54:47 +0000 (07:54 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: pep8
Campbell Barton [Thu, 5 Jul 2018 05:53:21 +0000 (07:53 +0200)]
Cleanup: pep8

3 years agoFix issue with closing child windows in recent changes.
Brecht Van Lommel [Wed, 4 Jul 2018 17:11:45 +0000 (19:11 +0200)]
Fix issue with closing child windows in recent changes.

3 years agoWorkspaces: change behavior when window layout for workspace is missing.
Brecht Van Lommel [Wed, 4 Jul 2018 16:22:29 +0000 (18:22 +0200)]
Workspaces: change behavior when window layout for workspace is missing.

When switching the workspace in a window that does not yet have a layout
for the newly active workspace, we now duplicate the layout from the
previously active workspace. Previously it duplicated the layout from
the first window in the newly active workspace.

3 years agoWorkspaces: store view layer per main window, instead of per workspace.
Brecht Van Lommel [Wed, 4 Jul 2018 11:00:46 +0000 (13:00 +0200)]
Workspaces: store view layer per main window, instead of per workspace.

It was a bit odd that the scene was stored per window but not the view
layer. The reasoning was that you would use different view layers for
different tasks. This is still possible, but it's more predictable to
switch them both explicitly, and with child window support manually
syncing the view layers between multiple windows is no longer needed
as often.

3 years agoWorkspaces: add main and child windows.
Brecht Van Lommel [Tue, 3 Jul 2018 13:34:26 +0000 (15:34 +0200)]
Workspaces: add main and child windows.

* Main windows show a topbar and statusbar, and select a workspace and
  scene. They are created with Window > New Main Window.

* Child windows do not show a topbar or statusbar. These follow the
  workspace and scene of their parent main window. Created with Window >
  New Window or View > Duplicate Area into New Window.

* The purpose of this change is to support multi monitor setups where you
  just want to put more editors on the other monitors. Without multiple
  topbars and statusbars, working within a single workspace and scene.
  Creating multiple main windows is intended to be a concious choice to
  do different tasks in different workspaces and scenes.

* Note these changes do not currently affect how the operating system
  treats the windows.

* When changing the workspace, the layout in all child windows changes.
  This makes sense if we consider child windows to be just a way to
  extend the main window across more monitors. In some case it may be
  useful to keep the same layout though, we can add an option for this
  depending on user feedback.

3 years agoCleanup: pass window to listeners, instead of screen + workspace.
Brecht Van Lommel [Wed, 4 Jul 2018 13:14:57 +0000 (15:14 +0200)]
Cleanup: pass window to listeners, instead of screen + workspace.

3 years agoKeymap: movie-clip center frame, match graph view
Campbell Barton [Wed, 4 Jul 2018 16:37:27 +0000 (18:37 +0200)]
Keymap: movie-clip center frame, match graph view

3 years agoKeymap: proportional edit keys
Campbell Barton [Wed, 4 Jul 2018 16:04:45 +0000 (18:04 +0200)]
Keymap: proportional edit keys

3 years agoFix Pose Mode selection overlay breaking other overlay.
Clément Foucault [Wed, 4 Jul 2018 16:07:34 +0000 (18:07 +0200)]
Fix Pose Mode selection overlay breaking other overlay.

Fix T55758

3 years agoUI: Node Link Menu to use same colors as regular menus
Pablo Vazquez [Wed, 4 Jul 2018 16:00:03 +0000 (18:00 +0200)]
UI: Node Link Menu to use same colors as regular menus

Node link menus (like shader settings in Material properties) used a slightly
brighter variant of the menu widget. Making it hard to style and match the rest.

Make it use widget_menuiconbut, which is just the menu widget with an icon and no arrows.

Thanks Brecht for the help!

3 years agoKemap: mirror, flip changes from T55162
Campbell Barton [Wed, 4 Jul 2018 15:48:09 +0000 (17:48 +0200)]
Kemap: mirror, flip changes from T55162

3 years agoKeymap: outliner changes from T55162
Campbell Barton [Wed, 4 Jul 2018 15:25:58 +0000 (17:25 +0200)]
Keymap: outliner changes from T55162

3 years agoUI: Default theme tweaks for Node editor
Pablo Vazquez [Wed, 4 Jul 2018 15:24:10 +0000 (17:24 +0200)]
UI: Default theme tweaks for Node editor

3 years agoKeymap: Resolve inconsistencies, T55162
Campbell Barton [Wed, 4 Jul 2018 15:10:41 +0000 (17:10 +0200)]
Keymap: Resolve inconsistencies, T55162

3 years agoDepsgraph: Don't force copy-on-write when shading changes
Sergey Sharybin [Wed, 4 Jul 2018 14:43:00 +0000 (16:43 +0200)]
Depsgraph: Don't force copy-on-write when shading changes

Shading is supposed to be dealing with draw manager batch cached
thingamajigs, but was causing full object update.

This was causing both flickering in sculpt mode (PBVH was removed,
why it was SOMETIMES restored before draw is a mystery), and was
also causing things to be really slow.

3 years agoDepsgraph: Log entry operations which are directly modified and tagged
Sergey Sharybin [Wed, 4 Jul 2018 14:41:37 +0000 (16:41 +0200)]
Depsgraph: Log entry operations which are directly modified and tagged

3 years agoUI: Default Theme: editor tabs more prominent
Pablo Vazquez [Wed, 4 Jul 2018 14:33:39 +0000 (16:33 +0200)]
UI: Default Theme: editor tabs more prominent

Workaround for now until all editors tabs share the dedicated Tab theme
settings under User Interface (which the top bar is currently using).

Thanks SimonStorl-Schulke from devtalk forum for feedback.

3 years agoWeight Paint: draw from original mesh
Campbell Barton [Wed, 4 Jul 2018 14:27:23 +0000 (16:27 +0200)]
Weight Paint: draw from original mesh

Selection changes weren't showing.

3 years agoEevee: Fix incorrect padding in octahedral mapping
Clément Foucault [Wed, 4 Jul 2018 13:40:56 +0000 (15:40 +0200)]
Eevee: Fix incorrect padding in octahedral mapping

This fixes T54439

3 years agoUI: Default theme tweaks to animation channels
Pablo Vazquez [Wed, 4 Jul 2018 13:39:26 +0000 (15:39 +0200)]
UI: Default theme tweaks to animation channels

3 years agoUI: Fix channels using editor header color as background
Pablo Vazquez [Wed, 4 Jul 2018 13:37:36 +0000 (15:37 +0200)]
UI: Fix channels using editor header color as background

Channels were using TH_HEADER which is usually gray and unrelated to channels list.
Use sub channel color instead (light blue in the default theme).

3 years agoCleanup: remove unused zbuf member
Campbell Barton [Wed, 4 Jul 2018 13:35:33 +0000 (15:35 +0200)]
Cleanup: remove unused zbuf member

3 years agoAdded copyData flag to ocean modifier
Sybren A. Stüvel [Wed, 4 Jul 2018 13:15:08 +0000 (15:15 +0200)]
Added copyData flag to ocean modifier

3 years agoFluid Sim: Removed unused PointCache pointer
Sybren A. Stüvel [Wed, 4 Jul 2018 13:10:45 +0000 (15:10 +0200)]
Fluid Sim: Removed unused PointCache pointer

The only uses were setting it to NULL and asserting it is NULL.

3 years agoCloth simulation: share point cache between CoW copies of objects
Sybren A. Stüvel [Wed, 4 Jul 2018 10:46:03 +0000 (12:46 +0200)]
Cloth simulation: share point cache between CoW copies of objects

3 years agoPass copy flag to modifier copyData function
Sybren A. Stüvel [Wed, 4 Jul 2018 10:45:30 +0000 (12:45 +0200)]
Pass copy flag to modifier copyData function

This will allow modifiers to decide whether to copy or share caches between
ModifierData copies.

3 years agoCycles Denoising: Pass tile buffers to every OpenCL kernel to conform to standard...
Lukas Stockner [Wed, 4 Jul 2018 12:02:38 +0000 (14:02 +0200)]
Cycles Denoising: Pass tile buffers to every OpenCL kernel to conform to standard and get rid of set_tile_info

3 years agoCycles Denoising: Correctly handle target buffer in tile unmapping and move device...
Lukas Stockner [Wed, 4 Jul 2018 11:19:12 +0000 (13:19 +0200)]
Cycles Denoising: Correctly handle target buffer in tile unmapping and move device swap logic to the device_memory

3 years agoCycles Denoising: Cleanup: Rename tiles to tile_info
Lukas Stockner [Wed, 4 Jul 2018 12:26:42 +0000 (14:26 +0200)]
Cycles Denoising: Cleanup: Rename tiles to tile_info

3 years agoCycles Denoising: Refactor denoiser tile handling
Lukas Stockner [Wed, 4 Jul 2018 12:26:15 +0000 (14:26 +0200)]
Cycles Denoising: Refactor denoiser tile handling

This deduplicates the calls for tile (un)mapping and allows to have a target buffer that is different from the source buffer (needed for baking and animation denoising).

3 years agoCycles Denoising: Split main function into logical steps
Lukas Stockner [Wed, 4 Jul 2018 12:22:38 +0000 (14:22 +0200)]
Cycles Denoising: Split main function into logical steps

3 years agoKeymap: resolve group/un-group inconsistencies
Campbell Barton [Wed, 4 Jul 2018 12:00:21 +0000 (14:00 +0200)]
Keymap: resolve group/un-group inconsistencies

Apply grouping changes proposed in T55162

- Ctrl-G to make a group.
- Ctrl-Alt-G to ungroup.

3 years agoFix NLA transform crash
Campbell Barton [Wed, 4 Jul 2018 11:54:22 +0000 (13:54 +0200)]
Fix NLA transform crash

3 years agoKeymap: Add back Ctrl-M for mirror
Campbell Barton [Wed, 4 Jul 2018 11:46:07 +0000 (13:46 +0200)]
Keymap: Add back Ctrl-M for mirror

3 years agoKeymap: Remove pie menu from tab-key
Campbell Barton [Wed, 4 Jul 2018 10:55:02 +0000 (12:55 +0200)]
Keymap: Remove pie menu from tab-key

Based on discussion with @eyecandy & @venomgfx,
we agreed that Tab drag/click, is too easy to accidentally press
while moving the cursor.
It's also not typical to activate the operator on release which
introduces a small lag switching edit-mode.

This is a shame since in some ways its a nice way to re-use the key,
overall it just feels a little too unpredictable for such an important

This commit makes the following changes.

- Tab: toggles edit-mode.
- Ctrl-Tab: opens pie menu.
- Ctrl-AccentGrave: toggles manipulator.

Note, while AccentGrave isn't always available
this shortcut is not essential.

3 years agoUI: Default theme use color for value slider item
Pablo Vazquez [Wed, 4 Jul 2018 10:53:58 +0000 (12:53 +0200)]
UI: Default theme use color for value slider item

Matches Flatty Light

3 years agoUI: Fix node triangle always using selected color
Pablo Vazquez [Wed, 4 Jul 2018 10:53:33 +0000 (12:53 +0200)]
UI: Fix node triangle always using selected color

Now uses the text color instead.

Thanks to devtalk community for spotting this.

3 years agoKeymap: use add key instead of verify
Campbell Barton [Wed, 4 Jul 2018 10:48:50 +0000 (12:48 +0200)]
Keymap: use add key instead of verify

Caused Xkey to be added but not delete key.

3 years agoCMake: Add missing header file to list of sources
Sergey Sharybin [Wed, 4 Jul 2018 10:09:35 +0000 (12:09 +0200)]
CMake: Add missing header file to list of sources

3 years agoSoftBody: share point cache between CoW copies
Sybren A. Stüvel [Wed, 4 Jul 2018 09:22:15 +0000 (11:22 +0200)]
SoftBody: share point cache between CoW copies

This is the same approach as 98a0bcd4252e952fa5438e9d1b69b0204f8a8746
applied to soft body simulation. In short, CoW copies share the point cache,
and treat it as read-only except when the depsgraph is active.

3 years agoSoftBody: refactored sbFree()
Sybren A. Stüvel [Wed, 4 Jul 2018 09:21:31 +0000 (11:21 +0200)]
SoftBody: refactored sbFree()

This prevents having to wrap each call to sbFree() in an if(ob->soft)
condition and assign ob->soft = NULL after calling.

Furthermore, passing `Object *` allows us to change freeing behaviour
depending on whether the object is an evaluated copy or an original (not
done in this commit yet).

3 years agoSoftbody: unified copy functions
Sybren A. Stüvel [Tue, 3 Jul 2018 16:20:44 +0000 (18:20 +0200)]
Softbody: unified copy functions

This unifies two almost-identical functions at the expense of having to
add one single 'flag' value at one call.

This makes copy_softbody() aware of the source/dest objects, allowing it
to make a distinction between doing depsgraph evaluation copies and real
object copies. This will be used in an upcoming commit to ensure that
the pointcache is shared between CoW copies, similar to the current
approach for rigidbody simulation.

3 years agoFix T55750: Crash on moving sequencer strip
Campbell Barton [Wed, 4 Jul 2018 08:31:31 +0000 (10:31 +0200)]
Fix T55750: Crash on moving sequencer strip

Custom-data free callback was freeing transform data too.

3 years agoUI: Adjust width of Pivot, Shading and Transform Orientations popovers
Pablo Vazquez [Wed, 4 Jul 2018 00:23:52 +0000 (02:23 +0200)]
UI: Adjust width of Pivot, Shading and Transform Orientations popovers

3 years agoCleanup: pep8
Campbell Barton [Tue, 3 Jul 2018 20:35:37 +0000 (22:35 +0200)]
Cleanup: pep8

3 years agoUI: adjust popover width for overlays & toolbar
Campbell Barton [Tue, 3 Jul 2018 17:55:51 +0000 (19:55 +0200)]
UI: adjust popover width for overlays & toolbar

3 years agoUI: optional ui-unit-width for popovers
Campbell Barton [Tue, 3 Jul 2018 17:50:00 +0000 (19:50 +0200)]
UI: optional ui-unit-width for popovers

Some popovers don't fit well with the default width,
allow panels to adjust as needed.

3 years agoT55441: Pop-over large arrow offset when wide
Campbell Barton [Tue, 3 Jul 2018 17:38:27 +0000 (19:38 +0200)]
T55441: Pop-over large arrow offset when wide

3 years agoView3D: Remove v3d->zbuf
Clément Foucault [Tue, 3 Jul 2018 17:22:00 +0000 (19:22 +0200)]
View3D: Remove v3d->zbuf

This is because depth test is set before drawing anything now. There is no
case where we want to draw without depth test that is not selection and
this case is not handle by v3d->zbuf anymore.

UI assume depth test is off by default. The DRWManager assume it's on.

This should fix T55623.

3 years agoUI: add tool properties contexts
Campbell Barton [Tue, 3 Jul 2018 16:41:06 +0000 (18:41 +0200)]
UI: add tool properties contexts

Currently unused, create for add-ons to populate.

3 years agoTool System: add operator for introspection
Campbell Barton [Tue, 3 Jul 2018 16:33:52 +0000 (18:33 +0200)]
Tool System: add operator for introspection

In some cases we want associate use an operator for a tool
for introspection, so we can for eg, automatically
use the same binding for in the popup toolbar.

Space-G/R/S for transform now work as accelerator keys again.

Also Space-E for extrude.

3 years agoFix tool-system error running in background mode
Campbell Barton [Tue, 3 Jul 2018 16:02:16 +0000 (18:02 +0200)]
Fix tool-system error running in background mode

3 years agoTheme: use alpha for lamp wire
Campbell Barton [Tue, 3 Jul 2018 15:46:23 +0000 (17:46 +0200)]
Theme: use alpha for lamp wire

Needed for showing helper line to plane.

3 years agoFix T55709: Pose Library - Add New Pose crashes
Sybren A. Stüvel [Tue, 3 Jul 2018 14:50:12 +0000 (16:50 +0200)]
Fix T55709: Pose Library - Add New Pose crashes

3 years agoUI: Default theme, more tweaks
Pablo Vazquez [Tue, 3 Jul 2018 14:43:00 +0000 (16:43 +0200)]
UI: Default theme, more tweaks

Also make the selected list items not as bright, boxes darker and
adjustments for contrast and accessibility.

3 years agoKeymap: Use easily accessible key for animation
Campbell Barton [Tue, 3 Jul 2018 14:37:15 +0000 (16:37 +0200)]
Keymap: Use easily accessible key for animation

Based on animator feedback, this key is accessed many times a day.
Swap Shift-Space /w Ctrl-Space (full-screen area).

3 years agoKeymap: update 2.7x map
Campbell Barton [Tue, 3 Jul 2018 14:34:12 +0000 (16:34 +0200)]
Keymap: update 2.7x map

3 years agoKeymap: Select/De-Select support for anim-editors
Campbell Barton [Tue, 3 Jul 2018 13:44:56 +0000 (15:44 +0200)]
Keymap: Select/De-Select support for anim-editors

Also update menu items, adding select/de-select.

3 years agoCleanup: Remove unused variable
Clément Foucault [Tue, 3 Jul 2018 13:39:16 +0000 (15:39 +0200)]
Cleanup: Remove unused variable

3 years agoEdit Mesh Overlay: Fix floating point instability artifacts
Clément Foucault [Tue, 3 Jul 2018 13:38:21 +0000 (15:38 +0200)]
Edit Mesh Overlay: Fix floating point instability artifacts

This was visible when vertices were very close to the near clip plane.