2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sat, 24 Nov 2018 21:06:22 +0000 (08:06 +1100)]
Merge branch 'master' into blender2.8

2 years agoCleanup: remove unused file
Campbell Barton [Sat, 24 Nov 2018 21:05:42 +0000 (08:05 +1100)]
Cleanup: remove unused file

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sat, 24 Nov 2018 21:01:30 +0000 (08:01 +1100)]
Merge branch 'master' into blender2.8

2 years agoCleanup: trailing space
Campbell Barton [Sat, 24 Nov 2018 21:01:14 +0000 (08:01 +1100)]
Cleanup: trailing space

2 years agoFix T56374, T57066, T58037: crash on startup on macOS when using translation.
Brecht Van Lommel [Sat, 24 Nov 2018 18:21:35 +0000 (19:21 +0100)]
Fix T56374, T57066, T58037: crash on startup on macOS when using translation.

2 years agoFix random color drawing having similar colors for similar names.
Brecht Van Lommel [Sat, 24 Nov 2018 17:37:21 +0000 (18:37 +0100)]
Fix random color drawing having similar colors for similar names.

2 years agoFix T58022: Changing workspace may change layout of User Pref window
Julian Eisel [Sat, 24 Nov 2018 18:20:31 +0000 (19:20 +0100)]
Fix T58022: Changing workspace may change layout of User Pref window

Logic to update child windows on workspace changes should simply ignore
temporary child windows. Users opened those for a specific purpose (i.e. edit
user preferences or show render result). Blender should not come in and
repurpose it.

2 years agoFix penpressure for tablets that use libinput on linux
Jens Verwiebe [Sat, 24 Nov 2018 17:23:57 +0000 (18:23 +0100)]
Fix penpressure for tablets that use libinput on linux

2 years agorefactor: Collada reorganize class constructors
Gaia Clary [Sat, 24 Nov 2018 13:24:36 +0000 (14:24 +0100)]
refactor: Collada reorganize class constructors

- Class constructors without body (only attribute initialisations)
  can safely be kept in the class header files

- Constructor variables should be initialized in the order of their
  definition in the header files

This change is also aimed to remove a couple of
build warnings from the linux builds.

2 years agoKeymap: preference for extended shading menu
Campbell Barton [Sat, 24 Nov 2018 00:24:34 +0000 (11:24 +1100)]
Keymap: preference for extended shading menu

This brings back the option to have x-ray & overlay toggle.

2 years agoDepsgraph: add a new operation node for computing B-Bone segments.
Alexander Gavrilov [Thu, 22 Nov 2018 10:38:03 +0000 (13:38 +0300)]
Depsgraph: add a new operation node for computing B-Bone segments.

Computing the shape of a B-Bone is a quite expensive operation, and
there are multiple constraints that can access this information in
a variety of useful ways. This means computing the shape once per
bone and saving it is good for performance.

Since the shape may depend on the position of up to two other bones,
often in a "cyclic" manner, this computation has to be a separate
node with its own dependencies.

Reviewers: sergey

Differential Revision:

2 years agofix: Collada: used wrong Enumeration type for comparison
Gaia Clary [Fri, 23 Nov 2018 18:23:55 +0000 (19:23 +0100)]
fix: Collada: used wrong Enumeration type for comparison

2 years agofix: collada: must use case sensitive filename in include
Gaia Clary [Fri, 23 Nov 2018 18:23:16 +0000 (19:23 +0100)]
fix: collada: must use case sensitive filename in include

2 years agofix: Collada: use reference to BezTriple instead of copy
Gaia Clary [Fri, 23 Nov 2018 18:21:29 +0000 (19:21 +0100)]
fix: Collada: use reference to BezTriple instead of copy

2 years agofix: compiler errors on mac_x86_64_10_9
Gaia Clary [Fri, 23 Nov 2018 17:38:07 +0000 (18:38 +0100)]
fix: compiler errors on mac_x86_64_10_9

