blender.git
2 years agoEnable OpenSubdiv modifier by default
Sergey Sharybin [Mon, 26 Nov 2018 14:39:08 +0000 (15:39 +0100)]
Enable OpenSubdiv modifier by default

This commit makes it so that subsurf/multires modifiers will respect
the WITH_OPENSUBDIV option. The WITH_OPENSUBDIV_MODIFIER option is
now gone.

For artists it mean that subsurf modifier will behave same as it is
planned for 2.80. Multires will now support sculpting, but it has some
known limitations. Those will be worked on before the final release.

If OpenSubdiv is disabled, no subsurf/multires functionality will
present.

For the details see:

  https://wiki.blender.org/wiki/Reference/Release_Notes/2.80/Modeling#Subsurf.2FMultires

2 years agoInline function BKE_mesh_boundbox_calc inside BKE_mesh_texspace_calc to avoid confusion.
mano-wii [Mon, 26 Nov 2018 12:48:27 +0000 (10:48 -0200)]
Inline function BKE_mesh_boundbox_calc inside BKE_mesh_texspace_calc to avoid confusion.

2 years agoHide OpenSubdiv compute device
Sergey Sharybin [Mon, 26 Nov 2018 13:21:24 +0000 (14:21 +0100)]
Hide OpenSubdiv compute device

That is only used by GPU side of OpenSubdiv, which was not yet
brought back.

2 years agoKeymaps: keep Select Box as default tool.
Brecht Van Lommel [Mon, 26 Nov 2018 12:51:30 +0000 (13:51 +0100)]
Keymaps: keep Select Box as default tool.

2 years agoFix gizmos not using same tweak threshold as other places.
Brecht Van Lommel [Mon, 26 Nov 2018 12:46:20 +0000 (13:46 +0100)]
Fix gizmos not using same tweak threshold as other places.

The low hardcoded threshold made clicking on the navigation gizmo difficult
on tablets.

2 years agoUI: expand tooltips for left/right click select.
Brecht Van Lommel [Mon, 26 Nov 2018 11:18:28 +0000 (12:18 +0100)]
UI: expand tooltips for left/right click select.

2 years agoFix inverted texture paint overlay display icons.
Alexander Gavrilov [Mon, 26 Nov 2018 11:52:24 +0000 (14:52 +0300)]
Fix inverted texture paint overlay display icons.

2 years agoDefaults: set "release confirms", for transform tweak with single click and drag.
Brecht Van Lommel [Mon, 26 Nov 2018 11:18:28 +0000 (12:18 +0100)]
Defaults: set "release confirms", for transform tweak with single click and drag.

The old behavior with two clicks evolved out of a gesture system, and it can
have some advantages if you want to press more keys to constrain for example. But
this seems a better default.

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Mon, 26 Nov 2018 11:00:36 +0000 (12:00 +0100)]
Merge branch 'master' into blender2.8

2 years agoCMake: Remove Cycles specific OpenSubdiv options
Sergey Sharybin [Mon, 26 Nov 2018 10:41:38 +0000 (11:41 +0100)]
CMake: Remove Cycles specific OpenSubdiv options

Just use one flag which enables OpenSubdiv globally for all the
areas of Blender.

2 years agoFix texture space not updating in edit mode.
mano-wii [Sun, 25 Nov 2018 19:47:54 +0000 (17:47 -0200)]
Fix texture space not updating in edit mode.

2 years agotransform_snap_object: fix ray_start_correction in snap to edit_mesh.
mano-wii [Sun, 25 Nov 2018 19:15:05 +0000 (17:15 -0200)]
transform_snap_object: fix ray_start_correction in snap to edit_mesh.

2 years agoFix T56167: Crash when extruding + snap to face.
mano-wii [Sun, 25 Nov 2018 18:00:26 +0000 (16:00 -0200)]
Fix T56167: Crash when extruding + snap to face.

This is a local fix.
The problem with duplicate looptris still remains.
That is, it can still be released in one place but not upgraded in the other.

(note: setting the looptris to NULL in the evaluated mesh and assert whether it is still NULL when the mesh is freed could indicate where those cases are).

