12 months 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.

12 months 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.

12 months agoUI: First batch of fixing missing categories for panels.
Bastien Montagne [Wed, 21 Nov 2018 20:41:00 +0000 (21:41 +0100)]
UI: First batch of fixing missing categories for panels.

12 months agoCleanup: Move debug warning message about panels missing category from drawing code...
Bastien Montagne [Wed, 21 Nov 2018 20:39:19 +0000 (21:39 +0100)]
Cleanup: Move debug warning message about panels missing category from drawing code to registering code.

In drawing it was pretty stupid (since we did not know *which* panels were
affected), and really, really annoyingly noisy!

12 months agoUI: hide keymap preferences when filter is used
Campbell Barton [Wed, 21 Nov 2018 20:52:34 +0000 (07:52 +1100)]
UI: hide keymap preferences when filter is used

12 months agoKeymap: correct error in grease pencil change
Campbell Barton [Wed, 21 Nov 2018 20:48:05 +0000 (07:48 +1100)]
Keymap: correct error in grease pencil change

12 months agoKeymap: remove annotation keymap editmode toggle
Campbell Barton [Wed, 21 Nov 2018 19:51:47 +0000 (06:51 +1100)]
Keymap: remove annotation keymap editmode toggle

This is now used for grease pencil objects.

12 months agoKeymap: Adjust shading key bindings
Campbell Barton [Wed, 21 Nov 2018 19:44:42 +0000 (06:44 +1100)]
Keymap: Adjust shading key bindings

- 'Z' now toggles xray
  (convenient, 2.7x-like binding to show occluded).
- 'D' shows the draw-type pie-menu.

12 months agoKeymap: remove D-Key shortcuts for annotations
Campbell Barton [Wed, 21 Nov 2018 18:56:04 +0000 (05:56 +1100)]
Keymap: remove D-Key shortcuts for annotations

Use tools for annotations instead.

12 months ago3D View: move x-ray toggle to operator
Campbell Barton [Wed, 21 Nov 2018 19:44:09 +0000 (06:44 +1100)]
3D View: move x-ray toggle to operator

Allows binding to a key.

12 months agoKeymap: use Ctrl-Tab to toggle fcurve/graph editor
Campbell Barton [Wed, 21 Nov 2018 18:56:04 +0000 (05:56 +1100)]
Keymap: use Ctrl-Tab to toggle fcurve/graph editor

Suggested by Pablo Vazquez.

12 months agoKeymaps: take into account DPI for tweak/drag/pie thresholds.
Brecht Van Lommel [Wed, 21 Nov 2018 18:25:13 +0000 (19:25 +0100)]
Keymaps: take into account DPI for tweak/drag/pie thresholds.

The intention is to fix a too low default threshold on high DPI screen.
Users with high DPI screens that have increased the threshold to fix this
or liked the lower threshold will need to lower it again.

This is still somewhat of a guess, ideally this would be based on the
physical distance travalled, and maybe different per type of input device.
However we do not have access to this information, and hope this gives a
better default.

12 months agoKeymaps: a few small improvements.
Brecht Van Lommel [Wed, 21 Nov 2018 17:03:56 +0000 (18:03 +0100)]
Keymaps: a few small improvements.

* Annotation tools now have Alt+LMB as for erase, like sculpt.
* In the LMB keymap, Shift+RMB drag now transforms 3D cursor for easy snapping.
* Curve edit mode draw is now only availble as tool, solves 3D cursor conflict.

12 months agoPython API Docs: better titles.
Brecht Van Lommel [Wed, 21 Nov 2018 16:21:28 +0000 (17:21 +0100)]
Python API Docs: better titles.

The HTML title did not make it clear that these are docs for the API rather
than a general Blender documentation. Some of the page titles were also too
long and redundant.

12 months agoCleanup: warnings
Campbell Barton [Wed, 21 Nov 2018 18:25:51 +0000 (05:25 +1100)]
Cleanup: warnings

12 months agoGP: Set Vertex opacity default for templates
Antonioya [Wed, 21 Nov 2018 18:18:41 +0000 (19:18 +0100)]
GP: Set Vertex opacity default for templates

