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

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 agocleanup: remove unused passes
Philipp Oeser [Fri, 21 Dec 2018 22:26:04 +0000 (23:26 +0100)]
cleanup: remove unused passes

- use_pass_indirect, use_pass_specular from ViewLayer RNA
- RGBA, DIFFUSE, SPEC, REFLECT, REFRACT, INDIRECT usages from remaining
places

Reviewers: brecht

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

2 years agoFix T59861: converting GP stroke to curve doesn't immediately work
Philipp Oeser [Thu, 27 Dec 2018 13:41:02 +0000 (14:41 +0100)]
Fix T59861: converting GP stroke to curve doesn't immediately work

Reviewers: antoniov, brecht

Maniphest Tasks: T59861

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

2 years agoFix T59884: Rigidbody Calculate Mass Sets Mass to 0
Philipp Oeser [Thu, 27 Dec 2018 08:58:19 +0000 (09:58 +0100)]
Fix T59884: Rigidbody Calculate Mass Sets Mass to 0

rigidbody_get_mesh() needs an evaluated object

Reviewers: sergey, brecht

Maniphest Tasks: T59884

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

2 years agoFix T59389: Solidify Modifier does not work with 'beveled' Curve objects.
Bastien Montagne [Thu, 27 Dec 2018 14:01:48 +0000 (15:01 +0100)]
Fix T59389: Solidify Modifier does not work with 'beveled' Curve objects.

Curve modifier eval code was actually doing nothing to ensure we passed
mesh with valid normals when required by the modifier.

This is a bit basic, rough code, but think it should cover all cases,
time will say...

2 years agoUI: fix display of menu buttons without text and icon, and only a down arrow.
Harley Acheson [Thu, 27 Dec 2018 12:58:02 +0000 (13:58 +0100)]
UI: fix display of menu buttons without text and icon, and only a down arrow.

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

2 years agoUI: fix inconsistent icon button widths for popovers and enums.
Harley Acheson [Thu, 27 Dec 2018 11:48:00 +0000 (12:48 +0100)]
UI: fix inconsistent icon button widths for popovers and enums.

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

2 years agoFix T59799: texture paint mode crash for object with no materials.
Brecht Van Lommel [Thu, 27 Dec 2018 11:18:37 +0000 (12:18 +0100)]
Fix T59799: texture paint mode crash for object with no materials.

2 years agoMerge branch 'blender2.7'
Sergey Sharybin [Thu, 27 Dec 2018 10:43:06 +0000 (11:43 +0100)]
Merge branch 'blender2.7'

2 years agoFix T56595: Hair Dynamics stop working after saving new file
Sergey Sharybin [Thu, 27 Dec 2018 10:35:31 +0000 (11:35 +0100)]
Fix T56595: Hair Dynamics stop working after saving new file

The issue was caused by NaN valid of the average spring length being
stored in the file. This caused accumulation in the springs builder
to also deliver NaNs, which then caused solver itself to not do
anything.

Not sure why these values where never initialized prior to the
accumulation. Or even, why this runime data is stored in a DNA.

Some sanitizing is possible here, but needs to be done with care
to not disrupt Spring production.

2 years agoMerge branch 'blender2.7'
Brecht Van Lommel [Thu, 27 Dec 2018 09:53:02 +0000 (10:53 +0100)]
Merge branch 'blender2.7'

2 years agoCleanup: style
Campbell Barton [Thu, 27 Dec 2018 02:14:37 +0000 (13:14 +1100)]
Cleanup: style

2 years agoCleanup: use unsigned char (change previous commit)
Campbell Barton [Thu, 27 Dec 2018 01:54:31 +0000 (12:54 +1100)]
Cleanup: use unsigned char (change previous commit)

2 years agoCleanup: warnings
Campbell Barton [Thu, 27 Dec 2018 01:52:33 +0000 (12:52 +1100)]
Cleanup: warnings

2 years agoFix T59866: UV editor: no circle select.
Bastien Montagne [Wed, 26 Dec 2018 22:09:34 +0000 (23:09 +0100)]
Fix T59866: UV editor: no circle select.

2 years agoFix T57861: Object.ray_cast (and all RNA functions using "ob->runtime") broken in...
Bastien Montagne [Wed, 26 Dec 2018 21:48:10 +0000 (22:48 +0100)]
Fix T57861: Object.ray_cast (and all RNA functions using "ob->runtime") broken in Blender 2.80

In fact, we can get valid depsgraph 99% of time from current context.

Still added extra optionnal depsgraph parameter just in case (and also
for future, when we might be handling much more temp depsgraphs).

2 years agoGPU: Add another driver to the list of unused_fb_slot_workaround
mano-wii [Tue, 25 Dec 2018 16:36:22 +0000 (14:36 -0200)]
GPU: Add another driver to the list of unused_fb_slot_workaround

