blender.git
20 months agoFix T56940: crash rendering with OpenGL as engine.
Brecht Van Lommel [Fri, 28 Sep 2018 08:39:20 +0000 (10:39 +0200)]
Fix T56940: crash rendering with OpenGL as engine.

20 months agoMake struct initialization happy for CLang
Sergey Sharybin [Fri, 28 Sep 2018 08:13:56 +0000 (10:13 +0200)]
Make struct initialization happy for CLang

20 months agoSubdiv: Return enumerator of proper type
Sergey Sharybin [Fri, 28 Sep 2018 08:13:18 +0000 (10:13 +0200)]
Subdiv: Return enumerator of proper type

Was harmless, that code is never to be reached.

20 months agoFix/workaround stupidity of CLang
Sergey Sharybin [Fri, 28 Sep 2018 08:11:28 +0000 (10:11 +0200)]
Fix/workaround stupidity of CLang

Seems there is something wrong with ternary operator
and type deduction.

Copying matrix to a variable with cleaner name seems
to be better solution than to force cast to an array.

20 months agoGPencil: Avoid tautology assignment
Sergey Sharybin [Fri, 28 Sep 2018 08:10:25 +0000 (10:10 +0200)]
GPencil: Avoid tautology assignment

This is considered a warning which is usually promoted to
error in developers' environment.

Probably worth adding an assert or so, if possible?

20 months agoCMake: Default to C11 for Clang and GCC
Sergey Sharybin [Fri, 28 Sep 2018 08:06:59 +0000 (10:06 +0200)]
CMake: Default to C11 for Clang and GCC

The option WITH_C11 is gone, and C++ is defaulting to C++11 now,
so guess it's fine to assume we need C11 now.

This is technically what we use anyway, with all the re-definitions
of structs (like when we typedef anonymous struct in a header file
first, and them define it to a proper structure in implementation
file).

20 months agoGPencil: Use proper enumerator type
Sergey Sharybin [Fri, 28 Sep 2018 08:04:31 +0000 (10:04 +0200)]
GPencil: Use proper enumerator type

Was using GpencilModifierType in type definition,
but rest of usage was using values from GpencilModifierTypeType.

20 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Fri, 28 Sep 2018 07:47:02 +0000 (09:47 +0200)]
Merge branch 'master' into blender2.8

20 months agoFix compilation errors and warnings with Clang-6
Sergey Sharybin [Fri, 28 Sep 2018 07:46:12 +0000 (09:46 +0200)]
Fix compilation errors and warnings with Clang-6

20 months agoPython IO: Initial nodal shader support for import AND export.
Bastien Montagne [Thu, 27 Sep 2018 20:03:30 +0000 (22:03 +0200)]
Python IO: Initial nodal shader support for import AND export.

That new bpy_extras' node_shader_utils module is remotely based on
existing addons' cycles_shader_compat module. It has some key
differences though:
 - It is based on Principled shader, instead of the noodle combination
   of half a dozen simpler shaders.
 - It does not do any value conversion (like e.g. clamping, which was
   only suited for FBX). Any conversion/adaptation is to be done
   by each IO add-on.
 - It extensively uses accessors to offer:
   - Easy read/write of values, hiding all the hairy noodly nodes
     (principled shader helps a lot here).
   - lazy creation of most nodes on accessing (when generating a
     material), which avoids getting unused nodes in final shader.
 - We only use Principled BSDF so far though, which means some features
   supported by previous system are not yet implemented in new one.

Note that, even though we support 'exporting' side of things, this will
only work for a very specific (and basic) kind of shader. This will have
to be clearly explained in end-user documentation.

Also, that code has had some basic testing, but most certainly needs a
lot more refinement.

As proof-of-concept, OBJ IO script will be updated to use that new
system after that commit.

20 months agoGP: Expand properties material list
Antonioya [Thu, 27 Sep 2018 20:10:39 +0000 (22:10 +0200)]
GP: Expand properties material list