12 months agoUI: Use primary gizmo color for loopcut edge pre-select.
Pablo Vazquez [Wed, 21 Nov 2018 18:14:56 +0000 (19:14 +0100)]
UI: Use primary gizmo color for loopcut edge pre-select.

Instead of hardcoded pink.

12 months agotransform_snap_object: Use the texture space bound box to test the need to snap to...
mano-wii [Wed, 21 Nov 2018 16:37:56 +0000 (14:37 -0200)]
transform_snap_object: Use the texture space bound box to test the need to snap to meshes in edit mode.

Before a value for bound box was stored in a local cache.

12 months agoGP: Init new Eraser Hard
Antonioya [Wed, 21 Nov 2018 17:03:38 +0000 (18:03 +0100)]
GP: Init new Eraser Hard

12 months agotransform_snap_object: Fix snap to curves.
mano-wii [Wed, 21 Nov 2018 15:06:29 +0000 (13:06 -0200)]
transform_snap_object: Fix snap to curves.

Use `BKE_curve_texspace_get` instead `BKE_curve_boundbox_get`.
The snap to curve, even out of edit mode, is not done on the displist. So test a boundbox that covers the points seens in edit mode.

12 months agoFix T57884: Triangle count is incorrect when above around 2 billion
Philipp Oeser [Mon, 19 Nov 2018 14:24:32 +0000 (15:24 +0100)]
Fix T57884: Triangle count is incorrect when above around 2 billion

Maniphest Tasks: T57884

Differential Revision:

12 months agoDepsgraph: Update comment
Sergey Sharybin [Wed, 21 Nov 2018 15:29:22 +0000 (16:29 +0100)]
Depsgraph: Update comment

12 months agoDepsgraph: Allow flush of CoW tag from Action
Sergey Sharybin [Wed, 21 Nov 2018 15:12:42 +0000 (16:12 +0100)]
Depsgraph: Allow flush of CoW tag from Action

This way we guarantee that action tagged for CoW will ensure
order of updates with objects which are using it.

Fixes T57870: Scaling keyframes in Graph Editor causes crash
Fixes T57971: Moving keys in the Dopesheet crashes with Segfault 11
Fixes T57530: Moving keys on a rig, Crash
Fixee T57491: Crash when trying to move keyframe in dope sheet

12 months agoFix T57975: Drawing with Onion Skin enabled crash Blender
Antonioya [Wed, 21 Nov 2018 14:53:17 +0000 (15:53 +0100)]
Fix T57975: Drawing with Onion Skin enabled crash Blender

12 months agoDepsgraph: Move boundbox sync to the post-geometry evaluation
Sergey Sharybin [Wed, 21 Nov 2018 14:02:36 +0000 (15:02 +0100)]
Depsgraph: Move boundbox sync to the post-geometry evaluation

Boundbox does not depend on transform and only need geometry

This change solves possible race condition accessing geometry
data and allocating/assigning pointers.

Based on disacussion in IRC with @mano-wii and @brecht.

12 months agoDepsgraph: Cleanup, use more clear name
Sergey Sharybin [Wed, 21 Nov 2018 13:52:42 +0000 (14:52 +0100)]
Depsgraph: Cleanup, use more clear name

Five years later since the original commit, is probably not so bad
timing on calling things by their clear name.

12 months agoImplement basic global tablet pressure curve options.
Alexander Gavrilov [Tue, 20 Nov 2018 12:35:59 +0000 (15:35 +0300)]
Implement basic global tablet pressure curve options.

Grease Pencil already implements support for full-featured
per-brush pressure curves, but it is useful to have some
basic global settings that affect all brushes and tools.

This adds two simple options:

- Raw pressure required to achieve full brush intensity.
- Softness control, using a gamma curve internally.

The most important one is the max pressure setting, because it is
critical for ergonomics, but the Linux Wacom driver lacks it.

The softness option internally converts to gamma = 4^-softness.

Reviewers: brecht, campbellbarton

Differential Revision:

12 months agoImage Empties: always show in orthographic view by default
Jacques Lucke [Wed, 21 Nov 2018 12:52:12 +0000 (13:52 +0100)]
Image Empties: always show in orthographic view by default

