blender.git
3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sat, 14 Jul 2018 08:22:15 +0000 (10:22 +0200)]
Merge branch 'master' into blender2.8

3 years agoRename operator property from last commit
Campbell Barton [Sat, 14 Jul 2018 08:19:53 +0000 (10:19 +0200)]
Rename operator property from last commit

Restore operator had same option named differently.

3 years agoKeymap: option to export all keymaps
Campbell Barton [Sat, 14 Jul 2018 08:15:46 +0000 (10:15 +0200)]
Keymap: option to export all keymaps

Useful to store a snapshot of the current keymap state
so changes to the default keymap are ignored.

Also useful for testing keymap export works properly.

3 years agoCleanup: f-string use
Campbell Barton [Sat, 14 Jul 2018 07:32:52 +0000 (09:32 +0200)]
Cleanup: f-string use

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sat, 14 Jul 2018 07:31:52 +0000 (09:31 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: use f-string for addon_utils
Campbell Barton [Sat, 14 Jul 2018 07:30:59 +0000 (09:30 +0200)]
Cleanup: use f-string for addon_utils

3 years agoCleanup: minor change for f-string use
Campbell Barton [Sat, 14 Jul 2018 07:30:50 +0000 (09:30 +0200)]
Cleanup: minor change for f-string use

3 years agoKeymap: remove double space in tool-keymap
Campbell Barton [Sat, 14 Jul 2018 07:02:36 +0000 (09:02 +0200)]
Keymap: remove double space in tool-keymap

3 years agoUI: More descriptive tooltip
Pablo Vazquez [Fri, 13 Jul 2018 23:37:01 +0000 (01:37 +0200)]
UI: More descriptive tooltip

3 years agoVSE: Add image strips with alpha over as blend type
Pablo Vazquez [Thu, 12 Jul 2018 23:37:28 +0000 (01:37 +0200)]
VSE: Add image strips with alpha over as blend type

3 years agoUI: Capital letters for property
Pablo Vazquez [Thu, 12 Jul 2018 23:36:34 +0000 (01:36 +0200)]
UI: Capital letters for property

3 years agoAdd include missing in release builds
Campbell Barton [Fri, 13 Jul 2018 18:22:05 +0000 (20:22 +0200)]
Add include missing in release builds

3 years agoUI: Align Lighting sub-panel of the Shading popover
Pablo Vazquez [Fri, 13 Jul 2018 18:11:57 +0000 (20:11 +0200)]
UI: Align Lighting sub-panel of the Shading popover

This better aligns the matcap/hdri browser, rotation/background sliders and
preferences/flip matcap button.

The remaining sub-panels are not perfeclty aligned yet, once the sub-panels
separation is more prominent (and they can be collapsed) we can align those.

Thanks devtalk forum for feedback!

3 years agoUI: remove space/region from popover args
Campbell Barton [Fri, 13 Jul 2018 17:13:44 +0000 (19:13 +0200)]
UI: remove space/region from popover args

Instead use global panel-type list.

3 years agoWM: register global list of panel types
Campbell Barton [Fri, 13 Jul 2018 16:39:46 +0000 (18:39 +0200)]
WM: register global list of panel types

Allows simple lookups for popovers.

3 years agoCorrect recent menu split
Campbell Barton [Fri, 13 Jul 2018 16:56:59 +0000 (18:56 +0200)]
Correct recent menu split

Somehow duplicate API didn't error when linking.

3 years agoFix missing panels in texture properties with image texture.
Brecht Van Lommel [Fri, 13 Jul 2018 16:12:19 +0000 (18:12 +0200)]
Fix missing panels in texture properties with image texture.

3 years agoFix T55965: shrinkwrap modifier apply not working.
Brecht Van Lommel [Fri, 13 Jul 2018 16:09:51 +0000 (18:09 +0200)]
Fix T55965: shrinkwrap modifier apply not working.

3 years agoViewport: don't show look dev shader balls by default.
Brecht Van Lommel [Fri, 13 Jul 2018 10:05:51 +0000 (12:05 +0200)]
Viewport: don't show look dev shader balls by default.

We will show these in the shading workspace by default, but for most new
3D viewports that you open these are not needed.

3 years agoUI: only show API defined custom properties when Developer Extras is on.
Brecht Van Lommel [Thu, 12 Jul 2018 14:36:44 +0000 (16:36 +0200)]
UI: only show API defined custom properties when Developer Extras is on.

These are intended to behave just like any other builting property, so
no to always show them in the Custom Properties panels for regular users.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 13 Jul 2018 16:18:35 +0000 (18:18 +0200)]
Merge branch 'master' into blender2.8