2 years agocleanup: Collada: remove unused variables
Gaia Clary [Fri, 23 Nov 2018 17:36:52 +0000 (18:36 +0100)]
cleanup: Collada: remove unused variables

2 years agoPass viewport to BASE_ related tests, for viewport view/select restrictions
Dalai Felinto [Fri, 23 Nov 2018 16:41:38 +0000 (14:41 -0200)]
Pass viewport to BASE_ related tests, for viewport view/select restrictions

Note: functions like select all are still not respecting that.
I will fix this as part of the local view commit though.

2 years agoDRW: Make non Mesh object wire show in edit mode
Clément Foucault [Fri, 23 Nov 2018 17:03:08 +0000 (18:03 +0100)]
DRW: Make non Mesh object wire show in edit mode

2 years agoDRW: Support Wireframe for metaball objects
Clément Foucault [Fri, 23 Nov 2018 17:02:34 +0000 (18:02 +0100)]
DRW: Support Wireframe for metaball objects

2 years agoGP: Avoid crash when adding new layer
Antonioya [Fri, 23 Nov 2018 16:34:27 +0000 (17:34 +0100)]
GP: Avoid crash when adding new layer

2 years agoIcons: add Select tool icon.
Brecht Van Lommel [Fri, 23 Nov 2018 15:21:44 +0000 (16:21 +0100)]
Icons: add Select tool icon.

2 years agoKeymaps: fix broken LMB select and transform tweak in 2D editors.
Brecht Van Lommel [Fri, 23 Nov 2018 14:52:10 +0000 (15:52 +0100)]
Keymaps: fix broken LMB select and transform tweak in 2D editors.

2 years agoPartial rewrite of the Collada Module for Blender 2.8
Gaia Clary [Fri, 23 Nov 2018 14:57:45 +0000 (15:57 +0100)]
Partial rewrite of the Collada Module for Blender 2.8

Most important changes are in the Animation exporter and Animation Importer.
There is still some cleaning up to be done. But the Exporter/Importer basically
work within Blender 2.8

Some details:

User Interface:
The interface has been reorganized to look more like the FBX interface.

New options in user interface:

* keep_keyframes:
  When sampling the distance between 2 keyframes is defined by
  the sampling rate. Furthermore the keyframes defined in the
  FCurves are not exported. However when this option is enabled
  then also the defined keyframes will be added to the exported fcurves

* keep_smooth_curves:
  When sampling we do not use FCurves. So we also have no Curve handles
  for smooth exporting. However when this option is enabled, Blender
  does its best to recreate the handles for export. This is a very
  experimental feature and it is know to break when:

  - the exported animated objects have parent inverse matrices
    different from the unit matrix
  - The exported objects have negative scaling

  There may be many other situations when this feature breaks.
  This needs to be further tested. It may be removed later or replaced
  by something less wonky.

is a new class that contains the bridge to Blender. It contains
pointers to the current export/import context plus derived values
of Depsgraph, Scene, Main

I reorganized the output on the Blender Console to become more
informative and more readable

Preservation of Item names:
name attributes are now encoded with XML entities. This makes
sure that i can export/import names exactly defined in the tool.
This affects material names, bone names and object names.

Hierarchy export:
* Object and Bone Hierarchies are now exported correctly
  by taking the Blender parent/child hierarchy into account
* Export also not selected intermediate objects

  When we export an Object Hierarchy, then we must export
  all elements of the hierarchy to maintain the transforms. This
  is especially important when exporting animated objects, because the
  animation curves are exported as relative curves based on the
  parent-child hierarchy. If an intermediate animated object is missing
  then the exported animation breaks.

  If the "Selected" Optioon is enabled, then take care
  to also export all objects which are not selected and hidden,
  but which are parents of selected objects.

Node Based Material Importer (wip):
Added basic support for Materials with diffuse color and
diffuse textures. More properties (opacity, emission) need
changes in the used shader.
Note: Materials are all constructed by using the principled BSDF shader.