2 years agoFix T57985: Out of the edit mode, the texture space is affected by the modifiers...
Bastien Montagne [Mon, 26 Nov 2018 09:29:13 +0000 (10:29 +0100)]
Fix T57985: Out of the edit mode, the texture space is affected by the modifiers of a mesh.

Go for the simple solution for now (disable auto-texspace in evaluated mesh).
Proper fix would be part of known TODO redesign of bbox handling.

Solution suggested by @sergey, thanks!

2 years agoFix T58032: particle children 'Use Clump Curve' crash
Philipp Oeser [Sun, 25 Nov 2018 13:21:02 +0000 (14:21 +0100)]
Fix T58032: particle children 'Use Clump Curve' crash

Maniphest Tasks: T58032

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

2 years agoUI: collapse redo panel by default
Campbell Barton [Mon, 26 Nov 2018 06:43:58 +0000 (17:43 +1100)]
UI: collapse redo panel by default

For some operators this fills a lot of vertical space,
users can expand it if they need.

Also remove workaround for T56752 (now fixed).

2 years agoCorrect last commit
Campbell Barton [Mon, 26 Nov 2018 06:43:23 +0000 (17:43 +1100)]
Correct last commit

Initial display was fixed, broke refreshing.

2 years agoUI: fix glitch showing redo panel
Campbell Barton [Mon, 26 Nov 2018 06:29:02 +0000 (17:29 +1100)]
UI: fix glitch showing redo panel

There were still cases it would show for the first time w/o content.

2 years agoFix crash accessing mesh.point_normals default
Campbell Barton [Mon, 26 Nov 2018 05:26:47 +0000 (16:26 +1100)]
Fix crash accessing mesh.point_normals default

This memory needs to be static,
in this case the argument isn't needed so remove it.

2 years agoKeymap: use 'W' key for select toolbar shortcut
Campbell Barton [Mon, 26 Nov 2018 05:10:00 +0000 (16:10 +1100)]
Keymap: use 'W' key for select toolbar shortcut

2 years agoCleanup: remove unused code & add comments
Campbell Barton [Mon, 26 Nov 2018 05:07:03 +0000 (16:07 +1100)]
Cleanup: remove unused code & add comments

2 years agoFix T58027: Scene.ray_cast crash
Campbell Barton [Mon, 26 Nov 2018 04:50:59 +0000 (15:50 +1100)]
Fix T58027: Scene.ray_cast crash

Reintroduce BASE_VISIBLE_BGMODE

D3987 by @Soundwave

2 years agoFix object selection in edit-mode
Campbell Barton [Mon, 26 Nov 2018 04:28:59 +0000 (15:28 +1100)]
Fix object selection in edit-mode

Ctrl-RMB in edit-mode is needed for setting vertex parent.

2 years agoFix proportional edit-mode w/ multi-object editing
Campbell Barton [Mon, 26 Nov 2018 03:20:51 +0000 (14:20 +1100)]
Fix proportional edit-mode w/ multi-object editing

D3992 by @Al

2 years ago3D View: remove 3D cursor
Campbell Barton [Mon, 26 Nov 2018 02:49:17 +0000 (13:49 +1100)]
3D View: remove 3D cursor

Use 3D cursor from the scene (was previously used for local-view).

2 years agoFix extended shading pie menu not having same order as before.
Brecht Van Lommel [Mon, 26 Nov 2018 00:00:05 +0000 (01:00 +0100)]
Fix extended shading pie menu not having same order as before.

2 years agoCleanup: unused vars, imports
Campbell Barton [Sun, 25 Nov 2018 22:27:25 +0000 (09:27 +1100)]
Cleanup: unused vars, imports

2 years agoCleanup: unused vars
Campbell Barton [Sun, 25 Nov 2018 22:26:38 +0000 (09:26 +1100)]
Cleanup: unused vars

2 years agoCleanup: unused vars, imports
Campbell Barton [Sun, 25 Nov 2018 22:26:15 +0000 (09:26 +1100)]
Cleanup: unused vars, imports

2 years agoFix some errors in the Blender Light theme.
Brecht Van Lommel [Sun, 25 Nov 2018 19:36:47 +0000 (20:36 +0100)]
Fix some errors in the Blender Light theme.

