Commit graph

95674 commits

Author SHA1 Message Date
Jeroen Bakker
c2b144df39 Blender 2.83.5-release 2020-08-19 08:07:09 +02:00
Clément Foucault
04345dcf89 Fix T79703 EEVEE: Crash on Macos due to lightcache baking 2020-08-12 10:39:23 +02:00
Vincent Blankfield
200de72d26 Fix T77885: crash rendering grease pencil from compositor with multiple scenes 2020-08-12 09:39:15 +02:00
Philipp Oeser
5d42024be6 Fix T79676: Video Sequencer image sequence strip source path breaks when
saving with 'Remap Relative' option

Caused by rBf7386b97571e.

Logic in BKE_bpath_traverse_main calls the callback multiple times [as
often as there are images in the strip].

Prior to above commit, the callback was
'bpath_relative_convert_visit_cb' [this one did not have this problem -
since it returned early if the path was already made relative once]

After rBf7386b97571e though, the 'bpath_relative_rebase_visit_cb' is
used [this one should not be entered multiple times, it would modifiy the
directy again and again].

Luckily, we have a flag (BKE_BPATH_TRAVERSE_SKIP_MULTIFILE) that can be
used to prevent this (this will take care of only calling the callback
once in BKE_bpath_traverse_main for the VSE case)

Could be backported to 2.83 I think.

Maniphest Tasks: T79676

Differential Revision: https://developer.blender.org/D8536
2020-08-12 09:38:39 +02:00
Julian Eisel
fa2a13bcb9 Fix T79324: Crash when changing View Layer while VR session runs
Proper handling of View Layers for the VR session was never implemented.
Now the View Layer of the VR session follows the window the session was
started in.
Note that if this window is closed, we fallback to another window. This
is done to avoid the overhead it would take to maintain a separate
depsgraph for the VR view. Instead we always share some already visible
View Layer (and hence the depsgraph).
2020-08-12 09:38:13 +02:00
Bastien Montagne
112416e4fb Fix T77847: "Add plane > align" causes crash when certain rigs are in the scene (2.83, fixed in 2.90).
Root of the issue was not fixed in 2.90, only hidden by the fact that we
now re-read much less data during undo's that we used to, when some new
datablock gets added or removed.

This is not an ideal solution (as usual when dealing with data pointers
shared across data-blocks), but it's decent enough. thanks a lot to
@brecht for it!

To be backported to 2.83 too.
2020-08-12 09:30:18 +02:00
Campbell Barton
f2b71df549 Fix T79482: Triangulate quads with 'Beauty' can make zero area faces 2020-08-12 09:27:42 +02:00
Campbell Barton
6cbbe04ced Fix crash switching render slots when there is only one slot 2020-08-12 09:26:46 +02:00
Campbell Barton
5c917ef032 Fix T79575: Crash loading nested set-scenes 2020-08-12 09:25:48 +02:00
Clément Foucault
16b4b412e6 EEVEE: LightCache: Add warning if the cache cannot be saved 2020-08-12 09:25:10 +02:00
Clément Foucault
220470be15 Fix T78529: Blend file corrupted during save caused by high Cubemap Size
This just avoid the corruption. A better fix still need to be finished.

See P1564
2020-08-12 09:24:48 +02:00
Clément Foucault
02c3428e0c Fix T79246 GPUShader: compile error on AWS Elastic Graphics 2020-08-12 09:19:53 +02:00
Clément Foucault
c15352dd67 Fix T79509 Workbench: Object color mode broken if more than 4096 objects
This was due to the new DRWShadingGroup not being saved and reused for
the next objects.
2020-08-12 09:19:26 +02:00
Clément Foucault
0122615d36 Workbench: Fix broken id pass 2020-08-12 09:17:20 +02:00
Antonio Vazquez
39d7c111db Fix T78884: GPencil weight paint crash when painting over modifier generated points
The weight must be added only to the real points, not to the autogenerated points by modifiers. This affects, not only to subdivide, but to any modifier that generate points.
2020-08-12 09:13:44 +02:00
Campbell Barton
1d816e3a66 Fix T46568: UV select-linked failure to de-select
Shift-L was de-selecting all instead of the linked UV's.
2020-08-12 09:10:51 +02:00
Philipp Oeser
ee43580623 Fix usercount not decrementing in gpencil_stroke_separate_exec
This is part of T79273 where separating a stroke would result in
multiuser gpencil data for the original object.
Real underlying issue seems to be that gpencil multiuser objects (also
the ones created by Alt+D duplicating) have a problem evaluating
modifiers correctly [this will need further investigation].
Not sure if this is a limitation of D5470?

This patch only corrects the usercount on separating [which already fixes
the scenario reported because singleuser gpencil modifiers work
correctly].