Animation Exporter:
* Massive optimization of the Animation Bake tool (Animation Sampler).
  Instead of sampling each fcurve separately, i now sample all
  exported fcurves simultaneously. So i avoid many (many!)
  scene updates during animation export.
* Add support for Continuous Acceleration (Fcurve handles)
  This allows us to create smoother FCurves during importing Collada
  Animation curves. Possibly this should become an option ionstead of
  a fixed import feature.
* Add support for sampling curves (to bake animations)
* The animation sampler now can be used for any animation curve.
  Before the sampler only looked at curves which are supported by
  Standard Collada 1.4. However the Collada exporter currently
  ignores all animation curves which are not covered by the 1.4.1
  Collada Standards. There is still some room for improvements
  here (work in progres)

  Known issues:

    * Some exports do currently not work reliably, among those
      are the camera animations, material animations and light animations
      those animations will be added back next (work in progres)

    * Exporting animation curves with keyframes (and tangents)
      sometimes results in odd curves (when parent inverse matrix is involved)
      This needs to be checked in more depth (probably it can not be solved).

    * Export of "all animations in scene" is disabled because the
      Collada Importer can not handle this reliably at the
      moment (work in progres).

* Support for Animation Clip export
  Added one extra level to the exported animations
  such that now all scene animations are enclosed:

  <Animation name="id_name(ob)_Action">

Animation Importer:
* Import of animations for objects with multiple materials
  When importing multiple materials for one object,
  the imported material animation curves have all been
  assigned to the first material in the object.

Error handling (wip):
The Importer was a bit confused as it sometimes ignored fatal
parsing errors and continued to import. I did my best to
unconfuse it, but i believe that this needs to be tested more.


update : move generation of effect id names into own function
update : adjust importer/exporter for no longer supported HEMI lights
cleanup: Removed no lopnger existing attribute from the exporter presets
cleanup: Removed not needed Context attribute from DocumentExporter
fix    : Avoid duplicate deletion of temporary items
cleanup: fixed indentation and white space issues
update : Make BCAnimation class more self contained
cleanup: Renamed classes, updated comments for better reading
cleanup: Moved static class functions to collada_utils
cleanup: Moved typedefs to more intuitive locations
cleanup: indentation and class method declarations
cleanup: Removed no longer needed methods
update : Moved Classes into separate files
cleanup: Added comments
cleanup: take care of name conventions
...    : many more small changes, not helpful to list them all

2 years agoFix T57996: Crash - delete node with a driven parameter
Sergey Sharybin [Fri, 23 Nov 2018 16:02:55 +0000 (17:02 +0100)]
Fix T57996: Crash - delete node with a driven parameter

2 years agoTag relations for update when clip's animation changes
Sergey Sharybin [Fri, 23 Nov 2018 15:46:19 +0000 (16:46 +0100)]
Tag relations for update when clip's animation changes

2 years agoReturn truth when animation fix changed animation
Sergey Sharybin [Fri, 23 Nov 2018 15:45:09 +0000 (16:45 +0100)]
Return truth when animation fix changed animation

This can be used to inform higher level modules that animation
is changed and that dependency graph likely requires relations
update now.

2 years agoDRW: Support Wireframe for cruve/surface/text objects
Clément Foucault [Fri, 23 Nov 2018 15:44:16 +0000 (16:44 +0100)]
DRW: Support Wireframe for cruve/surface/text objects

2 years agoAdd missing COW updates when selection changes in paint modes.
Alexander Gavrilov [Fri, 23 Nov 2018 15:28:36 +0000 (18:28 +0300)]
Add missing COW updates when selection changes in paint modes.

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Fri, 23 Nov 2018 13:41:21 +0000 (14:41 +0100)]
Merge branch 'master' into blender2.8

2 years agoUse default movie cache size of 4GiB
Sergey Sharybin [Fri, 23 Nov 2018 11:26:49 +0000 (12:26 +0100)]
Use default movie cache size of 4GiB