2 years agoFix missing versioning code for user preferences navigation bar.
Brecht Van Lommel [Sun, 25 Nov 2018 19:13:09 +0000 (20:13 +0100)]
Fix missing versioning code for user preferences navigation bar.

2 years agoTools: add Select tool, with transform tweak on drag and no click delay.
Brecht Van Lommel [Thu, 22 Nov 2018 15:05:28 +0000 (16:05 +0100)]
Tools: add Select tool, with transform tweak on drag and no click delay.

For users that want the 2.7 LMB keymap behavior, this provides a way of
working without tools interfering. For RMB select this operator is quite
redundant with the Cursor tool, we may have to find a solution for that.

Note that we also might later add transform tweak to the transform tools,
when nothing is selected. But this is important for existing users who
preferred the existing workflow.

2 years agoKeymaps: add 3D view click empty space to deselect all.
Brecht Van Lommel [Sun, 25 Nov 2018 17:59:58 +0000 (18:59 +0100)]
Keymaps: add 3D view click empty space to deselect all.

The implementation of this operator was modified to be more efficient and
ensure the undo history has the exact operator used.

2 years agoCleanup: Silent compiler warning
Antonioya [Sun, 25 Nov 2018 19:00:18 +0000 (20:00 +0100)]
Cleanup: Silent compiler warning

A void function cannot return a value.

2 years agoUI: Disable font shadow in tooltip
Julian Eisel [Sun, 25 Nov 2018 17:48:52 +0000 (18:48 +0100)]
UI: Disable font shadow in tooltip

When I added this a few years ago, it was meant to create a fake bold effect.
With the new text shadow drawing code, that doesn't work well though.

2 years agoFix mesh_build_data() calling mesh_finalize_eval() before copying texspace.
Bastien Montagne [Sun, 25 Nov 2018 17:39:57 +0000 (18:39 +0100)]
Fix mesh_build_data() calling mesh_finalize_eval() before copying texspace.

mesh_finalize_eval() may set ob->data to evaluated mesh, needs to be
done *after* call to BKE_mesh_texspace_copy_from_object(), else that one
is meaningless.

