blender.git
3 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Mon, 16 Jul 2018 14:18:43 +0000 (16:18 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: Remove obscure flag which was only used for read in subsurf code
Sergey Sharybin [Mon, 16 Jul 2018 14:15:57 +0000 (16:15 +0200)]
Cleanup: Remove obscure flag which was only used for read in subsurf code

Some sort of rudiment from many years ago, is never set by 2.5x code.

3 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Mon, 16 Jul 2018 13:58:39 +0000 (15:58 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: Use const qualifier for UV vertex map
Sergey Sharybin [Mon, 16 Jul 2018 13:58:12 +0000 (15:58 +0200)]
Cleanup: Use const qualifier for UV vertex map

3 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Mon, 16 Jul 2018 13:47:03 +0000 (15:47 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: More clear naming in UV vertex/element mappings
Sergey Sharybin [Mon, 16 Jul 2018 13:37:27 +0000 (15:37 +0200)]
Cleanup: More clear naming in UV vertex/element mappings

Also use unsigned short for loop index within a polygon for UV vertex
mapping, which matches UV element mapping.

3 years agoMerge branch 'master' into blender2.8
Philipp Oeser [Mon, 16 Jul 2018 13:16:00 +0000 (15:16 +0200)]
Merge branch 'master' into blender2.8

3 years agoFix T55944: fbx export error with smoothing face
Philipp Oeser [Mon, 16 Jul 2018 07:48:52 +0000 (09:48 +0200)]
Fix T55944: fbx export error with smoothing face

ddee0931b868 added PROP_RAW_BOOLEAN case for foreach_set, but missed
foreach_get

Reviewed By: brecht

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

3 years agoFix T55527: creating a Quaternion without args should result in identity
Philipp Oeser [Mon, 16 Jul 2018 07:37:24 +0000 (09:37 +0200)]
Fix T55527: creating a Quaternion without args should result in identity
quaternion

Reviewed By: campbellbarton

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

3 years agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Mon, 16 Jul 2018 12:36:59 +0000 (14:36 +0200)]
Merge branch 'master' into blender2.8

3 years agoBuildbot: update for new VS2017 buildbot worker name.
Brecht Van Lommel [Mon, 16 Jul 2018 12:34:24 +0000 (14:34 +0200)]
Buildbot: update for new VS2017 buildbot worker name.

3 years agoFix compilation with older OpenSubdiv libraries
Sergey Sharybin [Mon, 16 Jul 2018 10:55:39 +0000 (12:55 +0200)]
Fix compilation with older OpenSubdiv libraries

Only fixes compilation error, the functionality will be limited.

Currently we don't care that much, since all the work is done in
the branch anyway.

Later on when we'll know which fixes we need to apply on top of
latest OpenSubdiv library we will call a library upgrade.

3 years agoOpenSubdiv: Remove one more unused file
Sergey Sharybin [Mon, 16 Jul 2018 10:34:19 +0000 (12:34 +0200)]
OpenSubdiv: Remove one more unused file

3 years agoOpenSubdiv: Remove unused file
Sergey Sharybin [Mon, 16 Jul 2018 10:33:32 +0000 (12:33 +0200)]
OpenSubdiv: Remove unused file

3 years agoOpenSubdiv: Remove UV coordinates from converter
Sergey Sharybin [Mon, 16 Jul 2018 09:12:02 +0000 (11:12 +0200)]
OpenSubdiv: Remove UV coordinates from converter

Converter only defines topology, not coordinates or (face)varying data.

3 years agoOpenSubdiv: Re-work C-API integration
Sergey Sharybin [Mon, 16 Jul 2018 07:28:05 +0000 (09:28 +0200)]
OpenSubdiv: Re-work C-API integration

Main goal is to make API simpler to follow (at least ion terms what
is defined/declared where, as opposite of handful big headers which
includes all the declarations), and also avoid a big set of long and
obscure functions.

Now C-API files are split into smaller ones, following OpenSubdiv
behavior more closely, and also function pointers in structures
used a lot more, which shortens functions names,

UV integration part in GL Mesh is mainly stripped away, it needs
to be done differently. On a related topic, UV coordinates API in
converter needs to be removed as well, we do not need coordinates,
only island connectivity information there.

Additional changes:

- Varying interpolation in evaluator API are temporarily disabled,
  need to extend API somewhere (probably, evaluator's API) to inform
  layout information of vertex data (whether it contains varying
  data, width, stride and such).

- Evaluator now can interpolate face-varying data.
  Only works for adaptive refiner, since some issues in OpenSubdiv
  itself.

Planned changes:

- Remove uv coordinates from TopologyConverter.
- Support evaluation of patches (as opposite to individual coordinates
  as it happens currently).
- Support more flexible layout of varying and face-varying data.
  It is stupid to assume varying is 3 floats and face-varying 2 floats.
- Support of second order derivatives.
- Everything else what i'm missing in this list.

3 years agoCleanup: doxy comments
Campbell Barton [Sun, 15 Jul 2018 18:29:11 +0000 (20:29 +0200)]
Cleanup: doxy comments

3 years agoGizmo: update Python templates
Campbell Barton [Sun, 15 Jul 2018 17:49:07 +0000 (19:49 +0200)]
Gizmo: update Python templates

3 years agoFix Cycles incorrect resize and CMYK conversion of uint16/half images.
Brecht Van Lommel [Sun, 15 Jul 2018 16:34:31 +0000 (18:34 +0200)]
Fix Cycles incorrect resize and CMYK conversion of uint16/half images.

3 years agoGPU_matrix: use Blender's naming conventions
Campbell Barton [Sun, 15 Jul 2018 13:27:15 +0000 (15:27 +0200)]
GPU_matrix: use Blender's naming conventions

Thanks to @sergey for review

3 years agoCleanup: use variable names based on term gizmo
Campbell Barton [Sun, 15 Jul 2018 12:24:10 +0000 (14:24 +0200)]
Cleanup: use variable names based on term gizmo

3 years ago3D View: New view gizmo design
Campbell Barton [Sun, 15 Jul 2018 09:28:28 +0000 (11:28 +0200)]
3D View: New view gizmo design

Simplify the default navigation gizmo.

See: T54723

3 years agoCleanup: style, doxy file
Campbell Barton [Sun, 15 Jul 2018 08:53:34 +0000 (10:53 +0200)]
Cleanup: style, doxy file

3 years agoCleanup: split GPU_batch
Campbell Barton [Sun, 15 Jul 2018 08:34:31 +0000 (10:34 +0200)]
Cleanup: split GPU_batch

Split out presets and utilities for creating batches.
These functions are quite specialized and not related to typical usage.

3 years agoUI: Default theme minor tweaks
Pablo Vazquez [Sun, 15 Jul 2018 02:44:45 +0000 (04:44 +0200)]
UI: Default theme minor tweaks

Darker color for group nodes and minor adjustments

3 years agoUI: Camera Display panel rename to Viewport Display
Pablo Vazquez [Sun, 15 Jul 2018 00:35:33 +0000 (02:35 +0200)]
UI: Camera Display panel rename to Viewport Display

Matches all other panels with Viewport properties

3 years agoUI: Use icon for Material Link
Pablo Vazquez [Sat, 14 Jul 2018 23:22:24 +0000 (01:22 +0200)]
UI: Use icon for Material Link

Communicates the same by giving more room to the Material datablock name

3 years agoUI: Use full width for ID blocks in World, Light, Camera, Texture
Pablo Vazquez [Sat, 14 Jul 2018 23:15:32 +0000 (01:15 +0200)]
UI: Use full width for ID blocks in World, Light, Camera, Texture

Also close Preview panel for lights by default and move World custom props last

3 years agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Sat, 14 Jul 2018 22:54:12 +0000 (00:54 +0200)]
Merge branch 'master' into blender2.8

3 years agoCycles: add voronoi features and distance settings from Blender.
charlie [Sat, 14 Jul 2018 11:11:28 +0000 (13:11 +0200)]
Cycles: add voronoi features and distance settings from Blender.

Features to get the 2nd, 3rd, 4th closest point instead of the closest, and
various distance metrics. No viewport/Eevee support yet.

Patch by Michel Anders, Charlie Jolly and Brecht Van Lommel.

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

3 years agoUI: Hide Preview panel by default on Material properties
Pablo Vazquez [Sat, 14 Jul 2018 22:13:35 +0000 (00:13 +0200)]
UI: Hide Preview panel by default on Material properties

And move Custom Properties panel last

3 years agoCleanup: use float3 SSE instead of ssef for voronoi texture.
Brecht Van Lommel [Sat, 14 Jul 2018 13:38:58 +0000 (15:38 +0200)]
Cleanup: use float3 SSE instead of ssef for voronoi texture.

3 years agoWM: rename manipulator to gizmo in the toolbar
Campbell Barton [Sat, 14 Jul 2018 21:58:07 +0000 (23:58 +0200)]
WM: rename manipulator to gizmo in the toolbar

3 years agoWM: rename manipulator to gizmo in Python API
Campbell Barton [Sat, 14 Jul 2018 21:55:20 +0000 (23:55 +0200)]
WM: rename manipulator to gizmo in Python API

3 years agoWM: rename manipulator to gizmo internally
Campbell Barton [Sat, 14 Jul 2018 21:49:00 +0000 (23:49 +0200)]
WM: rename manipulator to gizmo internally

3 years agoWM: rename files, manipulator -> gizmo
Campbell Barton [Sat, 14 Jul 2018 21:16:34 +0000 (23:16 +0200)]
WM: rename files, manipulator -> gizmo

Edit doxy files and header guards only.

3 years agoUI: rename manipulator to gizmo
Campbell Barton [Sat, 14 Jul 2018 20:29:35 +0000 (22:29 +0200)]
UI: rename manipulator to gizmo

This is a common, short, distinctive term often used for this purpose.

Changes to internal API's still needed.

3 years agoGPU_batch: fix error w/ interior line removal
Campbell Barton [Sat, 14 Jul 2018 13:59:47 +0000 (15:59 +0200)]
GPU_batch: fix error w/ interior line removal

Caused glitch w/ navigation icons showing inner lines.

3 years agoKeymap: reduce right shift in 2.7x keymap
Campbell Barton [Sat, 14 Jul 2018 09:42:36 +0000 (11:42 +0200)]
Keymap: reduce right shift in 2.7x keymap

3 years agoKeymap: reduce right shift in generated keymaps
Campbell Barton [Sat, 14 Jul 2018 09:29:48 +0000 (11:29 +0200)]
Keymap: reduce right shift in generated keymaps

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