2 years agoCycles: Fixed a warning.
Stefan Werner [Fri, 23 Nov 2018 12:47:25 +0000 (13:47 +0100)]
Cycles: Fixed a warning.

2 years agoCycles: Improved robustness of hair motion blur.
Stefan Werner [Fri, 23 Nov 2018 12:21:55 +0000 (13:21 +0100)]
Cycles: Improved robustness of hair motion blur.

In some instances, the number of control vertices of a hair could change mid-frame.
Cycles would then be unable to calculate proper motion blur for those hairs. This adds
interpolated CVs to fill in for the missing data. While this will not necessarily result in
a fully accurate reconstruction of the guide hair, it preserves motion blur instead of disabling it.

Reviewers: #cycles, sergey

Reviewed By: #cycles, sergey

Subscribers: sergey, brecht, #cycles

Tags: #cycles

Differential Revision:

2 years agoUI: swap wireframe/solid order in pie to match order in header.
Brecht Van Lommel [Fri, 23 Nov 2018 11:37:43 +0000 (12:37 +0100)]
UI: swap wireframe/solid order in pie to match order in header.

2 years agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Fri, 23 Nov 2018 11:11:44 +0000 (12:11 +0100)]
Merge branch 'master' into blender2.8

2 years agoPython API: restore variables, some scripts use it.
Brecht Van Lommel [Fri, 23 Nov 2018 10:44:57 +0000 (11:44 +0100)]
Python API: restore variables, some scripts use it.

2 years agoFix T57616: Deleting particle system instance object leads to crash
Sergey Sharybin [Fri, 23 Nov 2018 11:00:34 +0000 (12:00 +0100)]
Fix T57616: Deleting particle system instance object leads to crash

Explicitly tag copy-on-write form library remap. Previously, this
tag was used implicitly via geometry/transform tagging, which worked
ok for objects. For non-objects we do need to ensure all copies has
correct pointer and the only way to do so is to pass tag explicitly.

There is probably more places in the library remap where this is
needed, but not being familiar with the code makes it difficult to
spot where possible tags are missing.

2 years agoPython API:
Jacques Lucke [Fri, 23 Nov 2018 10:51:42 +0000 (11:51 +0100)]
Python API:

Reviewers: brecht

Differential Revision:

2 years agoFix T57998: crash at start with jemalloc package on some Linux distributions.
Brecht Van Lommel [Fri, 23 Nov 2018 10:24:04 +0000 (11:24 +0100)]
Fix T57998: crash at start with jemalloc package on some Linux distributions.

The jemalloc library must be ahead of pthread in linking order, so jemalloc
can find the pthread symbols for its background thread.

2 years agoUI: initialize drag-lock x/y axis from region type
Campbell Barton [Fri, 23 Nov 2018 08:12:34 +0000 (19:12 +1100)]
UI: initialize drag-lock x/y axis from region type

When dragging in a vertical or horizontal region,
there is no need to detect the drag axis.

Gives minor usability improvement for dragging over vertical tabs.

2 years agoCorrect missing NULL check in recent changes
Campbell Barton [Fri, 23 Nov 2018 07:12:28 +0000 (18:12 +1100)]
Correct missing NULL check in recent changes

2 years agoFix uv lasso/box multi-object select logic
Campbell Barton [Fri, 23 Nov 2018 07:06:50 +0000 (18:06 +1100)]
Fix uv lasso/box multi-object select logic

Was de-selecting all UV's on each iteration.

2 years agoTool System: uv lasso/box select options
Campbell Barton [Fri, 23 Nov 2018 06:52:28 +0000 (17:52 +1100)]
Tool System: uv lasso/box select options

These tools now support (new, add, subtract),
(xor, and) could be supported but are complicated by UV's sticky
selection modes.

2 years agoError in last commi
Campbell Barton [Fri, 23 Nov 2018 05:28:50 +0000 (16:28 +1100)]
Error in last commi

