blender.git
2 years agoFix T58870: submenus don't open for some specific mouse positions.
Brecht Van Lommel [Thu, 3 Jan 2019 11:10:14 +0000 (12:10 +0100)]
Fix T58870: submenus don't open for some specific mouse positions.

2 years agoFix accidental changes to default preferences in recent startup.blend commit.
Brecht Van Lommel [Thu, 3 Jan 2019 10:48:05 +0000 (11:48 +0100)]
Fix accidental changes to default preferences in recent startup.blend commit.

2 years agoFix T60056: Make Duplicates Real with Keep Hierarchy does nothing
Philipp Oeser [Wed, 2 Jan 2019 14:37:15 +0000 (15:37 +0100)]
Fix T60056: Make Duplicates Real with Keep Hierarchy does nothing

Caused by rB36ca072375deea4803df4681716c1d3224095e07
[one instance of `DEG_get_original_object` was neccesary, the other one
breaks getting the parent in `BLI_ghash_lookup`]

Reviewed by: brecht

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

2 years agoGP: Include Lasso eraser in Fill and Primitives
Antonioya [Thu, 3 Jan 2019 10:29:33 +0000 (11:29 +0100)]
GP: Include Lasso eraser in Fill and Primitives

This option allows to delete sections using Ctrl+Alt.

2 years agoFix T59527: Segment fault changing layer visibility and onion skin
Antonioya [Thu, 3 Jan 2019 09:39:14 +0000 (10:39 +0100)]
Fix T59527: Segment fault changing layer visibility and onion skin

In some situation when the layer is hidden, the onion skin must be disabled too, because the material is not available.

2 years agoCleanup: indentation
Campbell Barton [Thu, 3 Jan 2019 06:30:54 +0000 (17:30 +1100)]
Cleanup: indentation

2 years agoDRW: remove INDEX4 normal flipping
Campbell Barton [Thu, 3 Jan 2019 06:20:41 +0000 (17:20 +1100)]
DRW: remove INDEX4 normal flipping

Added in 531e5ad49a03763 but I couldn't find a case when it's needed,
It's not needed for solid-mode viewport drawing for eg.

2 years agoRevert "GPU: add negated normal conversion functions"
Campbell Barton [Thu, 3 Jan 2019 06:19:05 +0000 (17:19 +1100)]
Revert "GPU: add negated normal conversion functions"

This reverts commit d28b29d428cc7fc7eb29f2302b5d80fc63a9f870.

2 years agoFix T59842: Curve flat shading doesn't work
Campbell Barton [Thu, 3 Jan 2019 05:56:53 +0000 (16:56 +1100)]
Fix T59842: Curve flat shading doesn't work

Calculate flat shaded normals when creating batch cache.

Note that 2.7x was using vertex normals as flat-face normals.

2 years agoGPU: add negated normal conversion functions
Campbell Barton [Thu, 3 Jan 2019 05:56:16 +0000 (16:56 +1100)]
GPU: add negated normal conversion functions

Saves having to negate to a temporary variable.

2 years agoCleanup: variable name
Campbell Barton [Thu, 3 Jan 2019 05:02:26 +0000 (16:02 +1100)]
Cleanup: variable name

2 years agoCleanup: preprocessor indentation
Campbell Barton [Thu, 3 Jan 2019 04:52:07 +0000 (15:52 +1100)]
Cleanup: preprocessor indentation

2 years agoTransform: default shrink/fatten even-offset to false
Campbell Barton [Thu, 3 Jan 2019 04:13:46 +0000 (15:13 +1100)]
Transform: default shrink/fatten even-offset to false

Changed for 2.8 but this cases spikes for some geometry, see: T59968

2 years agoFix new material for pinned objects
Campbell Barton [Thu, 3 Jan 2019 01:33:12 +0000 (12:33 +1100)]
Fix new material for pinned objects

Grease pencil check was using active object.

2 years agoMerge branch 'blender2.7'
Campbell Barton [Thu, 3 Jan 2019 01:23:17 +0000 (12:23 +1100)]
Merge branch 'blender2.7'

2 years agoFix T60014: material link pref ignored
Campbell Barton [Thu, 3 Jan 2019 01:15:03 +0000 (12:15 +1100)]
Fix T60014: material link pref ignored

The PreferencesEdit.material_link only worked for adding slots,
adding an initial new material didn't respect the preference.