3 years agoMakefile: add note about environment vars
Campbell Barton [Fri, 13 Jul 2018 16:16:05 +0000 (18:16 +0200)]
Makefile: add note about environment vars

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 13 Jul 2018 16:04:41 +0000 (18:04 +0200)]
Merge branch 'master' into blender2.8

3 years agoRemove invalid assert
Campbell Barton [Fri, 13 Jul 2018 15:59:26 +0000 (17:59 +0200)]
Remove invalid assert

3 years agoUI: Wider Dyntopo popover to fit all settings
Pablo Vazquez [Fri, 13 Jul 2018 15:58:22 +0000 (17:58 +0200)]
UI: Wider Dyntopo popover to fit all settings

Suggested by kostex_mb on IRC

3 years agoFix bad assert on redo
Campbell Barton [Fri, 13 Jul 2018 15:37:00 +0000 (17:37 +0200)]
Fix bad assert on redo

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 13 Jul 2018 10:52:10 +0000 (12:52 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: operator type API, header
Campbell Barton [Fri, 13 Jul 2018 10:46:10 +0000 (12:46 +0200)]
Cleanup: operator type API, header

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 13 Jul 2018 10:38:24 +0000 (12:38 +0200)]
Merge branch 'master' into blender2.8

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 13 Jul 2018 10:22:21 +0000 (12:22 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: move WM type registration into own files
Campbell Barton [Fri, 13 Jul 2018 10:15:18 +0000 (12:15 +0200)]
Cleanup: move WM type registration into own files

Type registration is mostly boiler plate logic,
which can be separated from other API's.

3 years agoNodes: add sqrt, ceil, floor and fract to math nodes.
Charlie Jolly [Thu, 12 Jul 2018 21:40:18 +0000 (23:40 +0200)]
Nodes: add sqrt, ceil, floor and fract to math nodes.

This works for Cycles, Eevee, texture nodes and compositing. It helps to
reduce the number of math nodes required in various node setups.

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

3 years agoUI: show popover shortcuts in tooltip
Campbell Barton [Fri, 13 Jul 2018 08:57:25 +0000 (10:57 +0200)]
UI: show popover shortcuts in tooltip

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 13 Jul 2018 08:52:40 +0000 (10:52 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: id-property API use
Campbell Barton [Fri, 13 Jul 2018 08:51:49 +0000 (10:51 +0200)]
Cleanup: id-property API use

Also clarify comments.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 13 Jul 2018 08:31:30 +0000 (10:31 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: split keymap lookups into own functions
Campbell Barton [Fri, 13 Jul 2018 08:26:24 +0000 (10:26 +0200)]
Cleanup: split keymap lookups into own functions

More will be added in 2.8, keep this manageable.

3 years agoFix T55920: viewport "navigate" shows on transform
Campbell Barton [Fri, 13 Jul 2018 08:00:36 +0000 (10:00 +0200)]
Fix T55920: viewport "navigate" shows on transform

3 years agoKeymap: run search by its key in tools popup
Campbell Barton [Fri, 13 Jul 2018 07:18:46 +0000 (09:18 +0200)]
Keymap: run search by its key in tools popup

The button & key are displayed here, so its best if the shortcut works.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 13 Jul 2018 07:05:55 +0000 (09:05 +0200)]
Merge branch 'master' into blender2.8

3 years agoKeymap: dope-sheet hotkey to change falloff
Philipp Oeser [Fri, 13 Jul 2018 07:05:17 +0000 (09:05 +0200)]
Keymap: dope-sheet hotkey to change falloff

3 years agoKeymap: dope-sheet hotkey to change falloff
Philipp Oeser [Fri, 13 Jul 2018 06:55:07 +0000 (08:55 +0200)]
Keymap: dope-sheet hotkey to change falloff

3 years agoCleanup: style
Campbell Barton [Fri, 13 Jul 2018 06:42:34 +0000 (08:42 +0200)]
Cleanup: style

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 13 Jul 2018 06:37:20 +0000 (08:37 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: right shift arguments
Campbell Barton [Fri, 13 Jul 2018 06:36:10 +0000 (08:36 +0200)]
Cleanup: right shift arguments

3 years agoCleanup: rename snap enum
Campbell Barton [Fri, 13 Jul 2018 06:18:18 +0000 (08:18 +0200)]
Cleanup: rename snap enum

3 years agoCorrect error mixing fraction/screen snap
Campbell Barton [Fri, 13 Jul 2018 06:14:16 +0000 (08:14 +0200)]
Correct error mixing fraction/screen snap

Thanks @mano-wii for pointing out

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 12 Jul 2018 19:43:51 +0000 (21:43 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: remove legacy mesh save support
Campbell Barton [Thu, 12 Jul 2018 19:32:18 +0000 (21:32 +0200)]
Cleanup: remove legacy mesh save support

This was used for saving files for Blender 2.6x.

3 years agoWM: snap to fractions when resizing areas
Campbell Barton [Thu, 12 Jul 2018 14:55:16 +0000 (16:55 +0200)]
WM: snap to fractions when resizing areas

Snap to fractions in 1/(2,3,4,8),

Nice for less arbitrary layouts.

3 years agoUI: add toggle fullscreen to window context menu
Campbell Barton [Thu, 12 Jul 2018 13:25:05 +0000 (15:25 +0200)]
UI: add toggle fullscreen to window context menu

3 years agoPyAPI: show line, not call-stack for field warning
Campbell Barton [Thu, 12 Jul 2018 13:21:39 +0000 (15:21 +0200)]
PyAPI: show line, not call-stack for field warning

Was too noisy and hard to tell warnings from exceptions.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 12 Jul 2018 12:46:48 +0000 (14:46 +0200)]
Merge branch 'master' into blender2.8

3 years agoPyAPI: add undo redo handlers
Campbell Barton [Thu, 12 Jul 2018 12:43:35 +0000 (14:43 +0200)]
PyAPI: add undo redo handlers

Useful so Python can clean up before/after undo steps.

3 years agoFix T55945: Outliner crash
Philipp Oeser [Thu, 12 Jul 2018 11:37:29 +0000 (13:37 +0200)]
Fix T55945: Outliner crash

crashed when using filtering and no item was found ('Blender File' mode)

Reviewed By: brecht

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

3 years agoFix T55949: increase color management exposure hard range.
Brecht Van Lommel [Thu, 12 Jul 2018 09:46:32 +0000 (11:46 +0200)]
Fix T55949: increase color management exposure hard range.

3 years agoKeymap: add 3D view snap popup
Campbell Barton [Thu, 12 Jul 2018 09:44:20 +0000 (11:44 +0200)]
Keymap: add 3D view snap popup

The key was available for other spaces,
removed because it conflicted with changes
which have since been reverted.

3 years agoKeymap: add utility function for panel popups
Campbell Barton [Thu, 12 Jul 2018 09:43:37 +0000 (11:43 +0200)]
Keymap: add utility function for panel popups

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 12 Jul 2018 09:20:48 +0000 (11:20 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: header guards
Campbell Barton [Thu, 12 Jul 2018 09:19:22 +0000 (11:19 +0200)]
Cleanup: header guards

3 years agoCleanup: style, duplicate header
Campbell Barton [Thu, 12 Jul 2018 09:16:22 +0000 (11:16 +0200)]
Cleanup: style, duplicate header

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 12 Jul 2018 09:04:53 +0000 (11:04 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: pep8, cycles
Campbell Barton [Thu, 12 Jul 2018 09:03:13 +0000 (11:03 +0200)]
Cleanup: pep8, cycles

3 years agoMinor cleanup to last commit
Campbell Barton [Thu, 12 Jul 2018 08:54:30 +0000 (10:54 +0200)]
Minor cleanup to last commit

No need to make attr-lists with the current layout logic.

3 years agoUI: Group geometry in object visibility popover
Campbell Barton [Thu, 12 Jul 2018 08:48:18 +0000 (10:48 +0200)]
UI: Group geometry in object visibility popover

Makes it easy to quickly hide all non-geometry.

3 years agoKeymap: Modifiers to control mesh elem switching
Campbell Barton [Thu, 12 Jul 2018 08:37:20 +0000 (10:37 +0200)]
Keymap: Modifiers to control mesh elem switching

Shift/Ctrl control extend/expand when number keys are used
to switch modes.

3 years agoUI: minor edits to overlay popover
Campbell Barton [Thu, 12 Jul 2018 08:07:32 +0000 (10:07 +0200)]
UI: minor edits to overlay popover

- Rename "Viewport Info" to "Text Info".
  Name was too vague, nearly everything is information,
  this currently only controls overlay text.

- Swap text-info & 3D-cursor, making 3D-cursor less prominent.

3 years agoUI: 4-state icon for view visibility popover
Campbell Barton [Thu, 12 Jul 2018 07:38:19 +0000 (09:38 +0200)]
UI: 4-state icon for view visibility popover

This is a quick way to see if some of the object types in the
scene are hidden or unselected.

Icon design may change.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 12 Jul 2018 07:15:06 +0000 (09:15 +0200)]
Merge branch 'master' into blender2.8

3 years agoIcons: support setting blender, inkscape commands
Campbell Barton [Thu, 12 Jul 2018 07:13:18 +0000 (09:13 +0200)]
Icons: support setting blender, inkscape commands

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 12 Jul 2018 06:31:19 +0000 (08:31 +0200)]
Merge branch 'master' into blender2.8

3 years agoFix PyRNA class registration w/ Python 3.7
Campbell Barton [Thu, 12 Jul 2018 06:28:06 +0000 (08:28 +0200)]
Fix PyRNA class registration w/ Python 3.7

In Python3.7 this now raises an error.

3 years agoPyAPI: remove bpy.utils.register_module
Campbell Barton [Wed, 11 Jul 2018 21:13:37 +0000 (23:13 +0200)]
PyAPI: remove bpy.utils.register_module

Remove bpy.utils.register_module() & logic tracked RNA classes.

3 years agoPyAPI: Use annotations for RNA definitions
Campbell Barton [Wed, 11 Jul 2018 20:18:09 +0000 (22:18 +0200)]
PyAPI: Use annotations for RNA definitions

- Logical use of fields since they define type information.
- Avoids using ordered-dict metaclass.

Properties using regular assignments will print a warning and load,
however the order is undefined.

3 years agoBuildbot: initial configuration for Visual Studio 2017.
Brecht Van Lommel [Wed, 11 Jul 2018 19:30:37 +0000 (21:30 +0200)]
Buildbot: initial configuration for Visual Studio 2017.

3 years agoManipulator: expose use_select_background via RNA
Campbell Barton [Wed, 11 Jul 2018 18:23:19 +0000 (20:23 +0200)]
Manipulator: expose use_select_background via RNA

3 years agoUI: Flip Overlays/Shading position
Pablo Vazquez [Wed, 11 Jul 2018 18:10:27 +0000 (20:10 +0200)]
UI: Flip Overlays/Shading position

This brings the Object Visibility dropdown closer to overlays which
also controls visibility of elements int he viewport, so it makes more
sense there. Also placing the Overlays settings closer to the viewport.

3 years agoUI: overlay, remove redundant 'object' term
Campbell Barton [Wed, 11 Jul 2018 17:00:24 +0000 (19:00 +0200)]
UI: overlay, remove redundant 'object' term

3 years agoUI: Fix Seams button drawing differently
Pablo Vazquez [Wed, 11 Jul 2018 17:00:54 +0000 (19:00 +0200)]
UI: Fix Seams button drawing differently

3 years ago3D View: option not to draw center dots
Campbell Barton [Wed, 11 Jul 2018 16:51:04 +0000 (18:51 +0200)]
3D View: option not to draw center dots

While this is a fairly obscure option,
it means it's possible to disable all overlays except for any
overlays the users wants to see.

3 years agoUI: Rename Bone Select to Fade Geometry in Overlay popover
Pablo Vazquez [Wed, 11 Jul 2018 16:54:42 +0000 (18:54 +0200)]
UI: Rename Bone Select to Fade Geometry in Overlay popover

Part of design: T55863

3 years agoUI: Overlay panel fix for display_all
Pablo Vazquez [Wed, 11 Jul 2018 16:46:08 +0000 (18:46 +0200)]
UI: Overlay panel fix for display_all

3 years agoUI: Re-arrange Overlay popover for Mesh Edit Mode
Pablo Vazquez [Wed, 11 Jul 2018 16:38:39 +0000 (18:38 +0200)]
UI: Re-arrange Overlay popover for Mesh Edit Mode

Sub-panels for shading, measurement, normals, freestyle and developer.
Less-used sub-panels will be collapsed by default once their implementation
is complete (fixing spacing between sub-panels, adding the triangle to collapse, etc).

Also added missing check for overlays on/off on existing sub-panels.

3 years agoUI: Add missing Viewport Info to Overlay popover
Pablo Vazquez [Wed, 11 Jul 2018 16:33:48 +0000 (18:33 +0200)]
UI: Add missing Viewport Info to Overlay popover

3 years agoFix T55915 DOF Number of blades wrong logic
Clément Foucault [Wed, 11 Jul 2018 16:33:35 +0000 (18:33 +0200)]
Fix T55915 DOF Number of blades wrong logic

Thanks @kostex for the fix.

3 years agoEdit Mesh: Fix missing loose edges if vertex is at local origin
Clément Foucault [Wed, 11 Jul 2018 16:20:14 +0000 (18:20 +0200)]
Edit Mesh: Fix missing loose edges if vertex is at local origin

3 years agoTransform Manipulator: fix scale handle selection
Campbell Barton [Wed, 11 Jul 2018 16:09:19 +0000 (18:09 +0200)]
Transform Manipulator: fix scale handle selection

The scale handles couldn't be accessed when rotation was enabled and
they pointed away from the view.

3 years agoUI: overlay panel minor tweak
Campbell Barton [Wed, 11 Jul 2018 15:22:57 +0000 (17:22 +0200)]
UI: overlay panel minor tweak

Move face-orientation to less prominent location since its
more of a debugging option.

3 years agoFix manipulator hiding cursor
Campbell Barton [Wed, 11 Jul 2018 15:16:10 +0000 (17:16 +0200)]
Fix manipulator hiding cursor

Manipulator highlight, then transform would hide the mouse cursor.

3 years agoEevee: LightCache: Fix autobake starting when it should not
Clément Foucault [Wed, 11 Jul 2018 14:54:10 +0000 (16:54 +0200)]
Eevee: LightCache: Fix autobake starting when it should not

3 years agoNumeric Input: preference to default to advanced
Campbell Barton [Wed, 11 Jul 2018 14:31:28 +0000 (16:31 +0200)]
Numeric Input: preference to default to advanced

3 years agoUI: Remove duplicate Viewport Display panel from Scene properties
Pablo Vazquez [Wed, 11 Jul 2018 14:07:32 +0000 (16:07 +0200)]
UI: Remove duplicate Viewport Display panel from Scene properties

The Shadow and SSAO settings here are accessible from the Shading popover.

3 years agoUI: Overlay popover - Wireframe slider style same as in shading popover
Pablo Vazquez [Wed, 11 Jul 2018 14:06:19 +0000 (16:06 +0200)]
UI: Overlay popover - Wireframe slider style same as in shading popover

Avoids having to switch between two icons, which was misaligned anyway.

3 years agoUI: Re-arrange Shading popover
Pablo Vazquez [Wed, 11 Jul 2018 14:05:05 +0000 (16:05 +0200)]
UI: Re-arrange Shading popover

* Unify X-Ray/Shadow toggle and factor, using the whole width gives you finer control
* Shadow settings next to intensity slider
* Cavity settings next to Ridge/Valley sliders
* Collapse Cavity settings when not used
* Make MatCap preview and browser dialog smaller. MatCaps are added by the user
so she is already familiar with how they look. No need to preview them that big
while browsing. To see the MatCaps in detail we have the User Preferences/Asset Manager.

Having popovers inside popovers triggers some minor glitches that will be addressed later.
(e.g. they open on mouse over and the popover arrow is not aligned)

3 years agoFix T55914: Blender 2.8 Crashes when increasing the repeat count for a track in NLA
Bastien Montagne [Wed, 11 Jul 2018 13:45:17 +0000 (15:45 +0200)]
Fix T55914: Blender 2.8 Crashes when increasing the repeat count for a track in NLA

Logical mistake in repeated strips drawing code.

3 years agoRevert removal of fake editing for numeric input
Campbell Barton [Wed, 11 Jul 2018 13:22:57 +0000 (15:22 +0200)]
Revert removal of fake editing for numeric input

Revert changes from 785159e6e4dfc5c010baab626667132020e1ddc7
but keep 'ifdef'.

@mont29 maintains this area and prefers to keep existing logic.
Note that there was misunderstanding that '*' was intended only
to be a backup key for '=' for keyboards which require holding a
modifier.

3 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Wed, 11 Jul 2018 12:56:13 +0000 (14:56 +0200)]
Merge branch 'master' into blender2.8

3 years agoFix T55912: saving Viewer Node image error.
Bastien Montagne [Wed, 11 Jul 2018 12:32:43 +0000 (14:32 +0200)]
Fix T55912: saving Viewer Node image error.

Images from viewer node needs the lock parameter...

3 years agoMinor cleanup to logic in BKE's imbuf releasing code.
Bastien Montagne [Wed, 11 Jul 2018 12:32:06 +0000 (14:32 +0200)]
Minor cleanup to logic in BKE's imbuf releasing code.

3 years agoUI: correct panel default-closed
Campbell Barton [Wed, 11 Jul 2018 12:04:17 +0000 (14:04 +0200)]
UI: correct panel default-closed