2 years agoFix wire-toggle restoring previous shading mode
Campbell Barton [Fri, 23 Nov 2018 05:25:00 +0000 (16:25 +1100)]
Fix wire-toggle restoring previous shading mode

2 years agoKeymap: remove redundant keys from toolbar popup
Campbell Barton [Fri, 23 Nov 2018 04:41:35 +0000 (15:41 +1100)]
Keymap: remove redundant keys from toolbar popup

Adjust the keymap so tools that don't exist wont use keys
from the default keymap.

2 years agoFix toolbar keymap accumulating items
Campbell Barton [Fri, 23 Nov 2018 04:16:45 +0000 (15:16 +1100)]
Fix toolbar keymap accumulating items

Create a temporary keymap with items from the original.

2 years agoKeymap: add Keymap.keymap_items.new_from_item
Campbell Barton [Fri, 23 Nov 2018 04:16:13 +0000 (15:16 +1100)]
Keymap: add Keymap.keymap_items.new_from_item

Needed to copy keymap items from other keymaps.

2 years agoCleanup: single quote enums
Campbell Barton [Fri, 23 Nov 2018 02:55:33 +0000 (13:55 +1100)]
Cleanup: single quote enums

2 years agoCleanup: rename bone-select to xray
Campbell Barton [Fri, 23 Nov 2018 02:46:40 +0000 (13:46 +1100)]
Cleanup: rename bone-select to xray

This shows bones in font and uses the xray toggle binding.
Also 'bone select' isn't very meaningful on it's own.

2 years agoUI: Don't promt when deleting via Object Context Menu.
Pablo Vazquez [Fri, 23 Nov 2018 02:47:02 +0000 (03:47 +0100)]
UI: Don't promt when deleting via Object Context Menu.

Suggested in the UI paper-cut thread at by ThinkingPolygons

2 years agoUI: Icons in context menu for copy/paste
Pablo Vazquez [Fri, 23 Nov 2018 02:44:27 +0000 (03:44 +0100)]
UI: Icons in context menu for copy/paste

2 years agoPose: make pose-bone xray usable in wpaint mode
Campbell Barton [Fri, 23 Nov 2018 02:17:10 +0000 (13:17 +1100)]
Pose: make pose-bone xray usable in wpaint mode

Update UI, draw-manager and operator to support with pose-bone-xray
when in weight paint mode.

2 years agoKeymap: remove 'Z' key to toggle bone-select
Campbell Barton [Fri, 23 Nov 2018 01:24:14 +0000 (12:24 +1100)]
Keymap: remove 'Z' key to toggle bone-select

Alt-Z already does this.

2 years agoUI: allow inaccurate swipe motion to switch tabs
Campbell Barton [Fri, 23 Nov 2018 01:11:18 +0000 (12:11 +1100)]
UI: allow inaccurate swipe motion to switch tabs

Removes the need to keep your cursor over tabs while dragging.

2 years agoKeymap: restore grease pencil keys for default map
Campbell Barton [Fri, 23 Nov 2018 00:44:31 +0000 (11:44 +1100)]
Keymap: restore grease pencil keys for default map

Pie menu for draw modes is now on the 'Z' key.

2 years agoKeymap: adjustments to shading keys
Campbell Barton [Fri, 23 Nov 2018 00:34:58 +0000 (11:34 +1100)]
Keymap: adjustments to shading keys

- Z shows pie menu (removed wire/xray toggles).
- Alt-Z toggles x-ray.
- Shift-Z toggles wireframe.
- Shift-Alt-Z toggles overlays.

Note that toggle overlays had no binding for 2.7x,
this is likely not a heavily used option and could even be left out.

2 years agoFix for weight paint object occluding pose bones
Campbell Barton [Thu, 22 Nov 2018 23:37:53 +0000 (10:37 +1100)]
Fix for weight paint object occluding pose bones

This makes it so weight paint + pose mode can't switch to other
weight paint objects.