2 years agoFix (unreported): unpredictable crashes when it is done snap after automerge.
mano-wii [Wed, 2 Jan 2019 18:57:54 +0000 (16:57 -0200)]
Fix (unreported): unpredictable crashes when it is done snap after automerge.

The `em->tottri` of an evaluated object can be different from the actual amount of looptris.

2 years agoFix T58859: render with compositor does not render other scenes.
Brecht Van Lommel [Wed, 2 Jan 2019 19:22:16 +0000 (20:22 +0100)]
Fix T58859: render with compositor does not render other scenes.

2 years agoFix wrong alpha blending for datablock preview icons.
Brecht Van Lommel [Wed, 2 Jan 2019 19:10:48 +0000 (20:10 +0100)]
Fix wrong alpha blending for datablock preview icons.

2 years agoMerge branch 'blender2.7'
Brecht Van Lommel [Wed, 2 Jan 2019 18:58:26 +0000 (19:58 +0100)]
Merge branch 'blender2.7'

2 years agoFix T60061: Cycles OSL point density not working.
Brecht Van Lommel [Wed, 2 Jan 2019 18:55:26 +0000 (19:55 +0100)]
Fix T60061: Cycles OSL point density not working.

Add override keywords so we can detect when the function definitions change.

2 years agoFix T60037: single column layout breaks file browse button.
Brecht Van Lommel [Wed, 2 Jan 2019 18:22:56 +0000 (19:22 +0100)]
Fix T60037: single column layout breaks file browse button.

2 years agoFix T59063: operator search menu loses background in some cases.
Brecht Van Lommel [Wed, 2 Jan 2019 17:56:36 +0000 (18:56 +0100)]
Fix T59063: operator search menu loses background in some cases.

2 years agoFix wrong grease pencil shader FX usage of object location.
Brecht Van Lommel [Wed, 2 Jan 2019 17:18:11 +0000 (18:18 +0100)]
Fix wrong grease pencil shader FX usage of object location.

It should use the evaluated object location, and not add any unnecessary
dependency on geometry data.

2 years agoFix T59792: Cycles crash rendering motion pass with motion blur enabled.
Brecht Van Lommel [Wed, 2 Jan 2019 16:46:57 +0000 (17:46 +0100)]
Fix T59792: Cycles crash rendering motion pass with motion blur enabled.

2 years agoFix T60051: Wrong stroke projection when viewmode set to Front
Antonioya [Wed, 2 Jan 2019 16:43:09 +0000 (17:43 +0100)]
Fix T60051: Wrong stroke projection when viewmode set to Front

As the z-depth is calculated using the internal drawing, if we use the front mode the z-depth is wrong. The Front or Back mode must be used only for display, but not for calculation.

2 years agoFix T60046: crash with Cycles viewport render and particle info node.
Brecht Van Lommel [Wed, 2 Jan 2019 15:32:32 +0000 (16:32 +0100)]
Fix T60046: crash with Cycles viewport render and particle info node.

This code was not correctly ported to 2.8.

2 years agoFix T60031: Joining two Grease Pencilobjects sometimes crashes
Antonioya [Wed, 2 Jan 2019 16:10:37 +0000 (17:10 +0100)]
Fix T60031: Joining two Grease Pencilobjects sometimes crashes

The drawing cache was not set as dirty and drawing engine used old data.

2 years agoFixes and edits to studio light operators
Campbell Barton [Wed, 2 Jan 2019 15:01:28 +0000 (02:01 +1100)]
Fixes and edits to studio light operators

- Remove pathlib use
  (was converting to/from string with no real advantage).
- Use user_resource(..., create=True) to ensure the path exists.
- Pass full path to BKE_studiolight_create, don't add extension after.
- Fix 'sl' filtering glob and move from ui code to operator.
- Fix string copy length.

2 years agoCleanup: py-gpu error checks
Campbell Barton [Wed, 2 Jan 2019 14:08:26 +0000 (01:08 +1100)]
Cleanup: py-gpu error checks

Move gpu initialization checks to the start of each function instead
of mixing with argument parsing.

2 years agoRevert file rename from T59773 fix
Campbell Barton [Wed, 2 Jan 2019 13:55:07 +0000 (00:55 +1100)]
Revert file rename from T59773 fix

Mixing file rename with other changes should be avoided.

