blender.git
21 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

21 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.

21 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.

21 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.

21 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.

21 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.

21 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

21 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.

...

21 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

21 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

21 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.

21 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

21 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.

21 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

21 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

21 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.

21 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.

21 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

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

21 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.

21 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

21 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

21 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.

21 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.

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

21 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.

21 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

21 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

21 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.

21 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

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

21 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

21 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").

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

21 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

21 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

21 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

21 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.

21 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.

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

21 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.

21 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.

21 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.

21 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.

21 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.

21 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.

21 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.

21 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

21 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

21 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

21 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.

21 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

21 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

21 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

21 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

21 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

21 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

21 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.

21 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

21 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.

21 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.

21 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.

21 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 :)

21 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.

21 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.

21 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

21 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

21 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.

21 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

21 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!

21 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

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

21 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.

21 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.

21 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

21 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

21 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.

21 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.

21 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.

21 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.

21 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

21 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

21 months agoCleanup: redundant include
Campbell Barton [Wed, 26 Sep 2018 00:55:22 +0000 (10:55 +1000)]
Cleanup: redundant include

21 months agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 26 Sep 2018 00:29:16 +0000 (10:29 +1000)]
Merge branch 'master' into blender2.8

21 months agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 26 Sep 2018 00:28:23 +0000 (10:28 +1000)]
Merge branch 'master' into blender2.8

21 months agoMulti-Objects: Selects similar face SIMFACE_COPLANAR
Dalai Felinto [Wed, 26 Sep 2018 00:09:29 +0000 (21:09 -0300)]
Multi-Objects: Selects similar face SIMFACE_COPLANAR

Unlike 2.79 I am not using the comparison type to get coplanar planes that are above/below the plane.
That seems arbritary at best, and a bit of a challenge to get it right.

Also, I'm doing some shenanigans to use a single tree to store the face direction and the distance.
Here in my tests it is working fine though.

21 months agoCleanup: naming of DRW mesh weight API
Campbell Barton [Wed, 26 Sep 2018 00:16:17 +0000 (10:16 +1000)]
Cleanup: naming of DRW mesh weight API

21 months agoCleanup: warnings, style
Campbell Barton [Wed, 26 Sep 2018 00:01:32 +0000 (10:01 +1000)]
Cleanup: warnings, style

21 months agoBMesh: spin option to merge first/last
Campbell Barton [Tue, 25 Sep 2018 23:45:14 +0000 (09:45 +1000)]
BMesh: spin option to merge first/last

For 360d revolutions this is almost always whats intended,
enable by default.

21 months agoMulti-Objects: Select similar face SIMFACE_FACEMAP
Dalai Felinto [Tue, 25 Sep 2018 22:57:39 +0000 (19:57 -0300)]
Multi-Objects: Select similar face SIMFACE_FACEMAP

Facemap is per object, so we store them in a gset per object, and only check the object
faces with its own facemaps.

21 months agoRemove wrongly copy/pasted comment on object_facemap_ops.c
Dalai Felinto [Tue, 25 Sep 2018 22:40:11 +0000 (19:40 -0300)]
Remove wrongly copy/pasted comment on object_facemap_ops.c

21 months agoCurve Edit: Fix handles glitch when MSAA is enable
Clément Foucault [Tue, 25 Sep 2018 22:49:22 +0000 (00:49 +0200)]
Curve Edit: Fix handles glitch when MSAA is enable

21 months agoCurve Edit: Cleanup/Improve/Fix handles drawing
Clément Foucault [Tue, 25 Sep 2018 22:48:55 +0000 (00:48 +0200)]
Curve Edit: Cleanup/Improve/Fix handles drawing

Now handles are drawn using index buffer instead of duplicating memory
requirement.

Also make use of shader tricks to draw handles antialiased, and respond to
UI scalling.

Make vertex point match edit mesh vertex size.

21 months agoMulti-Objects: Select similar face SIMFACE_FREESTYLE
Dalai Felinto [Tue, 25 Sep 2018 22:10:58 +0000 (19:10 -0300)]
Multi-Objects: Select similar face SIMFACE_FREESTYLE

Note: 2.7x seem to be checking for edge data instead of face, but I do not see why not to get FreestyleFace.

21 months agoMulti-Objects: Select similar face SIMFACE_SMOOTH
Dalai Felinto [Tue, 25 Sep 2018 21:57:28 +0000 (18:57 -0300)]
Multi-Objects: Select similar face SIMFACE_SMOOTH

21 months agoMulti-Objects: Select similar face SIMFACE_NORMAL
Dalai Felinto [Tue, 25 Sep 2018 21:13:56 +0000 (18:13 -0300)]
Multi-Objects: Select similar face SIMFACE_NORMAL

We could/can deduplicate the code with SIMVERT_NORMAL.

21 months agoMulti-Objects: Select similar face SIMFACE_AREA and SIMFACE_PERIMETER
Dalai Felinto [Tue, 25 Sep 2018 20:36:37 +0000 (17:36 -0300)]
Multi-Objects: Select similar face SIMFACE_AREA and SIMFACE_PERIMETER

Note: Not doing worldspace comparison for now. We would need to create new
BM_face_calc_area and BM_face_calc_perimeter equivalent functions for that.

Not sure if it is worth the trouble.

21 months agoMulti-Objects: Select similar face SIMFACE_MATERIAL
Dalai Felinto [Tue, 25 Sep 2018 20:24:37 +0000 (17:24 -0300)]
Multi-Objects: Select similar face SIMFACE_MATERIAL

Note: Unlike 2.79 we are not comparing face->mat_nr, but the material itself.
On top og that, if the material slot is empty we are just ignoring this face.

21 months agoMulti-Objects: Select similar face SIMFACE_SIDES
Dalai Felinto [Tue, 25 Sep 2018 19:54:58 +0000 (16:54 -0300)]
Multi-Objects: Select similar face SIMFACE_SIDES

21 months agoCleanup comments on select similar edge
Dalai Felinto [Tue, 25 Sep 2018 20:33:15 +0000 (17:33 -0300)]
Cleanup comments on select similar edge