Related to investigations on T57985, but does not solve it at all. :(

2 years agoCleanup: remove useless redundant NULL check.
Bastien Montagne [Sun, 25 Nov 2018 17:36:43 +0000 (18:36 +0100)]
Cleanup: remove useless redundant NULL check.

2 years agoFix T57070, T57389, and other bbox-related issues with meshes.
Bastien Montagne [Sun, 25 Nov 2018 16:16:11 +0000 (17:16 +0100)]
Fix T57070, T57389, and other bbox-related issues with meshes.

Thinks whole bbox code needs a complete rewrite, one can see a lot of
old history in it, it has way too many functions doing
nearly-the-same-thing(c), it spreads in very inconsistent ways across a
lot of files, ... But have no time for this right now, and would not be
a good idea with Beta comming up close anyway.

So for now going the simple and (hopefully) sane & safe way: forbid
object-level functions to affect data-level bbox. Mesh and curve ones
would generate bbox in obdata instead of object, for some reason (all
other obdata types only use object's bbox ever). That may have been
working in old ages, but with CoW and threaded depsgraph this is just
calling for piles of issues.

2 years agoUI: Disable font shadow in tabs
Julian Eisel [Sun, 25 Nov 2018 17:34:07 +0000 (18:34 +0100)]
UI: Disable font shadow in tabs

This was used to fake a 3D look, however that doesn't work well with the new,
flat style. It just made text appear blurry.

2 years agoUI: Initial User-Preferences redesign
Julian Eisel [Sun, 25 Nov 2018 15:21:35 +0000 (16:21 +0100)]
UI: Initial User-Preferences redesign

Implements the first changes for T54115:

* Rename "User Preferences" window to "Settings" in the UI.
  We'll likely put workspace settings in there, separate from the global
  user settings. System settings should become separate from user
  settings in future to allow settings for specific hardware.
* Add sidebar region for navigation (scrolls independently).
  Addresses space problems, so we can add more categories as needed now.
* Increase size of Settings window to compensate new navigation bar.
* Group sections into User Preferences and System.
  Icons for section groups by Andrzej Ambroz. Thanks!
* Bumps subversion for file compatibility.

Screenshot: https://developer.blender.org/F5715337

I also added categories for future work, but commented them out.
We may also want to redesign contents of each section now.

Reviewers: brecht, campbellbarton
Differential Revision: https://developer.blender.org/D3088
Design Task: https://developer.blender.org/T54115

2 years agoTexture Paint: prevent normal angle masking duplicating backface culling.
Alexander Gavrilov [Sun, 25 Nov 2018 15:50:21 +0000 (18:50 +0300)]
Texture Paint: prevent normal angle masking duplicating backface culling.

If backface culling is off, the user obviously wants to paint on
back faces, so the normal angle cutoff designed to prevent painting
at glancing angles shouldn't do the culling as a side effect.

2 years agoLocal View
Dalai Felinto [Sun, 25 Nov 2018 11:50:34 +0000 (09:50 -0200)]
Local View

Bring back per-viewport localview. This is based on Blender 2.79.
We have a limit of 16 different local view viewports.

We are using both the numpad /, as well as the regular /.

Missing features:
* Hack to make sure lights are always visible.
* Make rendered mode with external engines to support this as well
  (probably just need to support this in the RNA iterators).
* Support over 16 viewports by taking existing viewports out of local view.

The code can use a cleanup pass in the future to unify the test to see
if an object is visible (or we can use TESTBASE in more places).

2 years agoUse orig_pchan when searching for the original copy of a constraint.
Alexander Gavrilov [Sun, 25 Nov 2018 07:58:30 +0000 (10:58 +0300)]
Use orig_pchan when searching for the original copy of a constraint.

2 years agoFix box select of edges not working when box does not fully contain edge.
Brecht Van Lommel [Sun, 25 Nov 2018 01:12:48 +0000 (02:12 +0100)]
Fix box select of edges not working when box does not fully contain edge.

2 years agoAddons: enable GLTF 2.0 addon by default.
Brecht Van Lommel [Sat, 24 Nov 2018 22:46:40 +0000 (23:46 +0100)]
Addons: enable GLTF 2.0 addon by default.

2 years agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Sat, 24 Nov 2018 22:44:17 +0000 (23:44 +0100)]
Merge branch 'master' into blender2.8

2 years agoFix T58006: smart UV project island margin should not use length units.
Brecht Van Lommel [Sat, 24 Nov 2018 22:01:50 +0000 (23:01 +0100)]
Fix T58006: smart UV project island margin should not use length units.

This distance is in UV space, not world space.

2 years agoSequencer: remove unnecessary limit on transform rotation.
Brecht Van Lommel [Fri, 9 Nov 2018 09:05:06 +0000 (10:05 +0100)]
Sequencer: remove unnecessary limit on transform rotation.

2 years agoFix X11 tablet pen and eraser distinction being wrong in some cases.
Brecht Van Lommel [Sat, 24 Nov 2018 22:21:13 +0000 (23:21 +0100)]
Fix X11 tablet pen and eraser distinction being wrong in some cases.

This extends the earlier fix to use the latest logic from Wine's wintab.c,
to better handle eraser detection.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sat, 24 Nov 2018 21:06:22 +0000 (08:06 +1100)]
Merge branch 'master' into blender2.8

2 years agoCleanup: remove unused file
Campbell Barton [Sat, 24 Nov 2018 21:05:42 +0000 (08:05 +1100)]
Cleanup: remove unused file

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sat, 24 Nov 2018 21:01:30 +0000 (08:01 +1100)]
Merge branch 'master' into blender2.8

2 years agoCleanup: trailing space
Campbell Barton [Sat, 24 Nov 2018 21:01:14 +0000 (08:01 +1100)]
Cleanup: trailing space

2 years agoFix T56374, T57066, T58037: crash on startup on macOS when using translation.
Brecht Van Lommel [Sat, 24 Nov 2018 18:21:35 +0000 (19:21 +0100)]
Fix T56374, T57066, T58037: crash on startup on macOS when using translation.

2 years agoFix random color drawing having similar colors for similar names.
Brecht Van Lommel [Sat, 24 Nov 2018 17:37:21 +0000 (18:37 +0100)]
Fix random color drawing having similar colors for similar names.