20 months agoGP: Expand properties layer list
Antonioya [Thu, 27 Sep 2018 20:08:27 +0000 (22:08 +0200)]
GP: Expand properties layer list

20 months agoGP: Remove separator line in materials submenu
Antonioya [Thu, 27 Sep 2018 20:06:47 +0000 (22:06 +0200)]
GP: Remove separator line in materials submenu

20 months agoGP: Remove material submenu icons
Antonioya [Thu, 27 Sep 2018 20:05:32 +0000 (22:05 +0200)]
GP: Remove material submenu icons

The icons made too heavy for the UI

20 months agoGP: Expand topbar layers list
Antonioya [Thu, 27 Sep 2018 20:03:50 +0000 (22:03 +0200)]
GP: Expand topbar layers list

20 months agoGP: Make materials topbar list longer
Antonioya [Thu, 27 Sep 2018 19:11:13 +0000 (21:11 +0200)]
GP: Make materials topbar list longer

20 months agoGP: Reorganize topbar material selector
Antonioya [Thu, 27 Sep 2018 18:50:05 +0000 (20:50 +0200)]
GP: Reorganize topbar material selector

20 months agoCleanup: remove unused DerivedMesh code.
Sebastian Parborg [Thu, 27 Sep 2018 13:54:10 +0000 (15:54 +0200)]
Cleanup: remove unused DerivedMesh code.

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

20 months agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Thu, 27 Sep 2018 18:12:14 +0000 (20:12 +0200)]
Merge branch 'master' into blender2.8

20 months agoUI: use new 3D viewport navigation icons and image icon in add menu.
Brecht Van Lommel [Thu, 27 Sep 2018 17:15:18 +0000 (19:15 +0200)]
UI: use new 3D viewport navigation icons and image icon in add menu.

I had to make the viewport navigation icons a bit smaller in the SVG since
the edges were being clipped off, we only support 16x16 icons currently.
They are a bit blurry because of this.

20 months agoUI: add first batch of monochrome icons designed by Andrzej Ambroz.
Brecht Van Lommel [Thu, 27 Sep 2018 15:05:59 +0000 (17:05 +0200)]
UI: add first batch of monochrome icons designed by Andrzej Ambroz.

Currently only for simple commands like play, add, zoom, expand, etc.

20 months agoUI: draw mono icons with button type text color, instead of area text color.
Brecht Van Lommel [Thu, 27 Sep 2018 16:25:50 +0000 (18:25 +0200)]
UI: draw mono icons with button type text color, instead of area text color.

20 months agoFix blender_icons_update.py not working after mono icon changes.
Brecht Van Lommel [Thu, 27 Sep 2018 16:38:36 +0000 (18:38 +0200)]
Fix blender_icons_update.py not working after mono icon changes.

20 months agoGP: Remove old annotation panel from Image editor
Antonioya [Thu, 27 Sep 2018 16:03:13 +0000 (18:03 +0200)]
GP: Remove old annotation panel from Image editor

This has been replaced with tools.

20 months agoGP: Enable force fill recalc by default
Antonioya [Thu, 27 Sep 2018 15:39:16 +0000 (17:39 +0200)]
GP: Enable force fill recalc by default

20 months agoFix missing libquery processing of ID pointers in GPencil Modifiers.
Bastien Montagne [Thu, 27 Sep 2018 14:33:47 +0000 (16:33 +0200)]
Fix missing libquery processing of ID pointers in GPencil Modifiers.

...

20 months agoImplement a new dedicated weight painting shader.
Jeroen Bakker [Tue, 25 Sep 2018 16:19:59 +0000 (19:19 +0300)]
Implement a new dedicated weight painting shader.

Move the weight paint drawing to the fragment shader. The shader
uses a texture that uses the U.coba_weight custom color band, or
an internal color band.

In addition to actual weights, the shader has to display two
alert colors: missing vertex group, and zero weight. The zero
weight alert has to be blended with regular weight colors,
so that a single alert vertex surrounded by weighted ones is
still visible.

