2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Fri, 28 Sep 2018 13:03:03 +0000 (15:03 +0200)]
Merge branch 'master' into blender2.8

2 years agoCycles: Fix compilation error of CUDA kernel
Sergey Sharybin [Fri, 28 Sep 2018 13:02:20 +0000 (15:02 +0200)]
Cycles: Fix compilation error of CUDA kernel

Was caused by previous commit.

2 years agoFix T56947: Copy text from disabled search menu crashed
Jacques Lucke [Fri, 28 Sep 2018 12:12:00 +0000 (14:12 +0200)]
Fix T56947: Copy text from disabled search menu crashed

Reviewers: brecht

Differential Revision:

2 years agoTests: recurse into directories for finding OpenGL draw test .blends.
Brecht Van Lommel [Fri, 28 Sep 2018 12:09:42 +0000 (14:09 +0200)]
Tests: recurse into directories for finding OpenGL draw test .blends.

2 years agoGP: Remove add/delete buttons from topbar material popover
Antonioya [Fri, 28 Sep 2018 12:01:36 +0000 (14:01 +0200)]
GP: Remove add/delete buttons from topbar material popover

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Fri, 28 Sep 2018 11:58:30 +0000 (13:58 +0200)]
Merge branch 'master' into blender2.8

2 years agoCycles: Fix crash with BVH8 on certain scenes
Sergey Sharybin [Fri, 28 Sep 2018 10:39:49 +0000 (12:39 +0200)]
Cycles: Fix crash with BVH8 on certain scenes

The crash was caused by BVH traversal stack being overflowed.

That overflow was caused by lots of false-positive intersections
for rays originating on a non-finite location.

Not sure why those rays will be existing in the first place,
this is to be investigated separately.

This commit moves pre-SSE4.1 check to a higher level function
and enables it for all miroarchitectures.

2 years agoFix T56905: unsupported channel layout error writing AAC audio.
Brecht Van Lommel [Fri, 28 Sep 2018 10:03:15 +0000 (12:03 +0200)]
Fix T56905: unsupported channel layout error writing AAC audio.

This uses same mapping as Audaspace to specify channel layout, which was
missing before.

2 years agoUI: move messages and running jobs to top bar.
Brecht Van Lommel [Fri, 28 Sep 2018 09:05:04 +0000 (11:05 +0200)]
UI: move messages and running jobs to top bar.

It's too easy to miss at the bottom of the screen, and if the status bar is
collapsed critical messages may not be seen at all. There might be a better
looking solution, but for now this solves the main usability problem.

2 years agoFix merge error, this should have been included from master.
Brecht Van Lommel [Fri, 28 Sep 2018 08:47:11 +0000 (10:47 +0200)]
Fix merge error, this should have been included from 

2 years 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.

2 years 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

2 years 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.

2 years 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.

2 years 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?

2 years 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

2 years 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.

2 years 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

2 years 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

2 years 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.

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

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

2 years 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

2 years 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

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

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

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

2 years 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:

2 years 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

2 years 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.

2 years 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.

2 years 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.

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

2 years 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.

2 years 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

2 years 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.


2 years 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:

2 years 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.


Reviewer: brecht

2 years 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.

2 years 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:

2 years 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.

2 years 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

2 years 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:

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

2 years 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.

2 years 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

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

2 years 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.

2 years 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:

2 years 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:

2 years 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.

2 years 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.

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

2 years 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.

2 years 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

2 years 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

2 years 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.

2 years 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

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

2 years 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

2 years 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").

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

2 years 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

2 years 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

2 years 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

2 years 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.

2 years 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.

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

2 years 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.

2 years 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.

2 years 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.

2 years 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.

2 years 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.

2 years 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.

2 years 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.

2 years 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

Reviewed By: brecht

Differential Revision:

2 years 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:

2 years 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

2 years 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.

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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:

2 years 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.

2 years 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

2 years 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.

2 years 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.

2 years 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

2 years 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 :)

2 years 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.

2 years 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.

2 years 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

2 years 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

2 years 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.

2 years 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

2 years 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!

2 years 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

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