2 years agoPose: support wpaint+pose w/ object-lock enabled
Campbell Barton [Thu, 22 Nov 2018 23:16:08 +0000 (10:16 +1100)]
Pose: support wpaint+pose w/ object-lock enabled

Mode locking made it nearly impossible to enter wpaint + object mode.

Now enter pose mode when entering wpaint mode
when the pose object is selected.

2 years agoFix bone selection w/ mixed wpaint & pose mode
Campbell Barton [Thu, 22 Nov 2018 23:00:28 +0000 (10:00 +1100)]
Fix bone selection w/ mixed wpaint & pose mode

2 years agoCleanup: newlines in error prints
Campbell Barton [Thu, 22 Nov 2018 20:27:23 +0000 (07:27 +1100)]
Cleanup: newlines in error prints

2 years agoUI: fix wrong icons after recent update.
Brecht Van Lommel [Thu, 22 Nov 2018 20:18:16 +0000 (21:18 +0100)]
UI: fix wrong icons after recent update.

This cleans up old icon .data files that were still hanging around,
but not in the SVG anymore.

2 years agoUI: activate tabs immediately on press, and drag to quickly cycle through.
Brecht Van Lommel [Thu, 22 Nov 2018 20:10:12 +0000 (21:10 +0100)]
UI: activate tabs immediately on press, and drag to quickly cycle through.

2 years agoFix T55535: N panel in sequencer breaks display of preview.
Brecht Van Lommel [Thu, 22 Nov 2018 19:59:54 +0000 (20:59 +0100)]
Fix T55535: N panel in sequencer breaks display of preview.

This preview region should not have been part of region overlap.

2 years agoUI: Object Context Menu tweaks.
Pablo Vazquez [Thu, 22 Nov 2018 18:02:44 +0000 (19:02 +0100)]
UI: Object Context Menu tweaks.

* Move type-specific options first.
Allows to get quicker access to settings like Shading Smooth/Flat
by pressing W -> S/F, or camera or light settings.

* Lights: Rename Strength to Energy
* Lights: Show Energy when using EEVEE

2 years agoImage Empties: Potential Fix for T57696
Clément Foucault [Thu, 22 Nov 2018 17:22:34 +0000 (18:22 +0100)]
Image Empties: Potential Fix for T57696

So far this makes a new pass for image empties that does not write to the depth buffer.

- Sort empties using `DRW_pass_sort_shgroup_z`.
- Calculate correct bounding boxes.
- fix bounding box memory leak.

Reviewers: fclem

Differential Revision:

2 years agoFix T57980: Assert failure in draw manager when opening file
Clément Foucault [Thu, 22 Nov 2018 15:55:23 +0000 (16:55 +0100)]
Fix T57980: Assert failure in draw manager when opening file

2 years agoCleanup: Use proper module prefix in function names
Sergey Sharybin [Thu, 22 Nov 2018 15:35:12 +0000 (16:35 +0100)]
Cleanup: Use proper module prefix in function names

2 years agoGP: Keep activated the same Brush in toolbar
Antonioya [Thu, 22 Nov 2018 15:26:17 +0000 (16:26 +0100)]
GP: Keep activated the same Brush in toolbar

2 years agoDepsgraph: Ensure solver cleanup order
Sergey Sharybin [Thu, 22 Nov 2018 14:52:17 +0000 (15:52 +0100)]
Depsgraph: Ensure solver cleanup order

Ensure that pose cleanup is never run before all IK solvers are finished.

2 years agoDepsgraph: Cleanup, line wrapping
Sergey Sharybin [Thu, 22 Nov 2018 14:50:42 +0000 (15:50 +0100)]
Depsgraph: Cleanup, line wrapping

2 years agoFix missing newline in error print
Sergey Sharybin [Thu, 22 Nov 2018 14:08:34 +0000 (15:08 +0100)]
Fix missing newline in error print