12 months agoI18N: tweak some UI labels and tips.
Bastien Montagne [Wed, 21 Nov 2018 11:06:59 +0000 (12:06 +0100)]
I18N: tweak some UI labels and tips.

12 months agoI18N defaults: enable tooltip translation.
Bastien Montagne [Wed, 21 Nov 2018 11:05:56 +0000 (12:05 +0100)]
I18N defaults: enable tooltip translation.

That is minimal change for now, we may want to fully enable i18n by

12 months agoUI: small clean-up of I18N UI in userpref.
Bastien Montagne [Wed, 21 Nov 2018 11:04:09 +0000 (12:04 +0100)]
UI: small clean-up of I18N UI in userpref.

Mainly do not hide i18n options anymore, this is against our rules, just
disable them instead.

12 months agoGP: Change cursor for primitves
Antonioya [Wed, 21 Nov 2018 09:52:46 +0000 (10:52 +0100)]
GP: Change cursor for primitves

12 months agoGP: Remove Target Weight switch
Antonioya [Wed, 21 Nov 2018 08:03:17 +0000 (09:03 +0100)]
GP: Remove Target Weight switch

12 months agoFix uv-sculpt use w/ tool-system
Campbell Barton [Wed, 21 Nov 2018 06:56:10 +0000 (17:56 +1100)]
Fix uv-sculpt use w/ tool-system

12 months agoGizmo: show dial handle for unconstrained extrude
Campbell Barton [Wed, 21 Nov 2018 06:15:53 +0000 (17:15 +1100)]
Gizmo: show dial handle for unconstrained extrude

Now only show an arrow when extrude was constrained on an axis.

12 months agoGizmo: set operator options before execution
Campbell Barton [Wed, 21 Nov 2018 05:00:00 +0000 (16:00 +1100)]
Gizmo: set operator options before execution

Avoid setting all operator options every redraw,
instead set them before invoking.

12 months agoGizmo: run invoke_prepare even when the gizmo isn't modal
Campbell Barton [Wed, 21 Nov 2018 04:35:29 +0000 (15:35 +1100)]
Gizmo: run invoke_prepare even when the gizmo isn't modal

This is useful for setting up state for gizmos that run
operators too.

12 months agoObject: minor changes to jump-to API
Campbell Barton [Wed, 21 Nov 2018 02:06:25 +0000 (13:06 +1100)]
Object: minor changes to jump-to API

- Always select the jump-to object, even if it's active.
- Remove check for invalid object data
  (these cases will fail much earlier).

12 months agoCleanup: add reveal_hidden arg to jump-to API calls
Campbell Barton [Wed, 21 Nov 2018 02:04:03 +0000 (13:04 +1100)]
Cleanup: add reveal_hidden arg to jump-to API calls

Jumping to data shouldn't necessarily change hidden status
or visible layers.

12 months agoGizmo: workaround for extrude modifying normals for XYZ axis
Campbell Barton [Wed, 21 Nov 2018 01:39:05 +0000 (12:39 +1100)]
Gizmo: workaround for extrude modifying normals for XYZ axis

This was done for the normal gizmo, but not the XYZ handles.

12 months agoFix custom matrix orientation being written to scene
Campbell Barton [Wed, 21 Nov 2018 01:47:25 +0000 (12:47 +1100)]
Fix custom matrix orientation being written to scene

12 months agoCorrect editbone root-select check
Campbell Barton [Wed, 21 Nov 2018 01:57:08 +0000 (12:57 +1100)]
Correct editbone root-select check

Mistake in recent commit.

12 months agoGizmo: use Y-axis for armature extrude on normal
Campbell Barton [Wed, 21 Nov 2018 01:12:20 +0000 (12:12 +1100)]
Gizmo: use Y-axis for armature extrude on normal

For bones it's useful to extrude a bone aligned to the existing bone.

12 months agoGizmo: set the extrude transform constraint matrix
Campbell Barton [Wed, 21 Nov 2018 00:42:56 +0000 (11:42 +1100)]
Gizmo: set the extrude transform constraint matrix

12 months agoUI: Horizontal/Vertical split options in Area menu.
Pablo Vazquez [Wed, 21 Nov 2018 00:33:33 +0000 (01:33 +0100)]
UI: Horizontal/Vertical split options in Area menu.