Reviewers: campbellbarton, fclem

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

20 months agoEmpty Object: new "Load Image as Empty" operator
Jacques Lucke [Thu, 27 Sep 2018 14:21:51 +0000 (16:21 +0200)]
Empty Object: new "Load Image as Empty" operator

New entry in the Add Object menu.
Opens a file selector and creates a new empty object from the selected image.
Previously more steps were needed to archieve the same.

Differential: https://developer.blender.org/D3708

Reviewer: brecht

20 months agoFix T56915: Selectability in Solid Xray Mode
Clément Foucault [Thu, 27 Sep 2018 14:09:04 +0000 (16:09 +0200)]
Fix T56915: Selectability in Solid Xray Mode

This was caused by the object center being selected by the wireframe pass.

The wireframe pass is now only drawn if we search for the nearest surface.
This makes all wire objects (like non-meshes objects) higher priority than
mesh surfaces.

20 months agoRefactor: Copy/Paste values from/to UI
Jacques Lucke [Thu, 27 Sep 2018 14:06:24 +0000 (16:06 +0200)]
Refactor: Copy/Paste values from/to UI

Previously copy and paste was handled within the same function using a mode switch, which is quite ugly in most cases.
This patch separates the function into two and splits up those in even smaller functions to increase maintainability.

Finally one new feature was added: You can copy from disabled fields now. (requested by hjalti)

Reviewers: brecht

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

20 months agoFix cycles_cubin_cc build error on macOS.
Brecht Van Lommel [Thu, 27 Sep 2018 13:59:14 +0000 (15:59 +0200)]
Fix cycles_cubin_cc build error on macOS.

20 months agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Thu, 27 Sep 2018 13:49:59 +0000 (15:49 +0200)]
Merge branch 'master' into blender2.8

20 months agoSpelling fixes in comments and descriptions, patch by luzpaz.
Brecht Van Lommel [Thu, 27 Sep 2018 13:35:22 +0000 (15:35 +0200)]
Spelling fixes in comments and descriptions, patch by luzpaz.

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

20 months agoCleanup: fix harmless compiler warnings.
Brecht Van Lommel [Thu, 27 Sep 2018 12:29:53 +0000 (14:29 +0200)]
Cleanup: fix harmless compiler warnings.

20 months agoFix CUDA build with Xcode 10.0, use nvrtc due to incompatible compilers.
Brecht Van Lommel [Thu, 27 Sep 2018 13:17:49 +0000 (15:17 +0200)]
Fix CUDA build with Xcode 10.0, use nvrtc due to incompatible compilers.

20 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Thu, 27 Sep 2018 12:51:33 +0000 (14:51 +0200)]
Merge branch 'master' into blender2.8

20 months agoCycles: Cleanup
Sergey Sharybin [Thu, 27 Sep 2018 12:47:52 +0000 (14:47 +0200)]
Cycles: Cleanup

20 months agoCycles: Sync BVH8 unaligned node packing code with BVH4
Sergey Sharybin [Thu, 27 Sep 2018 11:42:16 +0000 (13:42 +0200)]
Cycles: Sync BVH8 unaligned node packing code with BVH4

Similar to dfae3de6bdf.

20 months agoUI: new clip editor panels and headers layout.
Sebastian Koenig [Thu, 27 Sep 2018 10:44:51 +0000 (12:44 +0200)]
UI: new clip editor panels and headers layout.

* Panels now use single column layout.
* Footage Info was moved into Footage Settings.
* Display settings are now in a popover in the header.
* Graph view shows tracking controls in the header center.

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

20 months agoUI: update camera background images panel layout.
Sebastian Koenig [Thu, 27 Sep 2018 10:37:18 +0000 (12:37 +0200)]
UI: update camera background images panel layout.

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

20 months agoGP: Avoid duplicated weight deformation for strokes
Antonioya [Thu, 27 Sep 2018 12:10:27 +0000 (14:10 +0200)]
GP: Avoid duplicated weight deformation for strokes