Using 'module_py_api' convention here
is in keeping with imbuf, idprop, blf & bmesh.
No reason for gpu to have a different convention.

2 years agoFix T59773: Raise exception if the gpu module is used in backgound mode.
mano-wii [Wed, 2 Jan 2019 12:01:46 +0000 (10:01 -0200)]
Fix T59773: Raise exception if the gpu module is used in backgound mode.

Instead of crashing, an error message is displayed if a function of the gpu module is called without a GPU context.

Reviewers: brecht, campbellbarton, JacquesLucke, mont29

Subscribers: abdelmatinboulbayam, amir.shehata

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

2 years agoFix poll function for SelectPattern operator
Dalai Felinto [Wed, 2 Jan 2019 12:37:02 +0000 (10:37 -0200)]
Fix poll function for SelectPattern operator

Note this is also broken in 2.7x.

This is not a big deal since the operator is exposed in the correct
menus. But some users were accessing it via the search menu which would
lead to issues.

2 years agoFix T60030: Select pattern fails with pose bones
Dalai Felinto [Wed, 2 Jan 2019 12:22:00 +0000 (10:22 -0200)]
Fix T60030: Select pattern fails with pose bones

The original comment in the file was not acknoledging pose bones could be tacked
here as well (my fault since I should not have trusted the comments and read the code
intead).

Problem introduced on aeb8e81f2741.

2 years agoFix T60060: Corrective Smooth Modifier binding process is broken.
Bastien Montagne [Wed, 2 Jan 2019 10:26:31 +0000 (11:26 +0100)]
Fix T60060: Corrective Smooth Modifier binding process is broken.

Same as with the other modifiers' binding ops, those need to be
performed outside of regular depsgraph eval.

2 years agoGP: Cleanup pad to _pad
Antonioya [Wed, 2 Jan 2019 09:55:17 +0000 (10:55 +0100)]
GP: Cleanup pad to _pad

2 years agoUI: correct sequencer icon in add menu
Campbell Barton [Wed, 2 Jan 2019 08:17:30 +0000 (19:17 +1100)]
UI: correct sequencer icon in add menu

2 years agoUI: Show shade smooth/flat in curve context menu
Campbell Barton [Wed, 2 Jan 2019 08:03:32 +0000 (19:03 +1100)]
UI: Show shade smooth/flat in curve context menu

2 years agoFix T59886: Missing transform gizmo update
Campbell Barton [Wed, 2 Jan 2019 07:46:43 +0000 (18:46 +1100)]
Fix T59886: Missing transform gizmo update

2 years ago3D View: use grid & all axes in axis-views
Campbell Barton [Wed, 2 Jan 2019 07:33:07 +0000 (18:33 +1100)]
3D View: use grid & all axes in axis-views

Matches 2.7x behavior.

2 years agoUI: add scale option for template_icon_view button
Campbell Barton [Wed, 2 Jan 2019 07:18:54 +0000 (18:18 +1100)]
UI: add scale option for template_icon_view button

The existing scale option only changed the scale if icons in the popup.

2 years agoCleanup: use RNA icon instead of passing as an arg
Campbell Barton [Wed, 2 Jan 2019 06:23:57 +0000 (17:23 +1100)]
Cleanup: use RNA icon instead of passing as an arg

2 years agoCleanup: indentation, naming
Campbell Barton [Wed, 2 Jan 2019 06:03:45 +0000 (17:03 +1100)]
Cleanup: indentation, naming

Use rna naming conventions for unit-settings callbacks.

2 years agoPyRNA: enum no longer returns first item when the value isn't found
Campbell Barton [Wed, 2 Jan 2019 05:30:13 +0000 (16:30 +1100)]
PyRNA: enum no longer returns first item when the value isn't found

This hides errors & makes it confusing to debug mistakes
when the enum items aren't correct.

Return an empty string instead.

2 years agoFix image editor tool-settings missing from topbar
Campbell Barton [Wed, 2 Jan 2019 05:14:22 +0000 (16:14 +1100)]
Fix image editor tool-settings missing from topbar

2 years agoCleanup: rename manipulator references
Campbell Barton [Wed, 2 Jan 2019 04:43:58 +0000 (15:43 +1100)]
Cleanup: rename manipulator references

2 years agoCleanup: use '_pad' in DNA
Campbell Barton [Wed, 2 Jan 2019 04:38:45 +0000 (15:38 +1100)]
Cleanup: use '_pad' in DNA