12 months agoTransform: use root/tip for bone normal orientation
Campbell Barton [Wed, 21 Nov 2018 00:31:37 +0000 (11:31 +1100)]
Transform: use root/tip for bone normal orientation

When there are no fully selected bones,
use the normal of bones which only have the root/tip selected as a

Without this, the extrude gizmo isn't very useful
since extrude is often used with only the tip selected.

12 months agoUI: Icon and separator for Add Node (Search).
Pablo Vazquez [Wed, 21 Nov 2018 00:25:44 +0000 (01:25 +0100)]
UI: Icon and separator for Add Node (Search).

12 months agoUI Theme: Minor improvements on contrast and consistency.
Pablo Vazquez [Tue, 20 Nov 2018 23:31:28 +0000 (00:31 +0100)]
UI Theme: Minor improvements on contrast and consistency.

* 3D Viewport grid adjustment to work with both bright/dark viewports (e.g. 2D Animation)
* Match header/grid of NLA with Dopesheet/Graph Editor.
* Avoid pure whites in unselected/inactive text.
* Darken the scrollbar numbers.

12 months agoCleanup: use boolean array for mirror modifier
Campbell Barton [Tue, 20 Nov 2018 23:27:19 +0000 (10:27 +1100)]
Cleanup: use boolean array for mirror modifier

12 months agoModifier: Mirror learns to bisect on plane
Campbell Barton [Tue, 20 Nov 2018 23:01:04 +0000 (10:01 +1100)]
Modifier: Mirror learns to bisect on plane

D3966 by @kioku w/ edits.

This adds bisect and flip options to mirror modifier.

12 months agoCleanup: rename extrude gizmo
Campbell Barton [Tue, 20 Nov 2018 22:25:55 +0000 (09:25 +1100)]
Cleanup: rename extrude gizmo

12 months agoCleanup: move extrude gizmo to transform module
Campbell Barton [Tue, 20 Nov 2018 22:20:19 +0000 (09:20 +1100)]
Cleanup: move extrude gizmo to transform module

Since this is no longer mesh only, move out of mesh,
rename next.

12 months agoGizmo: initial extrude support for non mesh types
Campbell Barton [Tue, 20 Nov 2018 22:09:34 +0000 (09:09 +1100)]
Gizmo: initial extrude support for non mesh types

12 months agoFix extrude tool redo
Campbell Barton [Tue, 20 Nov 2018 21:08:53 +0000 (08:08 +1100)]
Fix extrude tool redo

Redo operator properties weren't being set.

12 months agoFix T57892: Align Objects in Blender 2.8 Alpha 2 last Builds.
Bastien Montagne [Tue, 20 Nov 2018 21:14:00 +0000 (22:14 +0100)]
Fix T57892: Align Objects in Blender 2.8 Alpha 2 last Builds.

Needed some update for API changes...

12 months agoFix T57921: Crash when loading 2.7x .blend with scene without any render layer.
Bastien Montagne [Tue, 20 Nov 2018 20:49:49 +0000 (21:49 +0100)]
Fix T57921: Crash when loading 2.7x .blend with scene without any render layer.

We need at least one view layer, always. :)

12 months agoCleanup: unused args, indentation
Campbell Barton [Tue, 20 Nov 2018 19:21:58 +0000 (06:21 +1100)]
Cleanup: unused args, indentation

12 months agoCleanup: gcc function type warning
Campbell Barton [Tue, 20 Nov 2018 18:32:23 +0000 (05:32 +1100)]
Cleanup: gcc function type warning

12 months agoGP: Refactor target weight paint
Antonioya [Tue, 20 Nov 2018 19:05:13 +0000 (20:05 +0100)]
GP: Refactor target weight paint

Now, the target weight is defined as the final maximum value with a new property and all fields have be moved to brush struct.

12 months agoGP: Refactor drawing engine to single VBO
Antonioya [Tue, 20 Nov 2018 18:26:16 +0000 (19:26 +0100)]
GP: Refactor drawing engine to single VBO

This is part of T57829.