Note: we could have also called `ED_object_add_duplicate` with the
`USER_DUP_GPENCIL` dupflag -- that would have taken care of the usercount
--, but then the whole following logic in `gpencil_stroke_separate_exec`
would need to change from **adding** layers/frames/strokes to
**removing** these.

Part of T79273

Maniphest Tasks: T79273

Differential Revision: https://developer.blender.org/D8419
2020-08-12 09:04:37 +02:00
Campbell Barton
2c68c92524 Fix T79207: Crash converting curve to mesh 2020-08-12 09:03:57 +02:00
Bastien Montagne
4a08939e12 Fix T78730: CLOG writes/reads outside allocated memory.
Fix several issues in CLOG code:
* In `clg_str_reserve`, allocated memory may be bigger than requested
  one, do not assign the latter back to `cstr->len_alloc`.
* `clg_str_vappendf` was mis-interpreting returned value from
  `vsnprintf`, and completely mixing total allocated memory and extra
  needed amount of memory to allocate...

Simplified code of `clg_str_vappendf` to only have allocating code
handled in one place, makes things easier to follow too.

Think this should also be beckported to 2.83.
2020-08-12 09:01:49 +02:00
Brecht Van Lommel
a71490c4b2 Fix T78537: too much memory usage rendering animation with persistent images
For still images, always return 0 for the current frame number. This ensures
Cycles can detects that the image did not change.

Based on patch by Vincent Blankfield.

Differential Revision: https://developer.blender.org/D8242
2020-08-12 08:58:51 +02:00
Pablo Dobarro
f47f9a04b1 Fix T79007: Smooth brushes crasing in dyntopo
The custom smooth functions for bmesh and meshes where removed and
replaced by a generic smooth function using the sculpt API, which needs
to initialize the bmesh indices in order to be used

Reviewed By: sergey

Maniphest Tasks: T79007

Differential Revision: https://developer.blender.org/D8333
2020-08-12 08:55:19 +02:00
Germano Cavalcante
2d3deb29ea Fix T79158: Eevee cubemaps shows black
Same as T75943 that was fixed by rBff97545c50f4
2020-08-12 08:48:10 +02:00
Nathan Craddock
e48054ece4 Fix T79187: Outliner "Make Single User" crash
When "ID Data" -> "Make Single User" is chosen with selected elements
that are not curves, there is a crash. This fix ensures that the id in the
callback function is an Action.
2020-08-12 08:46:39 +02:00
Sergey Sharybin
b7a72778ec Fix interface artifacts on Intel GPUs
This is a continuation of fix for T78307. Turns out instancing do not
work at all, so enforce single widget drawing on macOS and Intel GPU.

It was also reported that certain AMD and Mesa driver suffer from
similar issue, so disabled instancing for this configuration as well.

Differential Revision: https://developer.blender.org/D8374
2020-08-12 08:45:57 +02:00
Campbell Barton
287d5e8305 Fix T79260: Crash displaying the same mesh in two windows 2020-08-12 08:41:40 +02:00
Campbell Barton
ce44b1f15e Fix T79254: FCurve editor crash when zooming out to limit 2020-08-12 08:26:07 +02:00
Jeroen Bakker
6d30a2b085 Versionbump: v2.83.5-beta 2020-08-05 09:27:09 +02:00
Jeroen Bakker
c113af8288 Versionbump: v2.83.4-release 2020-08-05 08:00:58 +02:00
Brecht Van Lommel
5ab8641492 Fix buildbot macOS packaging error after recent changes 2020-08-04 17:30:21 +02:00
Brecht Van Lommel
093e7f5cf9 Fix buildbot packaging error after recent changes 2020-08-04 16:59:00 +02:00
Brecht Van Lommel
aacedd7861 Buildbot: make code signing of packages optional with --codesign parameter
This is in preparation of doing builds per commit that will not be code signed.

Ref D8438

Differential Revision: https://developer.blender.org/D8451
2020-08-04 16:21:47 +02:00
Richard Antalik
d5809b39d5 Fix T78999: Crash when adjusting sequencer property
Sequencer was not initialized yet, and RNA update function tried to clean up cache.

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D8323
2020-07-29 10:18:54 +02:00
Antonio Vazquez
573972ff41 GPencil: Fix unreported missing strokes in interpolation
Sometimes the interpolated stroke was tagged and removed.
2020-07-29 10:17:33 +02:00
Sergey Sharybin
53b98de260 Fix T78867: Crash related to viewing video files
Any time FFmpeg was used to get a picture Blender would crash
when FFmpeg 4.3 is used. This affects thumbnails, VSE, Clip Editor.