2 years agoFix T58022: Changing workspace may change layout of User Pref window
Julian Eisel [Sat, 24 Nov 2018 18:20:31 +0000 (19:20 +0100)]
Fix T58022: Changing workspace may change layout of User Pref window

Logic to update child windows on workspace changes should simply ignore
temporary child windows. Users opened those for a specific purpose (i.e. edit
user preferences or show render result). Blender should not come in and
repurpose it.

2 years agoFix penpressure for tablets that use libinput on linux
Jens Verwiebe [Sat, 24 Nov 2018 17:23:57 +0000 (18:23 +0100)]
Fix penpressure for tablets that use libinput on linux

2 years agorefactor: Collada reorganize class constructors
Gaia Clary [Sat, 24 Nov 2018 13:24:36 +0000 (14:24 +0100)]
refactor: Collada reorganize class constructors

- Class constructors without body (only attribute initialisations)
  can safely be kept in the class header files

- Constructor variables should be initialized in the order of their
  definition in the header files

This change is also aimed to remove a couple of
build warnings from the linux builds.

2 years agoKeymap: preference for extended shading menu
Campbell Barton [Sat, 24 Nov 2018 00:24:34 +0000 (11:24 +1100)]
Keymap: preference for extended shading menu

This brings back the option to have x-ray & overlay toggle.

2 years agoDepsgraph: add a new operation node for computing B-Bone segments.
Alexander Gavrilov [Thu, 22 Nov 2018 10:38:03 +0000 (13:38 +0300)]
Depsgraph: add a new operation node for computing B-Bone segments.

Computing the shape of a B-Bone is a quite expensive operation, and
there are multiple constraints that can access this information in
a variety of useful ways. This means computing the shape once per
bone and saving it is good for performance.

Since the shape may depend on the position of up to two other bones,
often in a "cyclic" manner, this computation has to be a separate
node with its own dependencies.

Reviewers: sergey

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

2 years agofix: Collada: used wrong Enumeration type for comparison
Gaia Clary [Fri, 23 Nov 2018 18:23:55 +0000 (19:23 +0100)]
fix: Collada: used wrong Enumeration type for comparison

2 years agofix: collada: must use case sensitive filename in include
Gaia Clary [Fri, 23 Nov 2018 18:23:16 +0000 (19:23 +0100)]
fix: collada: must use case sensitive filename in include

2 years agofix: Collada: use reference to BezTriple instead of copy
Gaia Clary [Fri, 23 Nov 2018 18:21:29 +0000 (19:21 +0100)]
fix: Collada: use reference to BezTriple instead of copy

2 years agofix: compiler errors on mac_x86_64_10_9
Gaia Clary [Fri, 23 Nov 2018 17:38:07 +0000 (18:38 +0100)]
fix: compiler errors on mac_x86_64_10_9

2 years agocleanup: Collada: remove unused variables
Gaia Clary [Fri, 23 Nov 2018 17:36:52 +0000 (18:36 +0100)]
cleanup: Collada: remove unused variables

2 years agoPass viewport to BASE_ related tests, for viewport view/select restrictions
Dalai Felinto [Fri, 23 Nov 2018 16:41:38 +0000 (14:41 -0200)]
Pass viewport to BASE_ related tests, for viewport view/select restrictions

Note: functions like select all are still not respecting that.
I will fix this as part of the local view commit though.

2 years agoDRW: Make non Mesh object wire show in edit mode
Clément Foucault [Fri, 23 Nov 2018 17:03:08 +0000 (18:03 +0100)]
DRW: Make non Mesh object wire show in edit mode

2 years agoDRW: Support Wireframe for metaball objects
Clément Foucault [Fri, 23 Nov 2018 17:02:34 +0000 (18:02 +0100)]
DRW: Support Wireframe for metaball objects

2 years agoGP: Avoid crash when adding new layer
Antonioya [Fri, 23 Nov 2018 16:34:27 +0000 (17:34 +0100)]
GP: Avoid crash when adding new layer

2 years agoIcons: add Select tool icon.
Brecht Van Lommel [Fri, 23 Nov 2018 15:21:44 +0000 (16:21 +0100)]
Icons: add Select tool icon.

2 years agoKeymaps: fix broken LMB select and transform tweak in 2D editors.
Brecht Van Lommel [Fri, 23 Nov 2018 14:52:10 +0000 (15:52 +0100)]
Keymaps: fix broken LMB select and transform tweak in 2D editors.