I start to think that an automatic detection would be a better solution.

2 years agoFix T59505: Knife tool cut preview line becomes black
mano-wii [Mon, 24 Dec 2018 01:32:56 +0000 (23:32 -0200)]
Fix T59505: Knife tool cut preview line becomes black

The real reason for the problem is still unknown, but this solution adds less overhead than rBdafaa6f22881.

2 years agoRevert "Fix T59505: Knife tool cut preview line becomes black"
mano-wii [Mon, 24 Dec 2018 01:18:07 +0000 (23:18 -0200)]
Revert "Fix T59505: Knife tool cut preview line becomes black"

This reverts commit dafaa6f22881419ac55f2f3fe3de9ac4023aa108.

2 years agoGP: Remove duplicate code moving to single function
Antonioya [Tue, 25 Dec 2018 10:10:05 +0000 (11:10 +0100)]
GP: Remove duplicate code moving to single function

2 years agoFix/cleanup typos and such in UI messages (and some comments).
Bastien Montagne [Mon, 24 Dec 2018 14:02:20 +0000 (15:02 +0100)]
Fix/cleanup typos and such in UI messages (and some comments).

2 years agoBuild script: Don't use external Pugi for OSL
Sergey Sharybin [Mon, 24 Dec 2018 13:36:04 +0000 (14:36 +0100)]
Build script: Don't use external Pugi for OSL

Now, things are becoming REALLY confusing. The script does build
pugi, but is never telling OIIO to use an external one. Which makes
it to use a bundled one.

Trying to link OSL to a different version of pugi causes a lot of
linking errors.

Interestingly enough, that was me who made OSL to use external pugi
to solve configuration problem. But now i can not reproduce that
anymore.

Ideally we would either link everything against our pugi, or not
compile it at all.

2 years agoFix/cleanup another bunch of UI messages issues.
Bastien Montagne [Mon, 24 Dec 2018 11:31:39 +0000 (12:31 +0100)]
Fix/cleanup another bunch of UI messages issues.

Also (mostly in comments): behaviour -> behavior (we use American English).

2 years agoFix T59722: stencil texture overlay not working on macOS.
Jonathan Merritt [Mon, 24 Dec 2018 11:05:58 +0000 (12:05 +0100)]
Fix T59722: stencil texture overlay not working on macOS.

2 years agoFix T59799: crash entering texture paint mode.
Brecht Van Lommel [Mon, 24 Dec 2018 08:01:21 +0000 (09:01 +0100)]
Fix T59799: crash entering texture paint mode.

2 years agoFix floating panel (HUD) applying DPI incorrectly
Julian Eisel [Sun, 23 Dec 2018 21:31:04 +0000 (22:31 +0100)]
Fix floating panel (HUD) applying DPI incorrectly

ARegion.sizex/y should never have DPI factor applied. For regular panel
regions, DPI will be applied in region_rect_recursive already, causing
it to be applied twice when region size is set dynamically (= based on
content dimensions).

2 years agoFix and workaround for i18n messages extraction code.
Bastien Montagne [Sun, 23 Dec 2018 21:03:12 +0000 (22:03 +0100)]
Fix and workaround for i18n messages extraction code.

2 years agoCleanup: First batch of UI messages fixes (typos, final points...).
Bastien Montagne [Sun, 23 Dec 2018 20:58:59 +0000 (21:58 +0100)]
Cleanup: First batch of UI messages fixes (typos, final points...).

Also contains some code typo fixes (mostly, adtaptative -> adaptive,
former is nearly innexistant in English, let's stick to simple valid
words ;) ).

2 years agoAvoid creating & registering zero sized AZones
Julian Eisel [Sun, 23 Dec 2018 17:04:48 +0000 (18:04 +0100)]
Avoid creating & registering zero sized AZones

Would allocate memory for AZones and register them even if their
coordinates/bounding-box was all 0, meaning they're not visible and not
interactive.

2 years agoGP: Small changes to help text
Antonioya [Sun, 23 Dec 2018 15:54:14 +0000 (16:54 +0100)]
GP: Small changes to help text

2 years agoGP: Add Shift+F to define strength for primitives
Antonioya [Sun, 23 Dec 2018 15:45:36 +0000 (16:45 +0100)]
GP: Add Shift+F to define strength for primitives

2 years agoFix T59783: Convert GP stroke to geometry menu disabled
Antonioya [Sun, 23 Dec 2018 15:12:28 +0000 (16:12 +0100)]
Fix T59783: Convert GP stroke to geometry menu disabled

The Convert operator works only in Object mode but it was defined in Edit menu.

Now the operator is defined in object menu and in specials menu.