2 years agoDepsgraph: Cleanup, make it easier to create relations with flags
Sergey Sharybin [Thu, 22 Nov 2018 13:54:08 +0000 (14:54 +0100)]
Depsgraph: Cleanup, make it easier to create relations with flags

2 years agoEevee: Reflection Plane: Small UI fix and invert facing fading
Clément Foucault [Thu, 22 Nov 2018 15:14:56 +0000 (16:14 +0100)]
Eevee: Reflection Plane: Small UI fix and invert facing fading

2 years agoFix T57977: VSE: Markers lines get highlighted when using box select
Clément Foucault [Thu, 22 Nov 2018 15:13:18 +0000 (16:13 +0100)]
Fix T57977: VSE: Markers lines get highlighted when using box select

Was caused by a missing uniform.

2 years agoKeymaps: make click event detection use a larger distance threshold.
Brecht Van Lommel [Thu, 22 Nov 2018 13:28:59 +0000 (14:28 +0100)]
Keymaps: make click event detection use a larger distance threshold.

Previously this was hardcoded to 2 pixels, which is too low for tablets and
not taking into account DPI. Now we set it equal to the tweak threshold, so
you either always do click or drag.

The default distance of 10 pixels may be quite far for something to be
considered a click, and we'll need to see how well it works. But I find this
to help a lot when selecting vertices in quick succession.

Thanks to Julien for spotting this.

2 years agoFix T57578: Vertex Connect crash with less than two verts selected
Philipp Oeser [Thu, 22 Nov 2018 12:28:53 +0000 (13:28 +0100)]
Fix T57578: Vertex Connect crash with less than two verts selected

2 years agoGP: Cleanup old TODO comments
Antonioya [Thu, 22 Nov 2018 09:43:44 +0000 (10:43 +0100)]
GP: Cleanup old TODO comments

These ToDo were ported when 2.7x code was ported to 2.8, but now they are not needed.

2 years agoCleanup: keymap wrapper for tool-setting operator
Campbell Barton [Thu, 22 Nov 2018 05:58:09 +0000 (16:58 +1100)]
Cleanup: keymap wrapper for tool-setting operator

2 years agoKeymap: add popup keymap
Campbell Barton [Thu, 22 Nov 2018 05:52:57 +0000 (16:52 +1100)]
Keymap: add popup keymap

Allow manually mapping keys for the popup toolbar.

Useful for tools that don't have immediate access,
add transform, annotate & measure.

2 years agoCleanup: minor simplification of keyconfig merge
Campbell Barton [Thu, 22 Nov 2018 05:33:11 +0000 (16:33 +1100)]
Cleanup: minor simplification of keyconfig merge

2 years agoCorrect typo
Campbell Barton [Thu, 22 Nov 2018 05:17:09 +0000 (16:17 +1100)]
Correct typo

2 years agoIcons: use newly added icons
William Reynish [Thu, 22 Nov 2018 04:31:19 +0000 (15:31 +1100)]
Icons: use newly added icons

2 years agoIcons: binary data update from SVG
Campbell Barton [Thu, 22 Nov 2018 04:29:26 +0000 (15:29 +1100)]
Icons: binary data update from SVG

2 years agoIcons: updates by jendrzych
Campbell Barton [Thu, 22 Nov 2018 04:26:01 +0000 (15:26 +1100)]
Icons: updates by jendrzych

Changed to correct disclosure triangles everywhere,
added new icon for Output Properties,
added new icons for Image & Empty types in Add menu,
added icons for add-on types, plus other tweaks and adjustments.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 22 Nov 2018 04:16:45 +0000 (15:16 +1100)]
Merge branch 'master' into blender2.8

2 years agoFix T57989: File loaded as startup
Campbell Barton [Thu, 22 Nov 2018 03:57:41 +0000 (14:57 +1100)]
Fix T57989: File loaded as startup

The file contents was used to check if the file was a startup file.

Now pass in an argument from startup loading code instead.

