blender.git
5 months agoMerge branch 'blender2.7'
Sergey Sharybin [Tue, 8 Jan 2019 10:47:35 +0000 (11:47 +0100)]
Merge branch 'blender2.7'

5 months agoMake DNA and RNA errors more meaningful and friendly
Sergey Sharybin [Tue, 8 Jan 2019 10:43:15 +0000 (11:43 +0100)]
Make DNA and RNA errors more meaningful and friendly

5 months agofix rotational limits not showing for GENERIC ridgid body constraint
Philipp Oeser [Tue, 8 Jan 2019 09:20:53 +0000 (10:20 +0100)]
fix rotational limits not showing for GENERIC ridgid body constraint

oversight in rB502aabb9d0c5

part of T60290

5 months agoFix workbench shading pie menu
Campbell Barton [Tue, 8 Jan 2019 06:17:52 +0000 (17:17 +1100)]
Fix workbench shading pie menu

Expand the enum since it's dynamic, depending on the render engine.

5 months agoVertex Paint: support vertex masking
Philipp Oeser [Tue, 8 Jan 2019 04:15:35 +0000 (15:15 +1100)]
Vertex Paint: support vertex masking

Working in 2.7x, was just disabled in 2.8x.

Fixes T60256

5 months agoCleanup: comments causing bad clang-format output
Campbell Barton [Mon, 7 Jan 2019 23:28:20 +0000 (10:28 +1100)]
Cleanup: comments causing bad clang-format output

5 months agoFix T60167: wrong shader nodes in Eevee add menu.
Brecht Van Lommel [Mon, 7 Jan 2019 16:32:40 +0000 (17:32 +0100)]
Fix T60167: wrong shader nodes in Eevee add menu.

5 months agoFix bad enum value since 299ff7dcd13
Sergey Sharybin [Mon, 7 Jan 2019 16:18:33 +0000 (17:18 +0100)]
Fix bad enum value since 299ff7dcd13

This is why out-sourcing things to a production-tested formatters
is a very very good idea.

5 months agoSubdiv: Use defined order of corner/edge vertices
Sergey Sharybin [Mon, 7 Jan 2019 16:08:54 +0000 (17:08 +0100)]
Subdiv: Use defined order of corner/edge vertices

This switches evaluation of vertices which are on the boundaries
of PTex faces to a single threaded one. While this introduces
some slowdown it fixes ambiguity of PTex index used to evaluate
particular vertex.

Possible alternative solutions would be:
- Do some pre-calculation of index, then do evaluation in threads.
- Try using Gregory patches and see if that makes any affect.

Fix T60235: Flickering of object instances

5 months agoSubdiv: Move single threaded code to a single function
Sergey Sharybin [Mon, 7 Jan 2019 14:34:59 +0000 (15:34 +0100)]
Subdiv: Move single threaded code to a single function

Allows to more easily add more passes which are supposed to be run
from a single thread.

5 months agoSubdiv: Cleanup, de-duplicate code
Sergey Sharybin [Mon, 7 Jan 2019 14:31:09 +0000 (15:31 +0100)]
Subdiv: Cleanup, de-duplicate code

5 months agoGP: Hide Options and Curves popovers for Fill brushes
Antonioya [Mon, 7 Jan 2019 15:22:20 +0000 (16:22 +0100)]
GP: Hide Options and Curves popovers for Fill brushes

5 months agoFix missing updates when muting/soloing/reordering NLA tracks.
Alexander Gavrilov [Mon, 7 Jan 2019 14:33:47 +0000 (17:33 +0300)]
Fix missing updates when muting/soloing/reordering NLA tracks.

5 months agoCleanup: corrections to last commit
Campbell Barton [Mon, 7 Jan 2019 14:00:40 +0000 (01:00 +1100)]
Cleanup: corrections to last commit

5 months agoCleanup: move DNA comments before struct members
Campbell Barton [Mon, 7 Jan 2019 11:19:13 +0000 (22:19 +1100)]
Cleanup: move DNA comments before struct members

Needed for clang-format in some cases, see: T53211

5 months agoCleanup: fix typo.
Bastien Montagne [Mon, 7 Jan 2019 13:04:23 +0000 (14:04 +0100)]
Cleanup: fix typo.