2 years agoFix missing update when deleting animation channels.
Alexander Gavrilov [Sun, 23 Dec 2018 14:31:55 +0000 (17:31 +0300)]
Fix missing update when deleting animation channels.

2 years agoFix missing update when toggling NLA solo mode.
Alexander Gavrilov [Sun, 23 Dec 2018 14:02:38 +0000 (17:02 +0300)]
Fix missing update when toggling NLA solo mode.

2 years agoBLI_math_rotation: properly name the quaternion power function.
Alexander Gavrilov [Sun, 23 Dec 2018 12:25:40 +0000 (15:25 +0300)]
BLI_math_rotation: properly name the quaternion power function.

"angular mult factor" is a completely unintelligible description
for a function that raises a unit quaternion to the scalar power.

2 years agoFix T59782: Replace RMB by MMB in bottom help text
Antonioya [Sun, 23 Dec 2018 09:16:57 +0000 (10:16 +0100)]
Fix T59782: Replace RMB by MMB in bottom help text

2 years agoPoint locale sub-repo to blender2.7 branch.
Bastien Montagne [Sat, 22 Dec 2018 14:10:24 +0000 (15:10 +0100)]
Point locale sub-repo to blender2.7 branch.

Since we start translating for 2.8 very soon, better to archive 2.7x
translations in their own branch. ;)

2 years agoGP: Update Suzanne 2D object
Antonioya [Sat, 22 Dec 2018 09:56:04 +0000 (10:56 +0100)]
GP: Update Suzanne 2D object

Review of the "D Suzanne to reduce number of points and small changes in shapes and colors.

Designed by Matias Mendiola and Daniel M. Lara

2 years agoFix T59505: Knife tool cut preview line becomes black
Clément Foucault [Sat, 22 Dec 2018 00:52:37 +0000 (01:52 +0100)]
Fix T59505: Knife tool cut preview line becomes black

The root of the problem is that KnifeTool_OpData->colors was not init in
some cases. But the reason is unknown as it seems to be random and the
init function was always called.

So instead on init the color only once, we query the colors each time
we draw the knife points.
The overhead of this approach is negligeable.

2 years agoFix T59644: FPS meter not showing in VSE
Richard Antalik [Sat, 22 Dec 2018 00:27:08 +0000 (16:27 -0800)]
Fix T59644: FPS meter not showing in VSE

Issue caused probably by typo

2 years agoCleanup: const cast
Campbell Barton [Fri, 21 Dec 2018 21:14:41 +0000 (08:14 +1100)]
Cleanup: const cast

2 years agoFix T59734: cyclic dependency with drivers on PoseBone.bbone_*.
Alexander Gavrilov [Fri, 21 Dec 2018 19:35:19 +0000 (22:35 +0300)]
Fix T59734: cyclic dependency with drivers on PoseBone.bbone_*.

Allow more flexible use of drivers on B-Bone properties by
connecting the dependencies to the actual operation node that
uses the values, instead of the whole component.

2 years agoFix T58327: Quick Favorites "Remove from Favorites" missing for added
Philipp Oeser [Thu, 20 Dec 2018 12:00:32 +0000 (13:00 +0100)]
Fix T58327: Quick Favorites "Remove from Favorites" missing for added
Modifiers

Since user menu entries from SPACE_BUTS/SPACE_TOPBAR are also shown in
other Editors (SPACE_VIEW3D), also allow these entries to be removed
from Quick Favorites from these Editors.
Match and deduplicate logic from screen_user_menu_draw() and
ui_popup_context_menu_for_button().

Reviewers: campbellbarton, brecht

Maniphest Tasks: T58327

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

2 years agoFix T59686: snap to adaptive grid occurs with a "delay"
mano-wii [Fri, 21 Dec 2018 18:56:55 +0000 (16:56 -0200)]
Fix T59686: snap to adaptive grid occurs with a "delay"

In blender 2.8, when you zoom in, the adaptive subdivisions appear earlier than previous versions.
The grid still appears a little before the snap, but since it is very small I see no advantage in snap for this case.

2 years agoGP: Primitive: Changes from gp branch
Charlie Jolly [Fri, 21 Dec 2018 18:47:51 +0000 (18:47 +0000)]
GP: Primitive: Changes from gp branch

F-key to change stroke brush size
Fix random bias for jitter

2 years agoFix T59565: NaN/crash with zero radius tip of hair curves.
Brecht Van Lommel [Fri, 21 Dec 2018 17:51:13 +0000 (18:51 +0100)]
Fix T59565: NaN/crash with zero radius tip of hair curves.

2 years agoCleanup: fix more ATTR_FALLTHROUGH warnings.
Brecht Van Lommel [Fri, 21 Dec 2018 16:23:49 +0000 (17:23 +0100)]
Cleanup: fix more ATTR_FALLTHROUGH warnings.