Reduce the number of batches used to only one by shader type.  This reduces GPU overhead and increase a lot the FPS. As the number of batches is small, the time to allocate and free memory was reduced in 90% or more.

Also the code has been simplified and all batch management has been removed because this is not necessary. Now, all shading groups are created after all vertex buffer data for all strokes has been created using DRW_shgroup_call_range_add().

All batch cache data has been moved to the Object runtime struct and not as before where some parts (derived data) were saved inside GPD datablock.

For particles, now the code is faster and cleaner and gets better FPS.

Thanks to Clément Foucault for his help and advices to improve speed.

12 months agoFix T57935: Crash Alt clicking w/ poly build tool
Campbell Barton [Tue, 20 Nov 2018 18:21:18 +0000 (05:21 +1100)]
Fix T57935: Crash Alt clicking w/ poly build tool

12 months agoCleanup: style
Campbell Barton [Tue, 20 Nov 2018 18:25:42 +0000 (05:25 +1100)]
Cleanup: style

12 months agoGP: New option to paint a predefined weight
Antonioya [Tue, 20 Nov 2018 17:11:42 +0000 (18:11 +0100)]
GP: New option to paint a predefined weight

Enabling this option, the weight is set to the predefined value and not the result of the sum of the paint actions.

12 months agoUI: Color Ramp: Add menu and functions to distribute color stops
Charlie Jolly [Mon, 19 Nov 2018 16:15:05 +0000 (16:15 +0000)]
UI: Color Ramp: Add menu and functions to distribute color stops

Suggestion from Right-Click Select:

Differential Revision:

12 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Tue, 20 Nov 2018 17:01:13 +0000 (18:01 +0100)]
Merge branch 'master' into blender2.8

12 months agoFix T57923: Freeze in mesh vnors computation code with some degenerated geometry.
Bastien Montagne [Tue, 20 Nov 2018 16:54:48 +0000 (17:54 +0100)]
Fix T57923: Freeze in mesh vnors computation code with some degenerated geometry.

Second part of the fix: do not try at all to compute normals in degenerated
geometry. Just loss of time and potential issues later with weird
invalid computed values.

12 months agoFix T57923: Freeze in mesh vnors computation code with some degenerated geometry.
Bastien Montagne [Tue, 20 Nov 2018 16:52:21 +0000 (17:52 +0100)]
Fix T57923: Freeze in mesh vnors computation code with some degenerated geometry.

Fix first part of it, the freeze itself being caused by float NAN values
never comparing equal to anything, not even themselves.

12 months agoGP: Reorganize Reproject options
Antonioya [Tue, 20 Nov 2018 15:29:33 +0000 (16:29 +0100)]
GP: Reorganize Reproject options

The options depend of drawing mode and this was very strange. Now, the options are listed in the menu.

12 months agoGP: Set Gizmo orientation for edit mode
Antonioya [Tue, 20 Nov 2018 15:03:38 +0000 (16:03 +0100)]
GP: Set Gizmo orientation for edit mode

12 months agoSpeedup rigs with multiple objects deformed by bbones
Sergey Sharybin [Tue, 20 Nov 2018 14:42:37 +0000 (15:42 +0100)]
Speedup rigs with multiple objects deformed by bbones

Previously each of the objects which has armature modifier will
request deformation matricies from bbones. Thing is, all those
deformations are the same and do not depend on object which is
being modified. What's even worse is that this calculation is
not cheap.

This change makes it so bbones deformation is calculated once
and stored in the armature object. After this armature modifiers
simply use it.

With a rigs we've got here dependency graph evaluation time
goes down from 0.02 sec to 0.012 sec.

Possible further optimization is to make bbone deformation
calculated at the time when bone is calculated. This will avoid
an extra threaded loop over all bones.

12 months agoCleanup: Use more const qualifiers
Sergey Sharybin [Tue, 20 Nov 2018 14:07:38 +0000 (15:07 +0100)]
Cleanup: Use more const qualifiers

12 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Tue, 20 Nov 2018 14:02:13 +0000 (15:02 +0100)]
Merge branch 'master' into blender2.8