Convention used elsewhere, has advantage pad vars don't autocomplete
with other vars beginning w/ 'p'.

2 years agoCleanup: rename target_weight -> weight
Campbell Barton [Wed, 2 Jan 2019 04:31:56 +0000 (15:31 +1100)]
Cleanup: rename target_weight -> weight

Match name of mesh weight paint.

2 years agoUI: de-duplicate top-bar and panel paint scripts
Campbell Barton [Wed, 2 Jan 2019 03:36:56 +0000 (14:36 +1100)]
UI: de-duplicate top-bar and panel paint scripts

- Fixes missing check for unified brush in sculpt mode.
- Re-orders material first in gpencil paint mode
  (matching color-first for other paint modes).
- Avoid minor differences (missing tablet pressure options from topbar).
- Don't repeat properties already displayed in the topbar
  when opening the brush popover.

2 years agoUI: add painting blend mode to top-bar
William Reynish [Tue, 1 Jan 2019 23:46:10 +0000 (10:46 +1100)]
UI: add painting blend mode to top-bar

2 years agoGP: Don't use offset for Stroke projection
Antonioya [Tue, 1 Jan 2019 15:44:10 +0000 (16:44 +0100)]
GP: Don't use offset for Stroke projection

The offset is only used in Surface mode.

2 years agoFix T60015: snap to grid - snaps only to largest increment
mano-wii [Mon, 31 Dec 2018 15:45:20 +0000 (13:45 -0200)]
Fix T60015: snap to grid - snaps only to largest increment

Caused by rBc7a96651dfa4 when trying to remove all uses of the deprecated `rv3d->gridview`.

2 years agoOutliner: expand view layer collections by default, revealing objects.
Brecht Van Lommel [Mon, 31 Dec 2018 15:36:25 +0000 (16:36 +0100)]
Outliner: expand view layer collections by default, revealing objects.

2 years agoTemplates: tweaks to startup templates.
Brecht Van Lommel [Mon, 31 Dec 2018 14:59:37 +0000 (15:59 +0100)]
Templates: tweaks to startup templates.

* 2D Animation: lots of changes from the grease pencil team. Properties
  editor layouts, brush and material settings, and more.
* 3D Viewport: wireframes set to 1.0.
* World: use nodes by default.
* Node Editor: use narrow toolbar.

2 years agoViewport: update default set of HDR images.
Brecht Van Lommel [Mon, 31 Dec 2018 13:53:07 +0000 (14:53 +0100)]
Viewport: update default set of HDR images.

Add city, courtyard and interior HDRs. Replace grass field and night
HDR with different images.

Command used for compression:
oiiotool %s --resize 1024x512 --ch R,G,B -d float --compression dwab:300 -o output/%s

2 years agoCleanup: remove unused camera studio lights.
Brecht Van Lommel [Mon, 31 Dec 2018 14:08:18 +0000 (15:08 +0100)]
Cleanup: remove unused camera studio lights.

2 years agoCleanup: specify default studiolight name, instead using first alphabetically.
Brecht Van Lommel [Mon, 31 Dec 2018 14:36:09 +0000 (15:36 +0100)]
Cleanup: specify default studiolight name, instead using first alphabetically.

2 years agoFix T59991: duplicate entries for node select operators in keymap.
Brecht Van Lommel [Mon, 31 Dec 2018 13:11:42 +0000 (14:11 +0100)]
Fix T59991: duplicate entries for node select operators in keymap.

Ref D4055.

2 years agoUI: icon set updates by Andrzej Ambroz.
William Reynish [Mon, 31 Dec 2018 12:50:56 +0000 (13:50 +0100)]
UI: icon set updates by Andrzej Ambroz.

2 years agoFix: Cramped layout in object parent properties
William Reynish [Sun, 30 Dec 2018 15:30:17 +0000 (16:30 +0100)]
Fix: Cramped layout in object parent properties

2 years agoCleanup: remove non-existing function declarations
Campbell Barton [Sun, 30 Dec 2018 13:57:47 +0000 (00:57 +1100)]
Cleanup: remove non-existing function declarations

2 years agoGP: Mew Merge Strokes operator
Antonioya [Sun, 30 Dec 2018 12:08:04 +0000 (13:08 +0100)]
GP: Mew Merge Strokes operator