2 years agoPartial rewrite of the Collada Module for Blender 2.8
Gaia Clary [Fri, 23 Nov 2018 14:57:45 +0000 (15:57 +0100)]
Partial rewrite of the Collada Module for Blender 2.8

Most important changes are in the Animation exporter and Animation Importer.
There is still some cleaning up to be done. But the Exporter/Importer basically
work within Blender 2.8

Some details:

User Interface:
The interface has been reorganized to look more like the FBX interface.

New options in user interface:

* keep_keyframes:
  When sampling the distance between 2 keyframes is defined by
  the sampling rate. Furthermore the keyframes defined in the
  FCurves are not exported. However when this option is enabled
  then also the defined keyframes will be added to the exported fcurves

* keep_smooth_curves:
  When sampling we do not use FCurves. So we also have no Curve handles
  for smooth exporting. However when this option is enabled, Blender
  does its best to recreate the handles for export. This is a very
  experimental feature and it is know to break when:

  - the exported animated objects have parent inverse matrices
    different from the unit matrix
  - The exported objects have negative scaling

  There may be many other situations when this feature breaks.
  This needs to be further tested. It may be removed later or replaced
  by something less wonky.

BlenderContext:
is a new class that contains the bridge to Blender. It contains
pointers to the current export/import context plus derived values
of Depsgraph, Scene, Main

Reporting:
I reorganized the output on the Blender Console to become more
informative and more readable

Preservation of Item names:
name attributes are now encoded with XML entities. This makes
sure that i can export/import names exactly defined in the tool.
This affects material names, bone names and object names.

Hierarchy export:
* Object and Bone Hierarchies are now exported correctly
  by taking the Blender parent/child hierarchy into account
* Export also not selected intermediate objects

  Problem:
  When we export an Object Hierarchy, then we must export
  all elements of the hierarchy to maintain the transforms. This
  is especially important when exporting animated objects, because the
  animation curves are exported as relative curves based on the
  parent-child hierarchy. If an intermediate animated object is missing
  then the exported animation breaks.

  Solution:
  If the "Selected" Optioon is enabled, then take care
  to also export all objects which are not selected and hidden,
  but which are parents of selected objects.

Node Based Material Importer (wip):
Added basic support for Materials with diffuse color and
diffuse textures. More properties (opacity, emission) need
changes in the used shader.
Note: Materials are all constructed by using the principled BSDF shader.

Animation Exporter:
* Massive optimization of the Animation Bake tool (Animation Sampler).
  Instead of sampling each fcurve separately, i now sample all
  exported fcurves simultaneously. So i avoid many (many!)
  scene updates during animation export.
* Add support for Continuous Acceleration (Fcurve handles)
  This allows us to create smoother FCurves during importing Collada
  Animation curves. Possibly this should become an option ionstead of
  a fixed import feature.
* Add support for sampling curves (to bake animations)
* The animation sampler now can be used for any animation curve.
  Before the sampler only looked at curves which are supported by
  Standard Collada 1.4. However the Collada exporter currently
  ignores all animation curves which are not covered by the 1.4.1
  Collada Standards. There is still some room for improvements
  here (work in progres)

  Known issues:

    * Some exports do currently not work reliably, among those
      are the camera animations, material animations and light animations
      those animations will be added back next (work in progres)

    * Exporting animation curves with keyframes (and tangents)
      sometimes results in odd curves (when parent inverse matrix is involved)
      This needs to be checked in more depth (probably it can not be solved).

    * Export of "all animations in scene" is disabled because the
      Collada Importer can not handle this reliably at the
      moment (work in progres).

* Support for Animation Clip export
  Added one extra level to the exported animations
  such that now all scene animations are enclosed:

  <Animation name="id_name(ob)_Action">
    <Animation>...</Animation>
    ...
  </Animation>

Animation Importer:
* Import of animations for objects with multiple materials
  When importing multiple materials for one object,
  the imported material animation curves have all been
  assigned to the first material in the object.

Error handling (wip):
The Importer was a bit confused as it sometimes ignored fatal
parsing errors and continued to import. I did my best to
unconfuse it, but i believe that this needs to be tested more.