If the point had several weights, the result could be wrongly accumulated.

20 months agoPartial revert of recent toolsystem defaults
Campbell Barton [Thu, 27 Sep 2018 11:18:02 +0000 (21:18 +1000)]
Partial revert of recent toolsystem defaults

- Use ctrl for de-select since we may want to use shift for extend.
- Use cursor tool by default,
  it's agreed lasso select isn't accessible from a shortcut by default.

20 months agoCleanup: warnings
Campbell Barton [Thu, 27 Sep 2018 11:15:42 +0000 (21:15 +1000)]
Cleanup: warnings

20 months agoTests: add --no-window-focus to open window without focus.
Brecht Van Lommel [Tue, 10 Apr 2018 08:32:56 +0000 (10:32 +0200)]
Tests: add --no-window-focus to open window without focus.

This is useful to run OpenGL tests while continuing to do other tasks
without windows constantly popping up in the foreground.

20 months agoFix T56927: Grease pencil materials issues with lock and hide
Antonioya [Thu, 27 Sep 2018 10:07:43 +0000 (12:07 +0200)]
Fix T56927: Grease pencil materials issues with lock and hide

20 months agoGP: Fix infinite loop in Dope Sheet
Antonioya [Thu, 27 Sep 2018 09:11:33 +0000 (11:11 +0200)]
GP: Fix infinite loop in Dope Sheet

20 months agoUI: Use "View" category for 3D view panels
Campbell Barton [Thu, 27 Sep 2018 06:22:50 +0000 (16:22 +1000)]
UI: Use "View" category for 3D view panels

Allows add-ons to add other categories.

20 months agoUI: Tabs on right w/ right aligned regions
Campbell Barton [Thu, 27 Sep 2018 06:21:57 +0000 (16:21 +1000)]
UI: Tabs on right w/ right aligned regions

20 months agoFix missing free
Campbell Barton [Thu, 27 Sep 2018 06:32:04 +0000 (16:32 +1000)]
Fix missing free

20 months agoPython GPU module: Wrap GPUIndexBuf
mano-wii [Thu, 27 Sep 2018 03:53:45 +0000 (00:53 -0300)]
Python GPU module: Wrap GPUIndexBuf

Differential Revision D3714