This operator allows to create a new stroke joining several selected points of different strokes.

The new stroke will use the current material.

To use, first select the points to be merged. Optionally can remove the old points and strokes.

The operator is available in Edit mode in the Specials menu and Stroke menu.

2 years agoCleanup: warnings (clang)
Campbell Barton [Sun, 30 Dec 2018 04:14:00 +0000 (15:14 +1100)]
Cleanup: warnings (clang)

2 years agoFix: Scrolling Preferences could cause blank UI
Severin [Sat, 29 Dec 2018 18:06:06 +0000 (19:06 +0100)]
Fix: Scrolling Preferences could cause blank UI

Steps to reproduce were:
* Open Preferences
* Choose "Input" category
* Scroll to the bottom
* Choose "Interface" category

The newly activated category should now use the scrolling set previously
in the other category, causing the contents to be out of view. You
would have to scroll to bring it back.

Now scrolling is stored per category.

2 years agoFix T59675: Motion path frame numbers at wrong positions
Jacques Lucke [Sat, 29 Dec 2018 17:34:25 +0000 (18:34 +0100)]
Fix T59675: Motion path frame numbers at wrong positions

Reviewed By: brecht

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

2 years agoCleanup: avoid counting list multiple times
Campbell Barton [Fri, 28 Dec 2018 23:19:38 +0000 (10:19 +1100)]
Cleanup: avoid counting list multiple times

Also simplify selected sequencer length function.

2 years agoCleanup: use bool, style
Campbell Barton [Fri, 28 Dec 2018 23:04:39 +0000 (10:04 +1100)]
Cleanup: use bool, style

2 years agoCycles: restore old sample and material override settings for view layers.
Brecht Van Lommel [Fri, 28 Dec 2018 17:37:05 +0000 (18:37 +0100)]
Cycles: restore old sample and material override settings for view layers.

Since there will be no view layer overrides in 2.80, this is needed still.

2 years agoFix T57078: Alembic curve import: better check for topology similarity
Sybren A. Stüvel [Fri, 28 Dec 2018 17:05:31 +0000 (18:05 +0100)]
Fix T57078: Alembic curve import: better check for topology similarity