5 months agoFix T59151 Bevel modifier has bad input width for percent.
Howard Trickey [Mon, 7 Jan 2019 12:29:54 +0000 (07:29 -0500)]
Fix T59151 Bevel modifier has bad input width for percent.

The units scaling was inappropriate when the bevel value was
to be interpreted as a percent, so added a separate rna property
for "Width Percent" and made UI show the width appropriate for
current offset_type.

5 months agoOpenSundiv: Simplify tweaking of shared stencil/patch settings
Sergey Sharybin [Mon, 7 Jan 2019 09:29:48 +0000 (10:29 +0100)]
OpenSundiv: Simplify tweaking of shared stencil/patch settings

5 months agoFix T60247: app.handlers.undo_post calls undo_pre's function.
Bastien Montagne [Mon, 7 Jan 2019 08:51:41 +0000 (09:51 +0100)]
Fix T60247: app.handlers.undo_post calls undo_pre's function.

Undo and redo post were actually calling respective pre funcs...

5 months agoCleanup: naming for return args
Campbell Barton [Mon, 7 Jan 2019 04:33:25 +0000 (15:33 +1100)]
Cleanup: naming for return args

5 months agoFix T58964: drivers_remove fails w/ missing paths
Campbell Barton [Mon, 7 Jan 2019 04:27:59 +0000 (15:27 +1100)]
Fix T58964: drivers_remove fails w/ missing paths

5 months agoPyAPI: Add AnimationData.drivers.new/remove methods
Campbell Barton [Mon, 7 Jan 2019 03:03:34 +0000 (14:03 +1100)]
PyAPI: Add AnimationData.drivers.new/remove methods

Low level functions to directly create and remove drivers,
use when high level functions aren't flexible enough, see: T58964.

5 months agoCleanup: tweak last commit
Campbell Barton [Mon, 7 Jan 2019 00:16:11 +0000 (11:16 +1100)]
Cleanup: tweak last commit

5 months agoFix generated toolbar keymap w/ annotation tool
Campbell Barton [Mon, 7 Jan 2019 00:00:46 +0000 (11:00 +1100)]
Fix generated toolbar keymap w/ annotation tool

5 months agoFix T59944: Template operator_mesh_uv.py fails
Sebastian Parborg [Sun, 6 Jan 2019 23:20:20 +0000 (10:20 +1100)]
Fix T59944: Template operator_mesh_uv.py fails

5 months agoBetter bevel normal hardening when some faces were smooth.
Howard Trickey [Sun, 6 Jan 2019 23:12:00 +0000 (18:12 -0500)]
Better bevel normal hardening when some faces were smooth.

Harden normals causes normal splitting, which will not give the
appearance expected due to autosmooth unless some edges are sharpened,
so this change fixes that. Also bevel tool will turn on autosmooth
if not already on if hardening normals.

5 months agoCleanup: add trailing commas to structs
Campbell Barton [Sun, 6 Jan 2019 13:58:10 +0000 (00:58 +1100)]
Cleanup: add trailing commas to structs

5 months agoCorrect error in recent button type check
Campbell Barton [Sun, 6 Jan 2019 22:12:14 +0000 (09:12 +1100)]
Correct error in recent button type check

5 months agoUI: Use grid-flow layout throughout Preferences
William Reynish [Sun, 6 Jan 2019 20:51:07 +0000 (21:51 +0100)]
UI: Use grid-flow layout throughout Preferences

Makes the entire Preferences UI nicely width responsive. Also, move
use_tabs_as_spaces option back to file path options, it was too lonely
in its own panel ;)

5 months agoFix typo.
Bastien Montagne [Sun, 6 Jan 2019 17:21:57 +0000 (18:21 +0100)]
Fix typo.

5 months agoGP: Fix missing initialization converting 2.7 files
Antonioya [Sun, 6 Jan 2019 16:22:03 +0000 (17:22 +0100)]
GP: Fix missing initialization converting 2.7 files

5 months agoFix T60213: crash loading .blend file with material override.
Brecht Van Lommel [Sun, 6 Jan 2019 14:22:47 +0000 (15:22 +0100)]
Fix T60213: crash loading .blend file with material override.

5 months agoUI: tweaks to user preferences layout.
Brecht Van Lommel [Sun, 6 Jan 2019 11:56:18 +0000 (12:56 +0100)]
UI: tweaks to user preferences layout.