Refactoring:

update : move generation of effect id names into own function
update : adjust importer/exporter for no longer supported HEMI lights
cleanup: Removed no lopnger existing attribute from the exporter presets
cleanup: Removed not needed Context attribute from DocumentExporter
fix    : Avoid duplicate deletion of temporary items
cleanup: fixed indentation and white space issues
update : Make BCAnimation class more self contained
cleanup: Renamed classes, updated comments for better reading
cleanup: Moved static class functions to collada_utils
cleanup: Moved typedefs to more intuitive locations
cleanup: indentation and class method declarations
cleanup: Removed no longer needed methods
update : Moved Classes into separate files
cleanup: Added comments
cleanup: take care of name conventions
...    : many more small changes, not helpful to list them all

2 years agoFix T57996: Crash - delete node with a driven parameter
Sergey Sharybin [Fri, 23 Nov 2018 16:02:55 +0000 (17:02 +0100)]
Fix T57996: Crash - delete node with a driven parameter

2 years agoTag relations for update when clip's animation changes
Sergey Sharybin [Fri, 23 Nov 2018 15:46:19 +0000 (16:46 +0100)]
Tag relations for update when clip's animation changes

2 years agoReturn truth when animation fix changed animation
Sergey Sharybin [Fri, 23 Nov 2018 15:45:09 +0000 (16:45 +0100)]
Return truth when animation fix changed animation

This can be used to inform higher level modules that animation
is changed and that dependency graph likely requires relations
update now.

2 years agoDRW: Support Wireframe for cruve/surface/text objects
Clément Foucault [Fri, 23 Nov 2018 15:44:16 +0000 (16:44 +0100)]
DRW: Support Wireframe for cruve/surface/text objects

2 years agoAdd missing COW updates when selection changes in paint modes.
Alexander Gavrilov [Fri, 23 Nov 2018 15:28:36 +0000 (18:28 +0300)]
Add missing COW updates when selection changes in paint modes.

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Fri, 23 Nov 2018 13:41:21 +0000 (14:41 +0100)]
Merge branch 'master' into blender2.8

2 years agoUse default movie cache size of 4GiB
Sergey Sharybin [Fri, 23 Nov 2018 11:26:49 +0000 (12:26 +0100)]
Use default movie cache size of 4GiB

2 years agoCycles: Fixed a warning.
Stefan Werner [Fri, 23 Nov 2018 12:47:25 +0000 (13:47 +0100)]
Cycles: Fixed a warning.

2 years agoCycles: Improved robustness of hair motion blur.
Stefan Werner [Fri, 23 Nov 2018 12:21:55 +0000 (13:21 +0100)]
Cycles: Improved robustness of hair motion blur.

In some instances, the number of control vertices of a hair could change mid-frame.
Cycles would then be unable to calculate proper motion blur for those hairs. This adds
interpolated CVs to fill in for the missing data. While this will not necessarily result in
a fully accurate reconstruction of the guide hair, it preserves motion blur instead of disabling it.

Reviewers: #cycles, sergey

Reviewed By: #cycles, sergey

Subscribers: sergey, brecht, #cycles

Tags: #cycles

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

2 years agoUI: swap wireframe/solid order in pie to match order in header.
Brecht Van Lommel [Fri, 23 Nov 2018 11:37:43 +0000 (12:37 +0100)]
UI: swap wireframe/solid order in pie to match order in header.

2 years agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Fri, 23 Nov 2018 11:11:44 +0000 (12:11 +0100)]
Merge branch 'master' into blender2.8

2 years agoPython API: restore bpy.app.autoexec_fail variables, some scripts use it.
Brecht Van Lommel [Fri, 23 Nov 2018 10:44:57 +0000 (11:44 +0100)]
Python API: restore bpy.app.autoexec_fail variables, some scripts use it.

2 years agoFix T57616: Deleting particle system instance object leads to crash
Sergey Sharybin [Fri, 23 Nov 2018 11:00:34 +0000 (12:00 +0100)]
Fix T57616: Deleting particle system instance object leads to crash

Explicitly tag copy-on-write form library remap. Previously, this
tag was used implicitly via geometry/transform tagging, which worked
ok for objects. For non-objects we do need to ensure all copies has
correct pointer and the only way to do so is to pass tag explicitly.