20 months agoPython GPU module: replace `PyArg_ParseTupleAndKeywords` by `_PyArg_ParseTupleAndKeyw...
mano-wii [Thu, 27 Sep 2018 03:22:57 +0000 (00:22 -0300)]
Python GPU module: replace `PyArg_ParseTupleAndKeywords` by `_PyArg_ParseTupleAndKeywordsFast`

part of T47811 ("for faster argument parsing").

20 months agoCleanup: remove star import
Campbell Barton [Thu, 27 Sep 2018 03:27:53 +0000 (13:27 +1000)]
Cleanup: remove star import

20 months agoTool System: expose rotate-source for click-extrude
Campbell Barton [Thu, 27 Sep 2018 02:23:01 +0000 (12:23 +1000)]
Tool System: expose rotate-source for click-extrude

20 months agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 27 Sep 2018 01:53:08 +0000 (11:53 +1000)]
Merge branch 'master' into blender2.8

20 months agoSpin Tool: hide options unrelated to duplication
Campbell Barton [Thu, 27 Sep 2018 01:52:21 +0000 (11:52 +1000)]
Spin Tool: hide options unrelated to duplication

20 months agoKeymap: use shift to de-deselect for tools
Campbell Barton [Thu, 27 Sep 2018 01:30:06 +0000 (11:30 +1000)]
Keymap: use shift to de-deselect for tools

This allows for Ctrl-LMB
to be used for lasso even with Border-Select active.

20 months agoTool System: set a default tool for each mode
Campbell Barton [Thu, 27 Sep 2018 01:20:27 +0000 (11:20 +1000)]
Tool System: set a default tool for each mode

Also clear tools for the default startup file
so changes to defaults apply to new files.

20 months agoCleanup: pep8
Campbell Barton [Wed, 26 Sep 2018 23:41:18 +0000 (09:41 +1000)]
Cleanup: pep8

20 months agoCleanup: flip option unlock -> lock
Campbell Barton [Wed, 26 Sep 2018 22:51:26 +0000 (08:51 +1000)]
Cleanup: flip option unlock -> lock

Nearly all options are currently to toggle locking.

20 months agoWireframe/Xray: Make Xray option local to wireframe mode
Clément Foucault [Wed, 26 Sep 2018 18:31:14 +0000 (20:31 +0200)]
Wireframe/Xray: Make Xray option local to wireframe mode

This commit make the Xray option for the wireframe different from the other
shading mode. This makes it possible to rapidly switch between wireframe +
Xray and Solid mode without Xray.

Xray alpha is also decoupled.

Both variables are duplicated and exposed separately through RNA.

20 months agoUI: switch shortcuts for pivot and orientation pie menus.
Brecht Van Lommel [Wed, 26 Sep 2018 16:40:30 +0000 (18:40 +0200)]
UI: switch shortcuts for pivot and orientation pie menus.

Pivot is now period key, orientation is comma key.

20 months agoUI: keep some buttons fixed size in 3D view header.
William Reynish [Wed, 26 Sep 2018 15:40:39 +0000 (17:40 +0200)]
UI: keep some buttons fixed size in 3D view header.

20 months agoUI: allow fractical unit size for layouts.
Brecht Van Lommel [Wed, 26 Sep 2018 15:44:35 +0000 (17:44 +0200)]
UI: allow fractical unit size for layouts.

20 months agoUI: use pie menu for snap, pivot and proportional editing.
William Reynish [Wed, 26 Sep 2018 15:32:11 +0000 (17:32 +0200)]
UI: use pie menu for snap, pivot and proportional editing.

* Proportional pie menu at shift+O.
* Snap pie menu at shift+S.
* Pivot pie menu at comma. Previous comma, ctrl+comma, period
  and ctrl+period shortcuts for specific pivot types were removed.

Ref T56881.

20 months agoDepsgraph: Add missing relation for spline IK
Sergey Sharybin [Wed, 26 Sep 2018 16:16:16 +0000 (18:16 +0200)]
Depsgraph: Add missing relation for spline IK

Solver should clearly depend on initializaiton.

20 months agoCloth: Collision improvements
Luca Rood [Wed, 26 Sep 2018 15:18:16 +0000 (17:18 +0200)]
Cloth: Collision improvements

This commit includes several performance, stability, and reliability
improvements to cloth collisions.

Most notably:
* The implementation of a new self-collisions system.
* Multithreading of collision detection.
* Implementation of single sided collisions and normal overrides.
* Replacement of the `plNearestPoints` function from Bullet with a
dedicated solution.

Further, this also includes several bug fixes, and algorithmic
improvements.

Reviewed By: brecht

Differential Revision: http://developer.blender.org/D3712

20 months agoAddons: reactivate 'STL format' addon
Jacques Lucke [Wed, 26 Sep 2018 15:32:46 +0000 (17:32 +0200)]
Addons: reactivate 'STL format' addon

Reviewers: brecht

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

20 months agoCleanup: Edit Surface & Curve engines unused code
Clément Foucault [Wed, 26 Sep 2018 14:41:50 +0000 (16:41 +0200)]
Cleanup: Edit Surface & Curve engines unused code

20 months agoEdit Surface: Use edit curve engine to display edit surface
Clément Foucault [Wed, 26 Sep 2018 14:40:09 +0000 (16:40 +0200)]
Edit Surface: Use edit curve engine to display edit surface

It's so similar in practice that we don't need a separate engine for edit
surface overlays.

20 months agoEdit Curve: Fix "show handles" option hiding nurbs segments
Clément Foucault [Wed, 26 Sep 2018 14:33:44 +0000 (16:33 +0200)]
Edit Curve: Fix "show handles" option hiding nurbs segments

20 months agoGP: Only check annotation origin for 3D View
Antonioya [Wed, 26 Sep 2018 14:25:11 +0000 (16:25 +0200)]
GP: Only check annotation origin for 3D View

20 months agoGP: Rename parameter unlock_color and tooltip
Antonioya [Wed, 26 Sep 2018 14:17:54 +0000 (16:17 +0200)]
GP: Rename parameter unlock_color and tooltip

20 months agoGP: Fix unreported crash when click+drag in edit mode
Antonioya [Wed, 26 Sep 2018 14:07:44 +0000 (16:07 +0200)]
GP: Fix unreported crash when click+drag in edit mode

20 months agoGP: Change menu icons for hide/show
Antonioya [Wed, 26 Sep 2018 14:00:45 +0000 (16:00 +0200)]
GP: Change menu icons for hide/show

20 months agoImplement additional modes for Shrinkwrap to a surface.
Alexander Gavrilov [Sat, 7 Jul 2018 15:39:45 +0000 (18:39 +0300)]
Implement additional modes for Shrinkwrap to a surface.

In addition to the original map to surface and Keep Above Surface,
add modes that only affect vertices that are inside or outside
the object. This is inspired by the Limit Distance constraint,
and can be useful for crude collision detection in rigs.

The inside/outside test works based on face normals and may not be
completely reliable near 90 degree or sharper angles in the target.

Reviewers: campbellbarton, mont29

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

20 months agoGP: Fix unreported change material operator error
Antonioya [Wed, 26 Sep 2018 13:49:46 +0000 (15:49 +0200)]
GP: Fix unreported change material operator error

The first material of the list could not be assigned.

20 months agoFix T56926: Highlighted selection doesn't disappear when locking layer
Antonioya [Wed, 26 Sep 2018 13:27:56 +0000 (15:27 +0200)]
Fix T56926: Highlighted selection doesn't disappear when locking layer

20 months agoMultires: Use proper subdivision level for reshape
Sergey Sharybin [Wed, 26 Sep 2018 13:08:04 +0000 (15:08 +0200)]
Multires: Use proper subdivision level for reshape

Apparently, part of code got lost last minute prior to push.

20 months agoFix T56899: mesh deform bind does not work.
Brecht Van Lommel [Wed, 26 Sep 2018 10:46:34 +0000 (12:46 +0200)]
Fix T56899: mesh deform bind does not work.

20 months agoMultires: Promote OSD CCG to be officially supported
Sergey Sharybin [Wed, 26 Sep 2018 12:14:12 +0000 (14:14 +0200)]
Multires: Promote OSD CCG to be officially supported

Only active when WITH_OPENSUBDIV_MODIFIER is set to ON.

There is still some work to be done to make that one enabled by
default.

20 months agoSubsurf: Tweak versioning code
Sergey Sharybin [Wed, 26 Sep 2018 10:51:16 +0000 (12:51 +0200)]
Subsurf: Tweak versioning code

Select minimum of render subdivision levels and 3 for
the initial value of quality. This way we don't force
too much quality for meshes which were not supposed to
be too much quality :)

20 months agoFix crash opening some old files, after recent changes.
Brecht Van Lommel [Wed, 26 Sep 2018 12:20:52 +0000 (14:20 +0200)]
Fix crash opening some old files, after recent changes.

20 months agoRevert "Compositor: Added Weighted Standard Curve evaluation"
Brecht Van Lommel [Tue, 25 Sep 2018 16:22:01 +0000 (18:22 +0200)]
Revert "Compositor: Added Weighted Standard Curve evaluation"

This reverts commit b8c9df6f21587014cb6f11aa5bed6f9c1044e6ee. The code is not
correct with regards to color management, and its purpose was not documented.

20 months agoGP: Check weight data before using it
Antonioya [Wed, 26 Sep 2018 11:12:49 +0000 (13:12 +0200)]
GP: Check weight data before using it

20 months agoFix T56920: Crash: Renaming bone through outliner
Antonioya [Wed, 26 Sep 2018 10:50:09 +0000 (12:50 +0200)]
Fix T56920: Crash: Renaming bone through outliner

20 months agoCleanup: Silence strict compiler warning
Sergey Sharybin [Wed, 26 Sep 2018 09:54:19 +0000 (11:54 +0200)]
Cleanup: Silence strict compiler warning

Was happening when using OSD for modifiers.

20 months agoOpenSubdiv: Cleanup, the TODO was actually solved
Sergey Sharybin [Wed, 26 Sep 2018 09:52:06 +0000 (11:52 +0200)]
OpenSubdiv: Cleanup, the TODO was actually solved

20 months agoClip editor: Fix usage of template_marker
Sergey Sharybin [Wed, 26 Sep 2018 09:28:37 +0000 (11:28 +0200)]
Clip editor: Fix usage of template_marker

Needs an update to the new Python API.

Reported by Sebastian in IRC, thanks!

20 months agoGP: Adjust topbar layer selector to new fixed width
Antonioya [Wed, 26 Sep 2018 08:49:30 +0000 (10:49 +0200)]
GP: Adjust topbar layer selector to new fixed width

20 months agoOpenSubdiv: Cleanup
Sergey Sharybin [Wed, 26 Sep 2018 08:21:34 +0000 (10:21 +0200)]
OpenSubdiv: Cleanup

20 months agoFix access past array boundaries
Sergey Sharybin [Wed, 26 Sep 2018 08:14:25 +0000 (10:14 +0200)]
Fix access past array boundaries

Need to resize `have_functions` arrays when adding more functions.
Not sure there is more reliable way which will prevent accidents
like this.

Was caused by c47be43674f5.

20 months agoGizmo: initial snap support for move
Campbell Barton [Wed, 26 Sep 2018 07:35:21 +0000 (17:35 +1000)]
Gizmo: initial snap support for move

This allows the gizmo to snap to 3D view elements,
Although currently this isn't usable gizmo's that use operator redo.

20 months agoGizmo: support for cancelling move3d modal changes
Campbell Barton [Wed, 26 Sep 2018 06:44:15 +0000 (16:44 +1000)]
Gizmo: support for cancelling move3d modal changes

20 months agoSpin Tool: match dial orientation to active gizmo
Campbell Barton [Wed, 26 Sep 2018 06:30:01 +0000 (16:30 +1000)]
Spin Tool: match dial orientation to active gizmo

20 months agoGizmo: add invoke_prepare callback
Campbell Barton [Wed, 26 Sep 2018 06:08:45 +0000 (16:08 +1000)]
Gizmo: add invoke_prepare callback

Allows gizmo groups to set values based on the gizmo about to be invoked.

20 months agoFix misleading field naming.
Alexander Gavrilov [Wed, 26 Sep 2018 05:57:04 +0000 (08:57 +0300)]
Fix misleading field naming.

This is not any kind of length, it is the number of true values.

20 months agoSpin Tool: option (disabled) for gizmos to follow selection
Campbell Barton [Wed, 26 Sep 2018 04:31:57 +0000 (14:31 +1000)]
Spin Tool: option (disabled) for gizmos to follow selection

Disable since this causes multiple axis to overlap too often.
It's also glitchy since we don't have a good way to detect
changes to selection.

20 months agoCorrect error in last commit
Campbell Barton [Wed, 26 Sep 2018 03:30:15 +0000 (13:30 +1000)]
Correct error in last commit

Didn't account for non-identity orientation.

20 months agoSpin Tool: correct the initial redo dial rotation
Campbell Barton [Wed, 26 Sep 2018 03:08:02 +0000 (13:08 +1000)]
Spin Tool: correct the initial redo dial rotation

20 months agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 26 Sep 2018 01:42:38 +0000 (11:42 +1000)]
Merge branch 'master' into blender2.8