The old code assumed that if the number of curves was the same, the
entire set of curves would have the same topology (in other words, it
assumed 'same number of curves => same number of vertices for each
curve').

I've added a more thorough check that also considers the number of
vertices in each curve. This still keeps certain assumptions in place
(for example that if the topology is the same, the weights won't change,
which is not necessarily true). However, when the assumption doesn't
hold, at least now Blender doesn't crash any more.

2 years agoFix T59164: Run Alembic in background when INVOKE'd
Sybren A. Stüvel [Fri, 28 Dec 2018 14:37:53 +0000 (15:37 +0100)]
Fix T59164: Run Alembic in background when INVOKE'd

This is similar to what physics baking is doing: invoking the operator
runs a background job, whereas executing blocks. This makes Python
scripts calling the Alembic import/export operators more predictable.

For backwardward compatibility with existing Python code the
`as_background_job` parameter still exists, which overrides the
behaviour chosen by INVOKE/EXECUTE.

Reviewers: brecht

Reviewed by: brecht

Differential revision: https://developer.blender.org/D4137/new/

2 years agoDocs: update manpage and html with app description matching website.
Brecht Van Lommel [Fri, 28 Dec 2018 16:36:59 +0000 (17:36 +0100)]
Docs: update manpage and html with app description matching website.

2 years agoUI: update Blender application icon on all platforms.
William Reynish [Wed, 28 Nov 2018 18:40:18 +0000 (19:40 +0100)]
UI: update Blender application icon on all platforms.

More accurate logo colors, flatter look.

2 years agoAlembic import: Fix crash with mcol indices out of bounds
Philipp Oeser [Fri, 28 Dec 2018 15:14:39 +0000 (16:14 +0100)]
Alembic import: Fix crash with mcol indices out of bounds

Part of T57377

Reviewers: sybren

Maniphest Tasks: T57377

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

2 years agoAlembic import: lock interface while importing
Sybren A. Stüvel [Fri, 28 Dec 2018 15:40:08 +0000 (16:40 +0100)]
Alembic import: lock interface while importing

This prevents crashes caused by the viewport evaluating the depsgraph while
the import is still running.

2 years agoFix T59785: Curve modifier does not update in realtime in object mode
Philipp Oeser [Fri, 28 Dec 2018 13:03:01 +0000 (14:03 +0100)]
Fix T59785: Curve modifier does not update in realtime in object mode

Reviewers: brecht

Maniphest Tasks: T59785

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

2 years agoFix T59526: VSE Add submenus for clips/masks dont show with only one
Philipp Oeser [Fri, 28 Dec 2018 14:27:06 +0000 (15:27 +0100)]
Fix T59526: VSE Add submenus for clips/masks dont show with only one
item

2 years agoSequencer: refactor clipboard copy to no longer increase user count.
Brecht Van Lommel [Fri, 28 Dec 2018 12:37:51 +0000 (13:37 +0100)]
Sequencer: refactor clipboard copy to no longer increase user count.

The clipboard is not a real user and should not be counted. Only on paste
should the user count increase.

This is part of D3621, and was implemented by Richard Antalik and me.

2 years agoFix more issues with recent render passes code cleanup.
Brecht Van Lommel [Fri, 28 Dec 2018 11:28:26 +0000 (12:28 +0100)]
Fix more issues with recent render passes code cleanup.

Ref D4133.

2 years agoFix T59910: material editor UI issue after recent changes.
Brecht Van Lommel [Fri, 28 Dec 2018 10:28:58 +0000 (11:28 +0100)]
Fix T59910: material editor UI issue after recent changes.

This reverts part of commit 4f98266cf6, ref D4123.

2 years agoFix T59922: crash reading files with older renderlayers
Philipp Oeser [Fri, 28 Dec 2018 09:26:45 +0000 (10:26 +0100)]
Fix T59922: crash reading files with older renderlayers

- own error in rB2c196de56bbb163048b08f321983234a5e72e804
- now introduce RE_PASSNAME_DEPRECATED placeholder for old passes
- also dont allocate NodeImageLayers for these

Reviewers: brecht

Maniphest Tasks: T59922

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

2 years agoFix T59774: Lightmap Pack Error: Element-wise multiplication: not supported between...
Bastien Montagne [Fri, 28 Dec 2018 09:37:54 +0000 (10:37 +0100)]
Fix T59774: Lightmap Pack Error: Element-wise multiplication: not supported between 'Quaternion' and 'Vector' types.

2 years agoGP: Rename GP_STROKE_RECALC_CACHE to GP_STROKE_RECALC_GEOMETRY
Antonioya [Fri, 28 Dec 2018 07:48:37 +0000 (08:48 +0100)]
GP: Rename GP_STROKE_RECALC_CACHE to GP_STROKE_RECALC_GEOMETRY

The GP_STROKE_RECALC_CACHE identifier was changed to GP_STROKE_RECALC_GEOMETRY because the previous name was confusing and could be confused with the recalculation of the Draw Manager cache.

2 years agoMerge branch 'blender2.7'
Bastien Montagne [Thu, 27 Dec 2018 22:33:42 +0000 (23:33 +0100)]
Merge branch 'blender2.7'

Conflicts:
source/blender/windowmanager/intern/wm_operators.c

2 years agoFix (unreported) broken Cycles tests after numaapi changes today.
Bastien Montagne [Thu, 27 Dec 2018 21:38:22 +0000 (22:38 +0100)]
Fix (unreported) broken Cycles tests after numaapi changes today.

Please always build tests when messing with build system/libs, am tired
of fixing that kind of issues...

Also, that fix is probably not working for standalone, no idea where's
the numaapi lib then, but committing since I need a building blender
here (with the tests, yes).

2 years agoAPI Doc: point to blender2.7 new folder.
Bastien Montagne [Thu, 27 Dec 2018 22:02:20 +0000 (23:02 +0100)]
API Doc: point to blender2.7 new folder.

master is now for 2.8. ;)

2 years agoPoint API doc back to master one.
Bastien Montagne [Thu, 27 Dec 2018 21:57:55 +0000 (22:57 +0100)]
Point API doc back to master one.

Now that 2.8 is master again...
Still have to update 2.7 thingy there, now (and update API doc site
 accordingly, too).

2 years agoFix (unreported) broken Cycles tests after numaapi changes today.
Bastien Montagne [Thu, 27 Dec 2018 21:38:22 +0000 (22:38 +0100)]
Fix (unreported) broken Cycles tests after numaapi changes today.