There is probably more places in the library remap where this is
needed, but not being familiar with the code makes it difficult to
spot where possible tags are missing.

2 years agoPython API: bpy.app.handlers.depsgraph_update_pre/post
Jacques Lucke [Fri, 23 Nov 2018 10:51:42 +0000 (11:51 +0100)]
Python API: bpy.app.handlers.depsgraph_update_pre/post

Reviewers: brecht

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

2 years agoFix T57998: crash at start with jemalloc package on some Linux distributions.
Brecht Van Lommel [Fri, 23 Nov 2018 10:24:04 +0000 (11:24 +0100)]
Fix T57998: crash at start with jemalloc package on some Linux distributions.

The jemalloc library must be ahead of pthread in linking order, so jemalloc
can find the pthread symbols for its background thread.

2 years agoUI: initialize drag-lock x/y axis from region type
Campbell Barton [Fri, 23 Nov 2018 08:12:34 +0000 (19:12 +1100)]
UI: initialize drag-lock x/y axis from region type

When dragging in a vertical or horizontal region,
there is no need to detect the drag axis.

Gives minor usability improvement for dragging over vertical tabs.

2 years agoCorrect missing NULL check in recent changes
Campbell Barton [Fri, 23 Nov 2018 07:12:28 +0000 (18:12 +1100)]
Correct missing NULL check in recent changes

2 years agoFix uv lasso/box multi-object select logic
Campbell Barton [Fri, 23 Nov 2018 07:06:50 +0000 (18:06 +1100)]
Fix uv lasso/box multi-object select logic

Was de-selecting all UV's on each iteration.

2 years agoTool System: uv lasso/box select options
Campbell Barton [Fri, 23 Nov 2018 06:52:28 +0000 (17:52 +1100)]
Tool System: uv lasso/box select options

These tools now support (new, add, subtract),
(xor, and) could be supported but are complicated by UV's sticky
selection modes.

2 years agoError in last commi
Campbell Barton [Fri, 23 Nov 2018 05:28:50 +0000 (16:28 +1100)]
Error in last commi

2 years agoFix wire-toggle restoring previous shading mode
Campbell Barton [Fri, 23 Nov 2018 05:25:00 +0000 (16:25 +1100)]
Fix wire-toggle restoring previous shading mode

2 years agoKeymap: remove redundant keys from toolbar popup
Campbell Barton [Fri, 23 Nov 2018 04:41:35 +0000 (15:41 +1100)]
Keymap: remove redundant keys from toolbar popup

Adjust the keymap so tools that don't exist wont use keys
from the default keymap.

2 years agoFix toolbar keymap accumulating items
Campbell Barton [Fri, 23 Nov 2018 04:16:45 +0000 (15:16 +1100)]
Fix toolbar keymap accumulating items

Create a temporary keymap with items from the original.

2 years agoKeymap: add Keymap.keymap_items.new_from_item
Campbell Barton [Fri, 23 Nov 2018 04:16:13 +0000 (15:16 +1100)]
Keymap: add Keymap.keymap_items.new_from_item

Needed to copy keymap items from other keymaps.

2 years agoCleanup: single quote enums
Campbell Barton [Fri, 23 Nov 2018 02:55:33 +0000 (13:55 +1100)]
Cleanup: single quote enums

2 years agoCleanup: rename bone-select to xray
Campbell Barton [Fri, 23 Nov 2018 02:46:40 +0000 (13:46 +1100)]
Cleanup: rename bone-select to xray

This shows bones in font and uses the xray toggle binding.
Also 'bone select' isn't very meaningful on it's own.

2 years agoUI: Don't promt when deleting via Object Context Menu.
Pablo Vazquez [Fri, 23 Nov 2018 02:47:02 +0000 (03:47 +0100)]
UI: Don't promt when deleting via Object Context Menu.

Suggested in the UI paper-cut thread at devtalk.blender.org by ThinkingPolygons

2 years agoUI: Icons in context menu for copy/paste
Pablo Vazquez [Fri, 23 Nov 2018 02:44:27 +0000 (03:44 +0100)]
UI: Icons in context menu for copy/paste