* Expand more sub-panels by default.
* Move release confirms and numeric input settings to Input.
* Move 3D cursor settings to Editing.
* Move region overlap to Interface.

5 months agoCleanup: add trailing commas to structs
Campbell Barton [Sun, 6 Jan 2019 13:06:58 +0000 (00:06 +1100)]
Cleanup: add trailing commas to structs

Needed for clang formatting to workaround bug/limit, see: T53211

5 months agoobject.dimensions: add warning about multiple consecutive assignments.
Bastien Montagne [Sun, 6 Jan 2019 12:11:31 +0000 (13:11 +0100)]
object.dimensions: add warning about multiple consecutive assignments.

Since this is API-only prop now, it's worth warning about that
limitation.

Follow-up to comments in rB9c928bb93e04.

5 months agoFix T60187: Latest couple of builds fail to run, need libGLX.so.0
Sergey Sharybin [Sun, 6 Jan 2019 10:51:38 +0000 (11:51 +0100)]
Fix T60187: Latest couple of builds fail to run, need libGLX.so.0

5 months agoUI: tweak preferences
Campbell Barton [Sun, 6 Jan 2019 09:41:03 +0000 (20:41 +1100)]
UI: tweak preferences

- Move author to save&load
  (was incorrectly under text editor).
- Rename Memory -> Memory/Limits
  (some of the settings aren't obviously todo with memory).

5 months agoCleanup: style, line length
Campbell Barton [Sun, 6 Jan 2019 09:26:08 +0000 (20:26 +1100)]
Cleanup: style, line length

5 months agofix T59743: Collada exporter: Add option for exporting flat curves
Gaia Clary [Sat, 5 Jan 2019 20:36:28 +0000 (21:36 +0100)]
fix T59743: Collada exporter: Add option for exporting flat curves

The Collada exporter suppresses the export of flat animation curves
to optimize the animation (in fact to make the exported file smaller).

But sometimes it is important to also have the flat curves exported
because they may be needed to define an initial transformation to
a fixed location - like translating the weapon from the ground floor
to the back of the model in the report.

I added a new option "all keyed curves" which is disabled by default
but when enabled it also exports flat curves.

feedback is very welcome

5 months agoCorrect version patching of Preferences theme
Julian Eisel [Sat, 5 Jan 2019 18:43:09 +0000 (19:43 +0100)]
Correct version patching of Preferences theme

In a77b63c56943eb, the Preferences navigation region background was
made brighter. Recently stored userpref.blends (since b00963afc14978b,
so beta release included) would still use the slightly darker
background for the Preferences navigation region.
Now the version patch added for a77b63c56943eb also sets the new color
for those recent configs.

5 months agofix T60092 collada exporter: exporting a rig with one single bone fails
Gaia Clary [Sat, 5 Jan 2019 17:03:49 +0000 (18:03 +0100)]
fix T60092 collada exporter: exporting a rig with one single bone fails

The problem was that removing entries from a vetor while iterating
the vector was implemented badly. This caused the failure when only
one element was in vector.

5 months agoFix T60183: Images as Planes (addon) Attribute Error.
Bastien Montagne [Sat, 5 Jan 2019 15:33:38 +0000 (16:33 +0100)]
Fix T60183: Images as Planes (addon) Attribute Error.

Partially revert rB1b8c3774a86ebc04fceb9cd, there is no good reason to
make object.dimensions read-only, it works perfectly well from python
API! Only breaking case was that weird multi-editing UI feature, due to
how it sets things. But RNA setter itself works fine, and it's a handy
shortcut/helper for scripts.

Also when breaking API, it is good practivce to at least check official
add-ons...

5 months agoTheme: update
Campbell Barton [Sat, 5 Jan 2019 10:32:38 +0000 (21:32 +1100)]
Theme: update

5 months agoUI: length now scales proportionally w/ multi-but
Campbell Barton [Sat, 5 Jan 2019 09:09:25 +0000 (20:09 +1100)]
UI: length now scales proportionally w/ multi-but

Use for object dimensions.

5 months agoCleanup: 3d view panel median value storage
Campbell Barton [Sat, 5 Jan 2019 01:18:02 +0000 (12:18 +1100)]
Cleanup: 3d view panel median value storage

5 months agoCleanup: avoid function call for pointer compare
Campbell Barton [Sat, 5 Jan 2019 08:55:25 +0000 (19:55 +1100)]
Cleanup: avoid function call for pointer compare

5 months agoNLA: rewrite evaluation channel data structures.
Alexander Gavrilov [Sat, 15 Dec 2018 13:09:27 +0000 (16:09 +0300)]
NLA: rewrite evaluation channel data structures.

Implementing a new intelligent mixing mode that combines quaternions
via multiplication requires rewriting the NLA code to recombine array
properties from separate scalar channels during evaluation.

In addition, stable evaluation of NLA stack requires that any channel
that is touched by any of the actions in the stack should always be
set to a definite value by evaluation, even if no strip affects it
at this point of the timeline. The obvious choice for the fallback
is the default value of the property.

To make scanning all actions reasonably efficient, mapping paths to
channels should be done using hash tables.

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

5 months agoUI: Preferences Redesign Part 2
Severin [Fri, 4 Jan 2019 20:40:16 +0000 (21:40 +0100)]
UI: Preferences Redesign Part 2

(Part 1 was 00963afc14978b)

Does the following changes visible to users:
* Use panels and sub-panels for more structured & logical grouping
* Re-organized options more logically than before (see images in D4148)
* Use flow layout (single column by default).
* New layout uses horizontal margin if there's enough space.
* Change size of Preferences window to suit new layout.
* Move keymap related options from "Input" into own section.
* Own, left-bottom aligned region for Save Preferences button.
* Adjustments of names, tooltips & icons.
* Move buttons from header into the main region (except editor switch).
* Hide Preferences header when opened in temporary window.
* Use full area width for header.
* Don't use slider but regular number widget for UI scale.
* Gray out animation player path option if player isn't "Custom"

Internal changes:
* Rearrange RNA properties to match changed UI structure.
* Introduces new "EXECUTE" region type, see reasoning in D3982.
* Changes to panel layout and AZone code for dynamic panel region.
* Bumps subversion and does versioning for new regions.

RNA changes are documented in the release notes:
https://wiki.blender.org/wiki/Reference/Release_Notes/2.80/Python_API/Preferences_API

Design & implementation mostly done by @billreynish and myself.
I recommend checking out the screenshots posted by William:
https://developer.blender.org/D4148#93787

Reviewed By: brecht

Maniphest Tasks: T54115

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

5 months agoGP: Add Fill keyframe if active not equal to CFRA
Antonioya [Fri, 4 Jan 2019 18:35:42 +0000 (19:35 +0100)]
GP: Add Fill keyframe if active not equal to CFRA

When fill a stroke if the fill layer hasn't keyframe, the fill is wrong because previous fill shape hide area to fill.

Now, if the keyframe is missing in the active layer for the current frame, a new frame is added.

5 months agoFix T57890: freestyle rendering crash.
Brecht Van Lommel [Fri, 4 Jan 2019 16:35:07 +0000 (17:35 +0100)]
Fix T57890: freestyle rendering crash.

Depsgraph objects are deleted after conversion to Freestyle data structures,
so don't keep a pointer to their name strings.

5 months agoFix T60157: Applying subdivide GP modifier gets wrong fill
Antonioya [Fri, 4 Jan 2019 16:18:03 +0000 (17:18 +0100)]
Fix T60157: Applying subdivide GP modifier gets wrong fill

The problem was the triangulation cache was not initializated.

5 months agoFix T58669, T59772: freestyle + EEVEE render not working.
Brecht Van Lommel [Fri, 4 Jan 2019 16:06:50 +0000 (17:06 +0100)]
Fix T58669, T59772: freestyle + EEVEE render not working.

5 months agoFix T59546: Grease Pencil Edit: Rotation around individual origins error
Antonioya [Fri, 4 Jan 2019 16:01:39 +0000 (17:01 +0100)]
Fix T59546: Grease Pencil Edit: Rotation around individual origins error

Thanks to Habib Gahbiche (@zazizizou) for helping fixing this bug. See D4156.

5 months agoFix T58692: splash screen next not working when using BLENDER_USER_CONFIG.
Brecht Van Lommel [Fri, 4 Jan 2019 15:24:11 +0000 (16:24 +0100)]
Fix T58692: splash screen next not working when using BLENDER_USER_CONFIG.

5 months agoDepsgraph: Fix missing relation from node tree to light
Sergey Sharybin [Fri, 4 Jan 2019 15:17:53 +0000 (16:17 +0100)]
Depsgraph: Fix missing relation from node tree to light

Was only happening when lamp had driver on the Light datablock.

Reported by Dalai Felinto in T60137.

5 months agoFix T60124: Multires modifier not reading data from external files
Sergey Sharybin [Fri, 4 Jan 2019 14:57:44 +0000 (15:57 +0100)]
Fix T60124: Multires modifier not reading data from external files

5 months agoSilence warning
Dalai Felinto [Fri, 4 Jan 2019 14:57:17 +0000 (12:57 -0200)]
Silence warning

5 months agoOutliner: better support for clips/masks ('Blender File' view)
Philipp Oeser [Sat, 29 Dec 2018 17:26:04 +0000 (18:26 +0100)]
Outliner: better support for clips/masks ('Blender File' view)

- clips/masks were not showing an icon [both dont have a dedicated icon,
took the ones used elsewhere]
- masks hit an assert in outliner_add_element()
- missing outliner update when adding a mask

spotted while looking into T59939

Reviewers: mont29, brecht

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

5 months agoUI: fix incorrect collapse menu button alignment.
Harley Acheson [Fri, 4 Jan 2019 14:12:12 +0000 (15:12 +0100)]
UI: fix incorrect collapse menu button alignment.

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

5 months agoUI: make text editor scrollbar with consistent with other editors.
Harley Acheson [Fri, 4 Jan 2019 14:11:59 +0000 (15:11 +0100)]
UI: make text editor scrollbar with consistent with other editors.

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

5 months agoUI: alter scrollbar extents to not interfere with split/join areas.
Harley Acheson [Fri, 4 Jan 2019 14:11:51 +0000 (15:11 +0100)]
UI: alter scrollbar extents to not interfere with split/join areas.

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

5 months agoUI: fix incorrect area splitting shape in corners.
Harley Acheson [Fri, 4 Jan 2019 14:09:11 +0000 (15:09 +0100)]
UI: fix incorrect area splitting shape in corners.

It was intended to be a quarter-circle, however it was oriented wrong.
Since the triangle is no longer visible and does not overlap with the
button anymore, this just makes it a square.

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

5 months agoUI: fix display of menu buttons without text and icon, and only a down arrow.
Harley Acheson [Fri, 4 Jan 2019 14:08:47 +0000 (15:08 +0100)]
UI: fix display of menu buttons without text and icon, and only a down arrow.

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

5 months agoUI: fix too wide resize area on edges of nodes, interfering with content.
Harley Acheson [Fri, 4 Jan 2019 14:08:24 +0000 (15:08 +0100)]
UI: fix too wide resize area on edges of nodes, interfering with content.

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

5 months agoFix T59898: Slow modifier stack on trasnform
Sergey Sharybin [Fri, 4 Jan 2019 13:47:16 +0000 (14:47 +0100)]
Fix T59898: Slow modifier stack on trasnform

5 months agoFix T58657: blender 2.7 keymap Alt+A does not work for animation playback.
Brecht Van Lommel [Fri, 4 Jan 2019 13:34:07 +0000 (14:34 +0100)]
Fix T58657: blender 2.7 keymap Alt+A does not work for animation playback.

5 months agoFix T59946: multiple quit dialogs possible.
Sebastian Parborg [Fri, 4 Jan 2019 13:23:49 +0000 (14:23 +0100)]
Fix T59946: multiple quit dialogs possible.

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

5 months agoFix T60068: missing viewport update when renaming objects in outliner.
Sebastian Parborg [Fri, 4 Jan 2019 13:21:35 +0000 (14:21 +0100)]
Fix T60068: missing viewport update when renaming objects in outliner.

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

5 months agoFix T60132: Convert hair particles to mesh
Sergey Sharybin [Fri, 4 Jan 2019 13:28:47 +0000 (14:28 +0100)]
Fix T60132: Convert hair particles to mesh

Needed to port operator to use evaluated particle system.

But also changed interface to always show Convert button when
draw type is set to Path (Hair particle system is forced to
be draws as path). This avoid rather expensive lookup on every
redraw, but will show Convert button for un-baked particle
emitter.

Probably, an acceptable compromise.

5 months agoPartial fix T60148: EEVEE hangs when anamorphic bokeh is too low
Dalai Felinto [Fri, 4 Jan 2019 13:15:23 +0000 (11:15 -0200)]
Partial fix T60148: EEVEE hangs when anamorphic bokeh is too low

Fixed by setting the limit to the original limit I used for Cycles.
Rendering still goes extremely slow when bokeh is lower than 1.0.

But at least now it is "waitable". With lower numbers than 0.01 I don't
think we would ever get a render to finish.

@fclem feel free to address the real root of the problem, but I'm afraid
it may be a limitation of the algorithm you are using.

5 months agoFix T59768: UV context menu showing in image editor.
Brecht Van Lommel [Fri, 4 Jan 2019 12:47:50 +0000 (13:47 +0100)]
Fix T59768: UV context menu showing in image editor.

5 months agoEEVEE DoF: Fix runtime error: division by zero when blades was 0
Dalai Felinto [Fri, 4 Jan 2019 12:25:59 +0000 (10:25 -0200)]
EEVEE DoF: Fix runtime error: division by zero when blades was 0

Even though the fragment shader was already discarding all members of
dof_bokeh_sides when blades was zero, the C code was still trying to
use this for a few divisions leading to runtime asserts.

Those are harmless yet can lead some to waste time while pursuiting
other bugs (namely a near freeze when blades aspect ratio is too low).

5 months agoFix T60044: Sculpting brush is not visible on file load
Dalai Felinto [Wed, 2 Jan 2019 11:34:41 +0000 (09:34 -0200)]
Fix T60044: Sculpting brush is not visible on file load

The original issue is that wm->paintcursors is empty until we go in and
out of the sculpt mode. To fix this we need to toggle inside the sculpt
mode.

This is usually tackled by ED_editors_init(), however the sculpt mode
toggling was never call because the object technically had "mode data".

Reviewers: campbellbarton

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

5 months agoCleanup: Spelling
Sergey Sharybin [Fri, 4 Jan 2019 11:51:10 +0000 (12:51 +0100)]
Cleanup: Spelling

5 months agoProvide more information on unknown GPU
Sergey Sharybin [Fri, 4 Jan 2019 11:50:05 +0000 (12:50 +0100)]
Provide more information on unknown GPU

5 months agoMerge branch 'blender2.7'
Sergey Sharybin [Fri, 4 Jan 2019 11:42:13 +0000 (12:42 +0100)]
Merge branch 'blender2.7'

5 months agoRecognize llvmpipe renderer as software OpenGL
Sergey Sharybin [Fri, 4 Jan 2019 11:41:35 +0000 (12:41 +0100)]
Recognize llvmpipe renderer as software OpenGL

5 months agoObject: don't flip scale when setting dimensions
Campbell Barton [Fri, 4 Jan 2019 08:58:18 +0000 (19:58 +1100)]
Object: don't flip scale when setting dimensions

5 months agoFix T54771: Can't change multiple dimensions at once
Campbell Barton [Fri, 4 Jan 2019 08:52:13 +0000 (19:52 +1100)]
Fix T54771: Can't change multiple dimensions at once

- Use non-rna button for adjusting dimensions.
- Make Object.dimensions RNA read-only since it never worked well.
  This is mainly a UI editing feature.

5 months agoCleanup: unused calculation
Campbell Barton [Fri, 4 Jan 2019 08:08:46 +0000 (19:08 +1100)]
Cleanup: unused calculation

5 months agoCleanup: indentation (right shift)
Campbell Barton [Fri, 4 Jan 2019 08:08:09 +0000 (19:08 +1100)]
Cleanup: indentation (right shift)

5 months agoMerge branch 'blender2.7'
Campbell Barton [Fri, 4 Jan 2019 06:08:34 +0000 (17:08 +1100)]
Merge branch 'blender2.7'

5 months agoFix T60099: Inconsistent normals from spin tool
Campbell Barton [Fri, 4 Jan 2019 05:23:04 +0000 (16:23 +1100)]
Fix T60099: Inconsistent normals from spin tool

5 months agoSpin Tool: don't flip when using a negative angle
Campbell Barton [Fri, 4 Jan 2019 05:17:49 +0000 (16:17 +1100)]
Spin Tool: don't flip when using a negative angle

The intention was to flip normals when extruding in the opposite
direction, however the sign of the angle isn't meaningful unless
the geometry center and region normal are taken into account.

Disable, may add back in a way that works more predictably.

5 months agoFix eternal loop in spin tool merge first/last
Campbell Barton [Fri, 4 Jan 2019 05:08:42 +0000 (16:08 +1100)]
Fix eternal loop in spin tool merge first/last

5 months agoHaiku: build fix
Campbell Barton [Fri, 4 Jan 2019 06:04:04 +0000 (17:04 +1100)]
Haiku: build fix

D4130 by @miqlas

5 months agoHaiku: build fix
Campbell Barton [Fri, 4 Jan 2019 06:04:04 +0000 (17:04 +1100)]
Haiku: build fix

D4130 by @miqlas

5 months agoFix T60099: Inconsistent normals from spin tool
Campbell Barton [Fri, 4 Jan 2019 05:23:04 +0000 (16:23 +1100)]
Fix T60099: Inconsistent normals from spin tool

5 months agoSpin Tool: don't flip when using a negative angle
Campbell Barton [Fri, 4 Jan 2019 05:17:49 +0000 (16:17 +1100)]
Spin Tool: don't flip when using a negative angle

The intention was to flip normals when extruding in the opposite
direction, however the sign of the angle isn't meaningful unless
the geometry center and region normal are taken into account.

Disable, may add back in a way that works more predictably.

5 months agoFix eternal loop in spin tool merge first/last
Campbell Barton [Fri, 4 Jan 2019 05:08:42 +0000 (16:08 +1100)]
Fix eternal loop in spin tool merge first/last

5 months agoMerge branch 'blender2.7'
Campbell Barton [Fri, 4 Jan 2019 00:26:11 +0000 (11:26 +1100)]
Merge branch 'blender2.7'

5 months agoCleanup: use typed unsigned ints
Campbell Barton [Fri, 4 Jan 2019 00:09:18 +0000 (11:09 +1100)]
Cleanup: use typed unsigned ints

5 months agoCleanup: use typed unsigned ints
Campbell Barton [Fri, 4 Jan 2019 00:05:53 +0000 (11:05 +1100)]
Cleanup: use typed unsigned ints

5 months agoUI: refactor layout vars out of uiFontStyle
Campbell Barton [Thu, 3 Jan 2019 22:58:03 +0000 (09:58 +1100)]
UI: refactor layout vars out of uiFontStyle

Word wrap and alignment layout args only used by UI_fontstyle_draw
were vars in uiFontStyle.
These were written to before drawing, so better pass as an argument.

Pass uiFontStyle & uiWidgetColors as const args.

5 months agoMissed last commit
Campbell Barton [Thu, 3 Jan 2019 21:37:17 +0000 (08:37 +1100)]
Missed last commit

5 months ago3D View: use full opacity by default
Campbell Barton [Thu, 3 Jan 2019 21:21:07 +0000 (08:21 +1100)]
3D View: use full opacity by default

Vertex paint overlays the color w/ solid mode,
Having a partial overlay makes the sample tool not give useful results.

5 months agoFix T60101: vertex paint color sample
Sebastian Parborg [Thu, 3 Jan 2019 21:02:17 +0000 (08:02 +1100)]
Fix T60101: vertex paint color sample

5 months agoFix T59049: some modal transform keys no working in custom keymaps.
Brecht Van Lommel [Thu, 3 Jan 2019 18:53:46 +0000 (19:53 +0100)]
Fix T59049: some modal transform keys no working in custom keymaps.

5 months agoFix T58113 Multiple problems with bevel harden normals.
Howard Trickey [Thu, 3 Jan 2019 18:39:52 +0000 (13:39 -0500)]
Fix T58113 Multiple problems with bevel harden normals.

Move the bevel hardening code all into bmesh_bevel.c.
Based on user feedback, rewrote the bevel hardening algorithm
to be more what users want.
Based on user feedback, changed the UI, removing some
not-useful options. Now hardening normals while beveling
is enabled by a simple checkbox.
Now setting face strength gives options for which faces
get their face strength set.

5 months agoFix T59349: Cycles viewport render flickering when changing some settings.
Brecht Van Lommel [Thu, 3 Jan 2019 18:21:10 +0000 (19:21 +0100)]
Fix T59349: Cycles viewport render flickering when changing some settings.