Ref D3960.

2 years agoMerge branch 'blender2.7'
Brecht Van Lommel [Fri, 21 Dec 2018 16:05:56 +0000 (17:05 +0100)]
Merge branch 'blender2.7'

2 years agoCleanup: fix ATTR_FALLTHROUGH warnings.
Brecht Van Lommel [Fri, 21 Dec 2018 16:02:04 +0000 (17:02 +0100)]
Cleanup: fix ATTR_FALLTHROUGH warnings.

Ref D3960.

2 years agoFix T59708: decimate modifier does not show face count before decimation.
Brecht Van Lommel [Fri, 21 Dec 2018 15:53:33 +0000 (16:53 +0100)]
Fix T59708: decimate modifier does not show face count before decimation.

2 years agoFix T59691: Crash when deleting data-block video or audio in a video editor
Sergey Sharybin [Fri, 21 Dec 2018 15:50:59 +0000 (16:50 +0100)]
Fix T59691: Crash when deleting data-block video or audio in a video editor

2 years agoCleanup: Indentation
Sergey Sharybin [Fri, 21 Dec 2018 15:49:55 +0000 (16:49 +0100)]
Cleanup: Indentation

2 years agoFix T59668: UV unwrap pinning bugs.
Brecht Van Lommel [Fri, 21 Dec 2018 10:43:28 +0000 (11:43 +0100)]
Fix T59668: UV unwrap pinning bugs.

With multi object editing it creates the charts twice, which broke some
logic in the unwrapper.

2 years agoWorkbench: Fix crash when using more than one metaball
Clément Foucault [Fri, 21 Dec 2018 14:59:13 +0000 (15:59 +0100)]
Workbench: Fix crash when using more than one metaball

Was caused by recent change in logic

2 years agoFix T59608: Curves invisible in object mode
Clément Foucault [Fri, 21 Dec 2018 14:43:50 +0000 (15:43 +0100)]
Fix T59608: Curves invisible in object mode

2 years agoFix inconsistent/broken Cycles object visibility for instances.
Brecht Van Lommel [Tue, 18 Dec 2018 17:18:00 +0000 (18:18 +0100)]
Fix inconsistent/broken Cycles object visibility for instances.

Object visibility is now handled by the depsgraph iterator, but this API
was incomplete as it made no distinction for visibility of the object itself,
particles and generated instances.

The depsgraph iterator API now includes information about which part of the
object is visible, and this is used by Cycles to replace the old custom logic.
Cycles and EEVEE visibility should now be consistent, which unfortunately does
means some subtle compatibility breakage for both.

Fixes T58956, T58202, T59284.

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

2 years agoMerge branch 'blender2.7' into master.
Brecht Van Lommel [Fri, 21 Dec 2018 14:36:22 +0000 (15:36 +0100)]
Merge branch 'blender2.7' into master.

2 years agoFix T57907: Crash with hair when switching between object and edit mode
Sergey Sharybin [Fri, 21 Dec 2018 13:24:16 +0000 (14:24 +0100)]
Fix T57907: Crash with hair when switching between object and edit mode

Was only visible after going in and out (with some strokes inbetween)
hair edit mode. The edit structure was never freed during Blender
session for some reason. Now we free those when leaving particle
edit mode.

2 years agoFix T59687: Crash when rendering animation
Sergey Sharybin [Fri, 21 Dec 2018 13:23:06 +0000 (14:23 +0100)]
Fix T59687: Crash when rendering animation

The issue was caused by shape keys datablock from evaluated mesh
being added to the main database.

This commit makes it so shape keys are not copied for the mesh
used as cage.

2 years agoUpdate for moving blender2.8 to master.
Brecht Van Lommel [Thu, 20 Dec 2018 13:45:55 +0000 (14:45 +0100)]
Update for moving blender2.8 to master.

2 years agoUpdate .arcconfig for moving master to blender2.7 branch.
Brecht Van Lommel [Fri, 21 Dec 2018 11:12:32 +0000 (12:12 +0100)]
Update .arcconfig for moving master to blender2.7 branch.

2 years agoUpdate for moving master to blender2.7 branch.
Brecht Van Lommel [Thu, 20 Dec 2018 13:42:01 +0000 (14:42 +0100)]
Update for moving master to blender2.7 branch.

2 years agoCorrect orientation pie menu
Campbell Barton [Fri, 21 Dec 2018 10:29:04 +0000 (21:29 +1100)]
Correct orientation pie menu

Missing from recent orientation update.

2 years agoGP: Cleanup weird thickness scale
Antonioya [Fri, 21 Dec 2018 10:26:58 +0000 (11:26 +0100)]
GP: Cleanup weird thickness scale

This code used old factor, but now this only adds complexity and makes code hard to understand.