12 months agoTask scheduler: Optimize parallel loop over lists
Sergey Sharybin [Tue, 20 Nov 2018 11:17:03 +0000 (12:17 +0100)]
Task scheduler: Optimize parallel loop over lists

The goal is to address performance regression when going from
few threads to 10s of threads. On a systems with more than 32
CPU threads the benefit of threaded loop was actually harmful.

There are following tweaks now:

- The chunk size is adaptive for the number of threads, which
  minimizes scheduling overhead.

- The number of tasks is adaptive to the list size and chunk

Here comes performance comparison on the production shot:

 Number of threads        DEG time before        DEG time after
       44                     0.09                   0.02
       32                     0.055                  0.025
       16                     0.025                  0.025
       8                      0.035                  0.033

12 months agoComment out all derived mesh evaluation
Sergey Sharybin [Tue, 20 Nov 2018 11:25:16 +0000 (12:25 +0100)]
Comment out all derived mesh evaluation

Seems all the usecases of derived mesh are if-defed already,
so no need to have API for it in place, and definitely no
need to waste CPU ticks on converting evaluated mesh to
derived mesh.

12 months agoDepsgraph: Don't use derived mesh
Sergey Sharybin [Tue, 20 Nov 2018 11:23:07 +0000 (12:23 +0100)]
Depsgraph: Don't use derived mesh

Ideally would need to make check based on evaluated mesh,
but is now a good time to go away from derived mesh.

12 months agoModifier stack: Only ensure derived mesh when USE_DERIVEDMESH is defined
Sergey Sharybin [Tue, 20 Nov 2018 10:39:48 +0000 (11:39 +0100)]
Modifier stack: Only ensure derived mesh when USE_DERIVEDMESH is defined

This is more an internal transition away from derived mesh.

12 months agoModifier stack: Use evaluated mesh to check normals
Sergey Sharybin [Tue, 20 Nov 2018 10:37:51 +0000 (11:37 +0100)]
Modifier stack: Use evaluated mesh to check normals

12 months agoVertex parent: Remove CCGDM optimization
Sergey Sharybin [Tue, 20 Nov 2018 10:29:38 +0000 (11:29 +0100)]
Vertex parent: Remove CCGDM optimization

Currently we never return CCGDM from the modifier stack,
so the optimization was doing pretty much nothing.

Removing it completely for now, it needs to be re-done
with the new evaluated Mesh/Subdiv.

12 months agoUI: increase spacing at sides of headers, to avoid region split zone overlap.
Brecht Van Lommel [Tue, 20 Nov 2018 12:37:31 +0000 (13:37 +0100)]
UI: increase spacing at sides of headers, to avoid region split zone overlap.

12 months agoFis T57948: Crash in 2.8x lookdev
Clément Foucault [Tue, 20 Nov 2018 12:17:03 +0000 (13:17 +0100)]
Fis T57948: Crash in 2.8x lookdev

12 months agoFix T57891: Radius of strip hair doesn't scale with object scale
Clément Foucault [Mon, 19 Nov 2018 17:24:08 +0000 (18:24 +0100)]
Fix T57891: Radius of strip hair doesn't scale with object scale

Note that this only works fine with uniformly scaled objects.
Otherwise, the hair thickness will vary in a weird way depending on viewing

12 months agoImages: "Image" submenu in "Add" menu
Jacques Lucke [Tue, 20 Nov 2018 11:44:42 +0000 (12:44 +0100)]
Images: "Image" submenu in "Add" menu

The submenu has two entries currently: "Reference" and "Background".
Both operators produce an image empty with different settings.

12 months agoAdd option not to print debug/info in ngon_tessellate.
Bastien Montagne [Tue, 20 Nov 2018 10:37:01 +0000 (11:37 +0100)]
Add option not to print debug/info in ngon_tessellate.

That func can be called a lot, generating a lot of noise in the

12 months agoGP: Fix bottom statistics
Antonioya [Tue, 20 Nov 2018 10:41:58 +0000 (11:41 +0100)]
GP: Fix bottom statistics

12 months agoTool System: define tools for lattice editmode
Campbell Barton [Tue, 20 Nov 2018 10:41:39 +0000 (21:41 +1100)]
Tool System: define tools for lattice editmode