2 years agoUI: disable screen edges for full-screen areas
Campbell Barton [Thu, 22 Nov 2018 01:32:54 +0000 (12:32 +1100)]
UI: disable screen edges for full-screen areas

2 years agoUI: hide shortcut from gizmo tip when none found
Campbell Barton [Thu, 22 Nov 2018 01:18:23 +0000 (12:18 +1100)]
UI: hide shortcut from gizmo tip when none found

2 years agoUI: String tweak for "UnLock" and Un-Mute in VSE
Pablo Vazquez [Thu, 22 Nov 2018 01:02:03 +0000 (02:02 +0100)]
UI: String tweak for "UnLock" and Un-Mute in VSE

2 years agoUI: Fix Lock/Mute menu in VSE
Pablo Vazquez [Thu, 22 Nov 2018 00:59:49 +0000 (01:59 +0100)]
UI: Fix Lock/Mute menu in VSE

Thanks @tintwotin for reporting it!

2 years agoCleanup: utility function to avoid duplicate keys
Campbell Barton [Thu, 22 Nov 2018 00:54:17 +0000 (11:54 +1100)]
Cleanup: utility function to avoid duplicate keys

2 years agoTool System: auto-assign A-Z keys for toolbar popup
Campbell Barton [Thu, 22 Nov 2018 00:34:05 +0000 (11:34 +1100)]
Tool System: auto-assign A-Z keys for toolbar popup

Assign keys based on tool name when they're free, allows:
Space-T for Transform, Space-A for Annotate.

2 years agoFix toolbar popup keymap not allowing 'A' key
Campbell Barton [Thu, 22 Nov 2018 00:33:10 +0000 (11:33 +1100)]
Fix toolbar popup keymap not allowing 'A' key

2 years agoTool System: Updates for keymap stored as string
Campbell Barton [Thu, 22 Nov 2018 00:13:22 +0000 (11:13 +1100)]
Tool System: Updates for keymap stored as string

2 years agoFix factory-settings using stale preferences
Campbell Barton [Wed, 21 Nov 2018 23:51:27 +0000 (10:51 +1100)]
Fix factory-settings using stale preferences

We need to reload defaults on factory startup because the defaults
now have preferences that may have changed.

2 years agoTool System: store keymap name in tool instead of the keymap
Campbell Barton [Wed, 21 Nov 2018 23:23:40 +0000 (10:23 +1100)]
Tool System: store keymap name in tool instead of the keymap

Resetting keymaps caused them to become invalid (crashing on access).

2 years agoKeymap: always show pie menu w/ tab-pie-menu pref
Campbell Barton [Wed, 21 Nov 2018 22:09:42 +0000 (09:09 +1100)]
Keymap: always show pie menu w/ tab-pie-menu pref

Wasn't working well with armatures used ctrl-tab
to switch to pose mode, making tab always switch to pose mode
w/ this preference enabled.

Now always show pie-menu.

2 years agoKeymap: Use Z to toggle wire instead of xray
Campbell Barton [Wed, 21 Nov 2018 22:01:00 +0000 (09:01 +1100)]
Keymap: Use Z to toggle wire instead of xray

This now works like 2.7x more or less exactly,
x-ray is enabled by default for wire so unless users change this,
it will enable x-ray too.

2 years agoKeymap: 3D view pref for tab to show pie menu
Campbell Barton [Wed, 21 Nov 2018 21:12:39 +0000 (08:12 +1100)]
Keymap: 3D view pref for tab to show pie menu

This behaves like the 2.7x pie menu add-on,
for users who prefer single-key access to all modes.

2 years agoUI: Add Image and Clip space panels category.
Bastien Montagne [Wed, 21 Nov 2018 21:02:01 +0000 (22:02 +0100)]
UI: Add Image and Clip space panels category.

Pretty much all were missing those here... Put all in same category for
image, tried to sort them logically for Clip, since we already had at
least two (stabilization and 'misc')... sigh.

Another topic for UI team to work on I guess.