Caused by a bug in FFmpeg which lead to crashes when unaligned
buffer was passed to sws_scale(). It got fixed later on in FFmpeg,
but for portability and compatibility reasons still nice to avoid
crash, especially since it's not so difficult to do.

FFmpeg ticked number is #8747
The FFmpeg Git hash with the fix: ba3e771a42c2

Differential Revision: https://developer.blender.org/D8355
2020-07-29 10:12:19 +02:00
Philipp Oeser
650cceb453 Fix T79264: Mantaflow Field weights cannot be animated
rna_EffectorWeight_path() needs to point to "domain_settings" (instead
of "settings"), was a missing change when switching the FluidModifier to
mantaflow.

Maniphest Tasks: T79264

Differential Revision: https://developer.blender.org/D8398
2020-07-29 10:10:27 +02:00
Philipp Oeser
f1f8ac3921 Fix T79031: Batch Generate-Previews doesn't work anymore
Caused by rB19785b96c43f.

Maniphest Tasks: T79031

Differential Revision: https://developer.blender.org/D8400
2020-07-29 10:08:54 +02:00
Campbell Barton
38aa78c6f4 Fix T79272: Dimensions fail on negative scaled axis 2020-07-29 10:08:00 +02:00
Campbell Barton
46c3ef5715 Fix mistake in recent fix for text editor overflow 2020-07-29 10:06:51 +02:00
Dalai Felinto
9a4d51c5d9 Fix T77609: Scale to Fit Text Box fails when text is too narrow
Caused by error in fix for T75965 (83d9ba341e).
2020-07-29 10:05:58 +02:00
Richard Antalik
322c67c974 Fix T77669: Copy-pasting strip twice crashes Blender
In rBeaee2b411935 I removed BKE_sequencer_base_clipboard_pointers_store from
paste function, because I wanted pasted strip to always reference copied
strip, not recently pasted one. This worked well with ordinary strips, but not
if they reference ID.

Add back BKE_sequencer_base_clipboard_pointers_store call.

I thought that always referencing original strip would be more correct approach,
but it doesn't matter now. Referencing recently pasted seems to be cleanest way
to do this.

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D8129
2020-07-29 10:04:57 +02:00
Richard Antalik
3058bf0757 Fix T78837: Prefetching can corrupt .blend files
This happened because of typo in seq_dupli() when duplicating effect data.
Instead of duplicating data to new sequence, it was duplicated into original.

Reviewed By: sergey

Differential Revision: https://developer.blender.org/D8295
2020-07-29 10:03:36 +02:00
Brecht Van Lommel
c8d0a615ef Fix T78358: random crash editing shader nodes with textures 2020-07-29 10:02:01 +02:00
Sybren A. Stüvel
3f23de9a3f Fix T78920: missing depsgraph relation when using sound strips in VSE
Having a sound strip in the VSE caused a missing relation error to be
logged on the console. This was caused by the AUDIO depsgraph component
not having an entry node. This commits adds that node, and sets up
relations correctly.

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

Reviewed By: Sergey
2020-07-29 10:00:05 +02:00
Yevgeny Makarov
bf92d262a3 Fix View3D "Mirror" menu, both "Global" and "Local" items are GLOBAL 2020-07-29 09:56:12 +02:00
Campbell Barton
de3e797d47 Fix T78636: Crash displaying many aligned buttons
Displaying user preferences search crashed on macOS when the search
contained a common character such as 'E'.
This caused alignment to 'alloca' too much memory.

Replace with a heap allocation fallback.
2020-07-29 09:53:28 +02:00
Campbell Barton
5c806a2f04 Fix T68845: Follow Active Quads, divide by zero error 2020-07-29 09:50:22 +02:00
Richard Antalik
0471349c90 Fix T78573: Crash when removing strips with prefetching
Stop prefetching before changing content of seqbase.

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D8256
2020-07-29 09:46:22 +02:00
Bastien Montagne
833f67bf51 Fix T78037: fresh install of blender 2.83.0 not able to save user startup file.
Simply remove that check ob userdef's themes, we are never read any
userdef from startup file anymore, so this check makes no more sense.

To be backported to 2.83.
2020-07-29 09:45:24 +02:00
Bastien Montagne
a3db0850b4 Fix T78306: Weight Transfer Operator target mesh doesn't update when transforming bones.
Data transfer operator was missing tagging DEG for relations updates.

Should be portable to 2.83 as well.
2020-07-29 09:28:56 +02:00
Bastien Montagne
2472615d0a Fix T78308: Weight Transfer Operator "Deform Pose Bones" destination setting doesn't work.
Some modes were working by mere chance in that ugly 'reversed' case, but
the to/from selection modes were not properly swapped...

Should also be safe for 2.83.
2020-07-29 09:25:57 +02:00