12 months agoFix error generating toolbar tooltip
Campbell Barton [Tue, 20 Nov 2018 10:34:29 +0000 (21:34 +1100)]
Fix error generating toolbar tooltip

C code needed to be updated for module move.

12 months agoMerge branch 'master' into blender2.8
Sybren A. Stüvel [Tue, 20 Nov 2018 09:46:36 +0000 (10:46 +0100)]
Merge branch 'master' into blender2.8

12 months agoRemoved superfluous NULL check
Sybren A. Stüvel [Tue, 20 Nov 2018 09:46:17 +0000 (10:46 +0100)]
Removed superfluous NULL check

12 months agoMerge branch 'master' into blender2.8
Sybren A. Stüvel [Tue, 20 Nov 2018 09:38:55 +0000 (10:38 +0100)]
Merge branch 'master' into blender2.8

12 months agoMultires: Cleanup, remove unused function
Sergey Sharybin [Tue, 20 Nov 2018 09:34:01 +0000 (10:34 +0100)]
Multires: Cleanup, remove unused function

12 months agoAdded MovieClip.fps read-only property to RNA
Sybren A. Stüvel [Tue, 20 Nov 2018 09:32:24 +0000 (10:32 +0100)]
Added MovieClip.fps read-only property to RNA

This makes it possible for a Python script that loads a MovieClip into the
clip editor to also change the scene frame rate to match.

12 months agoFix T57938: Dynamic paint baking issues
Sergey Sharybin [Tue, 20 Nov 2018 09:22:32 +0000 (10:22 +0100)]
Fix T57938: Dynamic paint baking issues

Quite usual fix for the caching systems.

12 months agoTool System: define tools for meta-ball editmode
Campbell Barton [Tue, 20 Nov 2018 07:52:27 +0000 (18:52 +1100)]
Tool System: define tools for meta-ball editmode

12 months agoUI: unhide bones in Jump To Target instead of failing.
Alexander Gavrilov [Tue, 20 Nov 2018 07:24:18 +0000 (10:24 +0300)]
UI: unhide bones in Jump To Target instead of failing.

The whole point is to avoid the need to manually hunt for the
bone, so it makes more sense to unhide it automatically.

If the bone is on multiple layers, just the first one is enabled.

Also, ED_pose_bone_select already checks PBONE_SELECTABLE.

12 months agoCleanup: make object deselect match other ED_ APIs
Campbell Barton [Tue, 20 Nov 2018 07:08:24 +0000 (18:08 +1100)]
Cleanup: make object deselect match other ED_ APIs

Use SEL_* argument, matching ED_pose_deselect_all.

12 months agoUI: support jumping to target object/bone
Alexander Gavrilov [Tue, 20 Nov 2018 06:34:56 +0000 (17:34 +1100)]
UI: support jumping to target object/bone

Complex rigs are built from many bones (often overlapping)
connected by constraints.

When investigating or debugging such rigs one often wants to switch to
the target of a constraint, or a parent bone, but it is difficult to do
manually due to overlap confusion.

This adds a right click menu option that automatically selects
and makes the target object or bone active for UI fields where a
suitable reference is readily available.

12 months agoObject: utility (de)select all functions
Campbell Barton [Tue, 20 Nov 2018 06:00:55 +0000 (17:00 +1100)]
Object: utility (de)select all functions

part of D3955 by @angavrilov

12 months agoMulti-Objects: Calc origin w/ all edit-objects
Campbell Barton [Tue, 20 Nov 2018 04:29:08 +0000 (15:29 +1100)]
Multi-Objects: Calc origin w/ all edit-objects

D3924 by @Leon95 w/ code de-duplication.

12 months agoFix T57722: Clipped LookDev preview spheres
Campbell Barton [Tue, 20 Nov 2018 04:08:56 +0000 (15:08 +1100)]
Fix T57722: Clipped LookDev preview spheres

D3948 by @pablodp606

12 months agoCleanup: use const mesh arg to BM_mesh_bm_from_me
Campbell Barton [Tue, 20 Nov 2018 02:28:25 +0000 (13:28 +1100)]
Cleanup: use const mesh arg to BM_mesh_bm_from_me

Needed for D3966