Please always build tests when messing with build system/libs, am tired
of fixing that kind of issues...

Also, that fix is probably not working for standalone, no idea where's
the numaapi lib then, but committing since I need a building blender
here (with the tests, yes).

2 years agoGP: Avoid Onion calculation when play animation
Antonioya [Thu, 27 Dec 2018 21:01:46 +0000 (22:01 +0100)]
GP: Avoid Onion calculation when play animation

2 years agoMerge branch 'blender2.7'
Sergey Sharybin [Thu, 27 Dec 2018 18:13:27 +0000 (19:13 +0100)]
Merge branch 'blender2.7'

2 years agoFix T59874: Cycles CPU 25% load only during rendering
Sergey Sharybin [Thu, 27 Dec 2018 18:01:19 +0000 (19:01 +0100)]
Fix T59874: Cycles CPU 25% load only during rendering

The issue was introduced by a Threadripper2 commit back in
ce927e15e0e3. This boils down to threads inheriting affinity
from the parent thread. It is a question how this slipped
through the review (we definitely run benchmark round).

Quick fix could have been to always set CPU group affinity
in Cycles, and it would work for Windows. On other platforms
we did not have CPU groups API finished.

Ended up making Cycles aware of NUMA topology, so now we
bound threads to a specific NUMA node. This required adding
an external dependency to Cycles, but made some code there
shorter.

2 years agoFix T59865: UV editor vertex snap to active does not make any sense.
Sebastian Parborg [Thu, 27 Dec 2018 17:39:39 +0000 (18:39 +0100)]
Fix T59865: UV editor vertex snap to active does not make any sense.

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

2 years agoFix T59870: Can't select "Face area" in average normals operator.
Bastien Montagne [Thu, 27 Dec 2018 16:35:37 +0000 (17:35 +0100)]
Fix T59870: Can't select "Face area" in average normals operator.

Not sure why the mode prop was hidden at all, tbh...

2 years agoFix T58734: bvhtree.fromObject - error ( returned NULL without setting an error)...
Bastien Montagne [Thu, 27 Dec 2018 16:18:05 +0000 (17:18 +0100)]
Fix T58734: bvhtree.fromObject - error ( returned NULL without setting an error) in blender 2.8.

Would free evaluated mesh even when it was the one cached in runtime
data by depsgraph evaluation!

Also fixes the asserts about using non-eval object in some cases.

2 years agoGP: Enable Brush cursor by default for new brushes
Antonioya [Thu, 27 Dec 2018 16:04:31 +0000 (17:04 +0100)]
GP: Enable Brush cursor by default for new brushes

2 years agoFix T59900: duplicate font loading error and memory leak.
Brecht Van Lommel [Thu, 27 Dec 2018 14:22:20 +0000 (15:22 +0100)]
Fix T59900: duplicate font loading error and memory leak.

2 years agoMerge branch 'blender2.7'
Brecht Van Lommel [Thu, 27 Dec 2018 15:45:01 +0000 (16:45 +0100)]
Merge branch 'blender2.7'

2 years agoX11: support multiple tablet devices.
Brecht Van Lommel [Thu, 27 Dec 2018 14:22:20 +0000 (15:22 +0100)]
X11: support multiple tablet devices.

Previously we would try to guess what the main tablet device is, but this is
error prone. Now we keep a list of X11 devices and try to match events to
them. On the Blender side there are still some limitations in regards to using
multiple devices at the same time, but this should improve things already.

Fixes T59645.

2 years agoMerge branch 'blender2.7'
Brecht Van Lommel [Thu, 27 Dec 2018 15:32:17 +0000 (16:32 +0100)]
Merge branch 'blender2.7'

2 years agoFix T59864: UV editor missing options in snapping pie menu.
Sebastian Parborg [Thu, 27 Dec 2018 15:23:12 +0000 (16:23 +0100)]
Fix T59864: UV editor missing options in snapping pie menu.

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

2 years agoX11: support multiple tablet devices.
Brecht Van Lommel [Thu, 27 Dec 2018 14:22:20 +0000 (15:22 +0100)]
X11: support multiple tablet devices.

Previously we would try to guess what the main tablet device is, but this is
error prone. Now we keep a list of X11 devices and try to match events to
them. On the Blender side there are still some limitations in regards to using
multiple devices at the same time, but this should improve things already.

Fixes T59645.