blender.git
2 months agoFix T59713: Armature layer dots not updated on changes
mano-wii [Wed, 17 Jul 2019 17:17:16 +0000 (14:17 -0300)]
Fix T59713: Armature layer dots not updated on changes

`layer_used` runtime data, which controls the drawing of dots in the UI was not getting refreshed properly.
This used to happen in the drawing code, but was no longer working for reasons explained in:
{rB2b09062defa093a243b5fe64b099accb07b440a3}

The solution was to update each layer manually in the operators:
* ARMATURE_OT_bone_primitive_add
* ARMATURE_OT_delete
* ARMATURE_OT_dissolve
* ARMATURE_OT_fill
* ARMATURE_OT_merge
* ARMATURE_OT_separate
* ARMATURE_OT_bone_layers
* POSE_OT_bone_layers

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

2 months agoFix T66919: Force field does not affect particles
Sergey Sharybin [Wed, 17 Jul 2019 09:40:02 +0000 (11:40 +0200)]
Fix T66919: Force field does not affect particles

Reviewers: brecht

Reviewed By: brecht

Maniphest Tasks: T66919

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

2 months agoFix T67075: make object.visible_get() and similar APIs more forgiving
Brecht Van Lommel [Wed, 17 Jul 2019 12:41:50 +0000 (14:41 +0200)]
Fix T67075: make object.visible_get() and similar APIs more forgiving

When objects are not in the view layer, just return false rather than throwing
an error. As far as the script is concerned the object is not visible or
selected when it's not in the current view layer.

2 months agoFix T66091: paint curve point slide conflicts with 2D cursor
Brecht Van Lommel [Wed, 17 Jul 2019 12:30:29 +0000 (14:30 +0200)]
Fix T66091: paint curve point slide conflicts with 2D cursor

2 months agoFix T67099: entering color picker hex value #FF results in 1.000001
Brecht Van Lommel [Wed, 17 Jul 2019 12:11:50 +0000 (14:11 +0200)]
Fix T67099: entering color picker hex value #FF results in 1.000001

2 months agoFix T67127: Crash Missing DEG tag update mask layer
Jeroen Bakker [Wed, 17 Jul 2019 14:06:44 +0000 (16:06 +0200)]
Fix T67127: Crash Missing DEG tag update mask layer

When ng mask layer operations (add, remove, move) the
original mask was not tagged to be updated resulting
in missing data on the copy. The Masking function
assumes that the copy and the original is always
structured the same.

Reviewed By: brecht, sergey

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

2 months agoClip editor: Fix missing frame update on undo
Sergey Sharybin [Wed, 17 Jul 2019 12:42:02 +0000 (14:42 +0200)]
Clip editor: Fix missing frame update on undo

It is possible that undo will change current scene frame and that was
not synchronizing current frame from scene to movie clip user.

Reported as a part of T66519.

Reviewers: brecht

Reviewed By: brecht

Maniphest Tasks: T66519

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

2 months agoRevert "Fix T59713: Moving bones between layers in edit mode doesn't show the dot...
mano-wii [Wed, 17 Jul 2019 13:32:50 +0000 (10:32 -0300)]
Revert "Fix T59713: Moving bones between layers in edit mode doesn't show the dot icon in the layers UI"

This commit did not follow the protocol that requires a review first.

This reverts commit 580acab1737c726f43e39792dbb75f3ca2089fcb.

2 months agoFix T59713: Moving bones between layers in edit mode doesn't show the dot icon in...
mano-wii [Wed, 17 Jul 2019 13:16:17 +0000 (10:16 -0300)]
Fix T59713: Moving bones between layers in edit mode doesn't show the dot icon in the layers UI

2 months agoFix T67001: Studio and Flat lightning in single color do not respect clipping region
mano-wii [Wed, 17 Jul 2019 11:51:01 +0000 (08:51 -0300)]
Fix T67001: Studio and Flat lightning in single color do not respect clipping region

`DRW_STATE_CLIP_PLANES` has to be enabled independent of the workbench material.

Reviewers: fclem, jbakker

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

2 months agoFix T67115: Changing the Shape of a Force Field object does not refresh the animation
mano-wii [Wed, 17 Jul 2019 11:30:24 +0000 (08:30 -0300)]
Fix T67115: Changing the Shape of a Force Field object does not refresh the animation

2 months agoUndo System: replace with simpler binary diffing buffer storage
Campbell Barton [Thu, 11 Jul 2019 05:25:52 +0000 (15:25 +1000)]
Undo System: replace with simpler binary diffing buffer storage

Applying/undoing incremental changes didn't fit well when
mixed with periodic snapshots from mem-file undo.

This moves to a much simpler undo system.

- Uses array storage with de-duplication from `BLI_array_store`.
- Loads the buffer into existing text data,
  for better performance on large files.
- Has the advantage that Python operators can be supported
  since we don't depend on hard coded undo operations.

Solves T67045, T66695, T65909.

2 months agoFix T66949: Can't select bones from multiple objects in wpaint mode
Campbell Barton [Wed, 17 Jul 2019 08:28:32 +0000 (18:28 +1000)]
Fix T66949: Can't select bones from multiple objects in wpaint mode

2 months agoFix T67047: Can't jump to frame when using jack in A/V sync mode
Sergey Sharybin [Tue, 16 Jul 2019 12:47:43 +0000 (14:47 +0200)]
Fix T67047: Can't jump to frame when using jack in A/V sync mode

Similar fix to 495aff7.

Reviewers: brecht

Reviewed By: brecht

Maniphest Tasks: T67047

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

2 months agoFix object selection when in pose mode
Campbell Barton [Wed, 17 Jul 2019 06:57:45 +0000 (16:57 +1000)]
Fix object selection when in pose mode

The new selected object was activated but not selected.

2 months agoEdge Slide: Fix multi-object for loop early exit
Dalai Felinto [Wed, 17 Jul 2019 01:52:37 +0000 (22:52 -0300)]
Edge Slide: Fix multi-object for loop early exit

Part of D5274, reviewed by Campbell Barton.

2 months agoFix T67078: Crash with vertex slide and multi-objects
Dalai Felinto [Wed, 17 Jul 2019 01:23:43 +0000 (22:23 -0300)]
Fix T67078: Crash with vertex slide and multi-objects

If one of the objects had invalid selected edges, it would lead to a
crash since none of the for loops were checking for whether the edge
slide data is valid.

We could refactor the macros to create a new
FOREACH_TRANS_DATA_CONTAINER_WITH_DATA

However we are too close to 2.80 final release so we manually skip them
for now.

Note: TRANS_DATA_CONTAINER_FIRST_OK cannot be used either for the same
reason.

Reviewers: campbellbarton

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

2 months agoUI: remove button to enable auto-save after load factory preferences
Campbell Barton [Tue, 16 Jul 2019 23:29:28 +0000 (09:29 +1000)]
UI: remove button to enable auto-save after load factory preferences

Based on feedback from T66675, the current interface is confusing,
leading to users accidentally overwriting their preferences.

Now, once factory settings are loaded preferences are not saved
and the save button is shown (as when auto-save is disabled).

Tool tips note that factory settings require manual saving
afterwards.

Also rename preference menu items for better consistency
(settings/state -> preferences).

2 months agoFix paint curve not drawing selection colors properly
Brecht Van Lommel [Tue, 16 Jul 2019 18:31:23 +0000 (20:31 +0200)]
Fix paint curve not drawing selection colors properly

This code is not guaranteed to run with any specific space theme, so pass
it explicitly.

2 months agoFix T66964: sculpting box hide tool can't select multiple areas
Brecht Van Lommel [Tue, 16 Jul 2019 16:30:33 +0000 (18:30 +0200)]
Fix T66964: sculpting box hide tool can't select multiple areas

Only deselect all on mouse release when no box dragging was done.

2 months agoFix T66862: crash with bevel modifier harden normals applied to curve object
Brecht Van Lommel [Tue, 16 Jul 2019 16:00:57 +0000 (18:00 +0200)]
Fix T66862: crash with bevel modifier harden normals applied to curve object

2 months agoFix T66011: Transformed objects break sculpt tools
Antonioya [Tue, 16 Jul 2019 15:55:42 +0000 (17:55 +0200)]
Fix T66011: Transformed objects break sculpt tools

The Pinch, Push, Twist and Clone were not using the object transformation to compute point changes, so the point was way off of the right place.

2 months agoFix T66940, T67005, T60651: append workspace from old startup file fails
Brecht Van Lommel [Tue, 16 Jul 2019 14:06:50 +0000 (16:06 +0200)]
Fix T66940, T67005, T60651: append workspace from old startup file fails

Don't try to use old screens as workspaces, just leave them out of the menu.

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

2 months agoFix T66862: crash with mirror modifier applied to curve object
Brecht Van Lommel [Tue, 16 Jul 2019 15:36:46 +0000 (17:36 +0200)]
Fix T66862: crash with mirror modifier applied to curve object

2 months agoFix T66999: Blender creates new cache for particles with step 10 instead 1
Sebastian Parborg [Tue, 16 Jul 2019 15:29:48 +0000 (17:29 +0200)]
Fix T66999: Blender creates new cache for particles with step 10 instead 1

Update the default init step values to be the same for all caches.
This is actually a small hack as these values are not used on the
creation of the first cache. But the default init value is 1, so this
will not be noticeable anymore.

Reviewed By: Brecht

Differential Revision: http://developer.blender.org/D5271

2 months agoFix T66944: Rigid Body Constraint in duplicated collection is not added to RigidBodyC...
Bastien Montagne [Tue, 16 Jul 2019 14:04:22 +0000 (16:04 +0200)]
Fix T66944: Rigid Body Constraint in duplicated collection is not added to RigidBodyConstraints collection.

We only had a very limited, specific handling of that in collection
duplication code, but this has to be handled at a much more general
level in Object copy code itself, since it makes no sense to duplicate
rigidbody object data without adding new copy to relevant rigidbody
collections...

WARNING: This is a fairly risky rework of rigidbody handling logic
when copying an Object data-block. It is *NOT* considered safe enough
for 2.80 release.

I tried to take into account copy flags to not mess with other IDs
(collections) when we are copying outside of Main, and also not do deg
tags when this is forbidden, but risk of something going wrong here is
too high...

2 months agoFixed crash when adding/removing custom normals from pinned mesh
Sybren A. Stüvel [Tue, 16 Jul 2019 13:06:25 +0000 (15:06 +0200)]
Fixed crash when adding/removing custom normals from pinned mesh

When a mesh is pinned in the properties panel, Blender crashes when you
click the "Add Custom Split Normals Data".

The code calls `ob = ED_object_context(C)` which returns NULL when the
mesh is pinned in the properties panel, causing a segfault when trying
to get the mesh via `ob->data`.

A new function `ED_mesh_context(C)` avoids this by first checking
whether a mesh was pinned in the context. If not, it checks the pinned
object's data. If that's not there, or it's not a mesh, it returns the
active object's mesh. Finally it returns NULL if there is no active
object, or if the active object is not a mesh object.

Reviewed By: brecht, mont29

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

2 months agofix T66899: Collada: Shininess/Reflectivity not handled correct
Gaia Clary [Mon, 15 Jul 2019 15:12:52 +0000 (17:12 +0200)]
fix T66899: Collada: Shininess/Reflectivity not handled correct

Fixed: The Collada Exporter only supports export of
Lambert Shaders. But Shininess is not supported with
Lambert Shaders. The exporter must not add Shininess
to the Shader data!

Fixed: The Collada Importer adds an illegal value of -1
for reflectivity when this parameters is not defined in
the imported collada data. Now reflectivity is only
set when the import data contains a valid value.

Discarded: The Collada Importer handles shininess in a
dubious way. I have discarded import for now.
This needs to be reworked carefully in 2.81.

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

2 months agoFix T66742: Frame selected last weightpaint/vertexpaint stroke not
Philipp Oeser [Mon, 15 Jul 2019 21:35:11 +0000 (23:35 +0200)]
Fix T66742: Frame selected last weightpaint/vertexpaint stroke not
working

Mouse values [for 'paint_last_stroke_update()'] gone missing in
rB4f616c93f7cb.

Thx @campbellbarton for hinting at convention to get mouse from sculpt
caches.

Reviewers: campbellbarton

Maniphest Tasks: T66742

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

2 months agoFix T66835: Dynamic Paint weight group isn't updated unless weight has been assigned
Sebastian Parborg [Tue, 16 Jul 2019 09:42:03 +0000 (11:42 +0200)]
Fix T66835: Dynamic Paint weight group isn't updated unless weight has been assigned

The dvert layer was not assigned to the mesh data if it had to be
created by the dpaint modifier.

Reviewed By: Brecht

Differential Revision: http://developer.blender.org/D5263

2 months agoFix error in app-template image size check
Campbell Barton [Tue, 16 Jul 2019 09:40:23 +0000 (19:40 +1000)]
Fix error in app-template image size check

2 months agoFix assert unlinking text
Campbell Barton [Tue, 16 Jul 2019 07:27:53 +0000 (17:27 +1000)]
Fix assert unlinking text

Interferes with debugging.

2 months agoFix T67040: Undo crashes after renaming
Campbell Barton [Tue, 16 Jul 2019 07:14:19 +0000 (17:14 +1000)]
Fix T67040: Undo crashes after renaming

Caused by error keeping the first memfile undo step.

2 months agoCleanup: typos in comments
Campbell Barton [Tue, 16 Jul 2019 06:57:54 +0000 (16:57 +1000)]
Cleanup: typos in comments

2 months agoFix typo in background_job template
Campbell Barton [Tue, 16 Jul 2019 06:56:25 +0000 (16:56 +1000)]
Fix typo in background_job template

D5264 by @dimtion

2 months agoFix T67002: Crash redoing an action after ID rename
Campbell Barton [Tue, 16 Jul 2019 05:53:15 +0000 (15:53 +1000)]
Fix T67002: Crash redoing an action after ID rename

2 months agoDocs: remove debug value, matching source
Campbell Barton [Tue, 16 Jul 2019 03:26:37 +0000 (13:26 +1000)]
Docs: remove debug value, matching source

2 months agoFix T67009, T67013: crash with Intel HD Graphics and some older drivers
Brecht Van Lommel [Mon, 15 Jul 2019 20:40:50 +0000 (22:40 +0200)]
Fix T67009, T67013: crash with Intel HD Graphics and some older drivers

Add more versions to the workaround list.

2 months agoFix T64827: "Batch-Generate Previews" crashes.
Bastien Montagne [Mon, 15 Jul 2019 20:29:59 +0000 (22:29 +0200)]
Fix T64827: "Batch-Generate Previews" crashes.

Second completely unrelated issue reported in same task (tssst...),
caused by missing doversion code of some changes in recent-ish 2.80
development (tsst... again).

Proper fix for the issue (reverted rB8a5a8282ce48 was merely sweeping
the dirt under the carpet...).

2 months agoRevert "Fix T64827 (part two): "Batch-Generate Previews" fails with certain files"
Bastien Montagne [Mon, 15 Jul 2019 16:25:25 +0000 (18:25 +0200)]
Revert "Fix T64827 (part two): "Batch-Generate Previews" fails with certain files"

This reverts commit 8a5a8282ce48704e60e70cb02d747aede71e70b8.

2 months agoFix T66986: fix dylib plugins on macOS not working in code signed release
Brecht Van Lommel [Mon, 15 Jul 2019 20:13:11 +0000 (22:13 +0200)]
Fix T66986: fix dylib plugins on macOS not working in code signed release

Add more entitlements for code signing.

2 months agoFix T67016: crash drawing image editor without image
Brecht Van Lommel [Mon, 15 Jul 2019 20:20:51 +0000 (22:20 +0200)]
Fix T67016: crash drawing image editor without image

2 months agoFix T66983 Wireframe Display in edit mode edges missing when overlays are disabled
Clément Foucault [Mon, 15 Jul 2019 17:55:09 +0000 (19:55 +0200)]
Fix T66983 Wireframe Display in edit mode edges missing when overlays are disabled

2 months agoFix T66707 Modifying bone's 'Custom Object' reference shape causes blender to crash
Clément Foucault [Mon, 15 Jul 2019 17:24:32 +0000 (19:24 +0200)]
Fix T66707 Modifying bone's 'Custom Object' reference shape causes blender to crash

This was caused by an instancing batch not being initialized correctly.

2 months agoFix T66955: Cannot delete data from file in outliner.
Bastien Montagne [Mon, 15 Jul 2019 16:06:32 +0000 (18:06 +0200)]
Fix T66955: Cannot delete data from file in outliner.

That switch on ID types had not been updated since quiet some time it’d
seem... Using the ID_Type enum type now, so this should not happen again
(compiler will yell at you if you forget to add here any new ID type ;) ).

Also had to change a bit the code layout then, to deal with fake NLA ID
type...

Note that for now, Screen IDs remain excluded from the ID menu usage,
due to T67004.

2 months agoFix T66712: A model shows artifacts in the sculpt mode
Sergey Sharybin [Mon, 15 Jul 2019 09:28:37 +0000 (11:28 +0200)]
Fix T66712: A model shows artifacts in the sculpt mode

Was a mistake in normals calculation: need to consider all grids for correct
average in the center of the face.

Reviewers: brecht

Reviewed By: brecht

Maniphest Tasks: T66712

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

2 months agoFix compositor ignoring mask parenting
Sergey Sharybin [Mon, 15 Jul 2019 11:59:07 +0000 (13:59 +0200)]
Fix compositor ignoring mask parenting

There are two aspects to the problem:

- Dependency graph update for compositor preview was missing
  updates flush.

  Apparently, update for new frame style of update will take
  care of flushing, but not the update tagged style of update.

  This goes to a legacy dependency graph and is to be changed
  at some point, but not so close to the release.

- Movie clips were missing from the compositor dependency graph.

This fixes part of T66519.

Reviewers: brecht

Reviewed By: brecht

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

2 months agoFix T66870: AutoIK-Len stops working after releasing the mouse
Sebastian Parborg [Mon, 15 Jul 2019 15:28:06 +0000 (17:28 +0200)]
Fix T66870: AutoIK-Len stops working after releasing the mouse

The code didn't check if we should initialize the transform auto IK parameters.
Cleaned up the code a bit too.

Reviewed By: Brecht

Differential Revision: http://developer.blender.org/D5260

2 months agoFix T63349: image texture garbage collection causing freezes
Brecht Van Lommel [Mon, 15 Jul 2019 13:40:09 +0000 (15:40 +0200)]
Fix T63349: image texture garbage collection causing freezes

Images were being freed often because the tagging for when the image was last
used was missing.

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

2 months agoFix T66812: Particles + Build Modifier = Crash
Sergey Sharybin [Mon, 15 Jul 2019 12:09:57 +0000 (14:09 +0200)]
Fix T66812: Particles + Build Modifier = Crash

Particles can not be used with a destructive modifiers, so we can not
maker such configuration fully reliable.

Not sure this specific setup ever worked in 2.7x, maybe DM index was
somehow reset somewhere in particle system in older Blender version,
or maybe all of Blender version were crashing.

Anyway, seems to be very easy to avoid obvious index past the array
boundary in the mapping,

Reviewers: brecht, zeddb

Reviewed By: brecht

Maniphest Tasks: T66812

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

2 months agoFix T66941: GPencil wrong interpolation calculation for last keyframe
Antonioya [Mon, 15 Jul 2019 14:56:32 +0000 (16:56 +0200)]
Fix T66941: GPencil wrong interpolation calculation for last keyframe

The range used for frames was wrong and the last keyframe was way off of the correct place.

Thanks to @MagnumOctopus for catching the bug.

2 months agoFix T64827 (part two): "Batch-Generate Previews" fails with certain files
Philipp Oeser [Mon, 15 Jul 2019 09:53:57 +0000 (11:53 +0200)]
Fix T64827 (part two): "Batch-Generate Previews" fails with certain files

Some values (not properly handled by do_versions?) could cause
'rna_backup_restore()' to throw an error resulting in the whole preview
generation not being saved to the .blend file.

I've checked folowwing demo files:
- race_spaceship.blend
- wasp_bot.blend

Here the offending seetings were:
- `UnitSettings` (`length_unit`, ...)
- `FFmpegSettings` (`ffmpeg_preset`, ...)

For now, these are now excluded in `exclude_props`

Reviewers: brecht

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

2 months agoFix T66668: frame selected bone not working in weight paint mode
Philipp Oeser [Mon, 15 Jul 2019 14:20:11 +0000 (16:20 +0200)]
Fix T66668: frame selected bone not working in weight paint mode

'viewselected_exec()' [which uses evaluated view layer] would query
BASE_SELECTED flag, but it was not set on base_eval, but on its
base_orig.

reason for this is 'ed_object_select_pick()' would modify base flags
[through 'ED_object_base_select()'], but not tag scene
ID_RECALC_BASE_FLAGS.

thx @sergey for hinting.

Reviewers: sergey, brecht

Maniphest Tasks: T66668

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

2 months agoFix T66686: Crash on Particle Edit, then Render
Sergey Sharybin [Mon, 15 Jul 2019 13:27:22 +0000 (15:27 +0200)]
Fix T66686: Crash on Particle Edit, then Render

Reviewers: brecht, zeddb

Reviewed By: brecht

Maniphest Tasks: T66686

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

2 months agoFix T66991 Crash when deleting edit bones when pchan is referenced by bendybone
Clément Foucault [Mon, 15 Jul 2019 13:13:33 +0000 (15:13 +0200)]
Fix T66991 Crash when deleting edit bones when pchan is referenced by bendybone

This was caused by loose pointers.

This diff takes care of clearing the fields of other bones before deleting the pchan.

Reviewers: brecht, sergey

Reviewed By: brecht, sergey

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

2 months agoFix T66986: errors with add-ons using ctypes in macOS release
Brecht Van Lommel [Mon, 15 Jul 2019 12:18:42 +0000 (14:18 +0200)]
Fix T66986: errors with add-ons using ctypes in macOS release

Add extra entitlements to allow the kind of unsigned executable memory access
that cytpes does.

2 months agoFix T66774 Lookdev: Assert switching from rendered to lookdev
Clément Foucault [Mon, 15 Jul 2019 11:14:50 +0000 (13:14 +0200)]
Fix T66774 Lookdev: Assert switching from rendered to lookdev

The View was being reused accross different redraw (not allowed).

2 months agoFix T66860 Crash on opening .blend file from 2.79
Clément Foucault [Mon, 15 Jul 2019 11:07:42 +0000 (13:07 +0200)]
Fix T66860 Crash on opening .blend file from 2.79

This was caused by the preview render of the material property panel being
1px wide. The computed half buffers width were rounded to 0.

2 months agoFix showing "__pycache__" in templates menu
Campbell Barton [Mon, 15 Jul 2019 09:39:24 +0000 (19:39 +1000)]
Fix showing "__pycache__" in templates menu

2 months agoFix reading directory as file content on Linux
Campbell Barton [Mon, 15 Jul 2019 09:24:59 +0000 (19:24 +1000)]
Fix reading directory as file content on Linux

Reading a directory as a file on Linux was attempting to allocate LONG_MAX,
this happens in template file lists (fix for that coming next).

2 months agoFix crash running GPU shader.format_calc() with attributes like gl_VertexID
Jeroen Bakker [Mon, 15 Jul 2019 09:24:18 +0000 (11:24 +0200)]
Fix crash running GPU shader.format_calc() with attributes like gl_VertexID

When using opengl attributes such as gl_VertexID in a shader its
location is set to -1. This location was used without checking in an
attribute array. This fails big time when called from python. For
example `print(shader.format_calc())` made python crash immediately.

this fixes https://github.com/JacquesLucke/animation_nodes/issues/1141

Reviewed By: fclem, brecht

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

2 months agoFix crash HD Graphics 4000 Series On Windows
Jeroen Bakker [Mon, 15 Jul 2019 06:21:26 +0000 (08:21 +0200)]
Fix crash HD Graphics 4000 Series On Windows

There was an workaround implemented for specific the Intel HD Graphics
4000 GPU on Windows platform. Other GPU from the same series also need
this workaround.

We will enable the workaround for specific drivers.

Reviewed By: brecht

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

2 months agoFix T66587: Can't bake second dynamic paint canvas to image sequence
Sebastian Parborg [Mon, 15 Jul 2019 08:46:36 +0000 (10:46 +0200)]
Fix T66587: Can't bake second dynamic paint canvas to image sequence

The issue was the the copy data function didn't copy the active canvas number.
So it would always be 0 and thus use the first canvas when trying to bake.

Also fix not copying unused type data (unused canvas/brush settings).

Reviewed By: Brecht

Differential Revision: http://developer.blender.org/D5220

2 months agoFix T66957: GPencil material isolate crash when slot is empty
Antonioya [Mon, 15 Jul 2019 07:52:14 +0000 (09:52 +0200)]
Fix T66957: GPencil material isolate crash when slot is empty

When the slot of the material is empty, the loop to lock the materials tried to use the material but this was NULL.

Check if material is NULL before using it in other operators too.

2 months agoFix T66953: Duplicate items in pose context menu
Campbell Barton [Mon, 15 Jul 2019 04:21:58 +0000 (14:21 +1000)]
Fix T66953: Duplicate items in pose context menu

2 months agocleanup: typo in cycles 'min_transparent_bounces' tooltip
Philipp Oeser [Fri, 12 Jul 2019 19:27:37 +0000 (21:27 +0200)]
cleanup: typo in cycles 'min_transparent_bounces' tooltip

Reviewers: brecht

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

2 months agoCleanup: Do not use camel case for "Freestyle"
Aaron Carlisle [Sun, 14 Jul 2019 19:19:50 +0000 (15:19 -0400)]
Cleanup: Do not use camel case for "Freestyle"

2 months agomacOS: clarify bundle script instructions
Brecht Van Lommel [Fri, 12 Jul 2019 16:00:54 +0000 (18:00 +0200)]
macOS: clarify bundle script instructions

2 months agomacOS: allow bundle script to re-codesign a Blender.app that was already signed
Brecht Van Lommel [Fri, 12 Jul 2019 16:58:44 +0000 (18:58 +0200)]
macOS: allow bundle script to re-codesign a Blender.app that was already signed

2 months agomacOS: remove hardcoded paths for code signing python/dylib/so
Arto Kitula [Fri, 12 Jul 2019 12:44:16 +0000 (14:44 +0200)]
macOS: remove hardcoded paths for code signing python/dylib/so

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

2 months agoFix T66601: Redo Panels are empty the first time a workspace is active
mano-wii [Fri, 12 Jul 2019 14:37:18 +0000 (11:37 -0300)]
Fix T66601: Redo Panels are empty the first time a workspace is active

We need to indicate a preferred size to avoid `RGN_FLAG_TOO_SMALL` the first time the region is created.

Differential revision: https://developer.blender.org/D5238

2 months agoFix T66773: Active edit-bone isn't updating
Campbell Barton [Fri, 12 Jul 2019 14:20:28 +0000 (00:20 +1000)]
Fix T66773: Active edit-bone isn't updating

2 months agoCleanup: use `_orig` as a suffix
Campbell Barton [Fri, 12 Jul 2019 14:14:14 +0000 (00:14 +1000)]
Cleanup: use `_orig` as a suffix

2 months agoUI: increase contrast for active bone
Campbell Barton [Fri, 12 Jul 2019 12:29:23 +0000 (22:29 +1000)]
UI: increase contrast for active bone

Follow up for T66747 fix, active color didn't contrast enough.

2 months agoFix T66747: Active bone not showing in edit-mode
Campbell Barton [Fri, 12 Jul 2019 12:23:39 +0000 (22:23 +1000)]
Fix T66747: Active bone not showing in edit-mode

2 months agoFix AttributeError in mesh properties panel when mesh is pinned
Sybren A. Stüvel [Fri, 12 Jul 2019 12:18:17 +0000 (14:18 +0200)]
Fix AttributeError in mesh properties panel when mesh is pinned

When a mesh datablock is pinned in the properties panel,
`context.object` is `None`. This in turn causes `obj.mode` to raise an
`AttributeError` exception as `None.mode` doesn't exist.

Since there is no (fast/simple) way to check whether the owning object
is in edit mode or not, the properties will be disabled. Not ideal, but
better than spewing an exception on every panel draw.

Reviewed By: campbellbarton, brecht

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

2 months agoFix T66689: Viewport isn't updating children hair particle on particle edit
Philipp Oeser [Thu, 11 Jul 2019 13:11:03 +0000 (15:11 +0200)]
Fix T66689: Viewport isn't updating children hair particle on particle edit

Reviewers: fclem, brecht

Maniphest Tasks: T66689

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

2 months agoFix T66694: depthdropper (camera focus distance) not working from View3D context...
Philipp Oeser [Thu, 11 Jul 2019 15:53:13 +0000 (17:53 +0200)]
Fix T66694: depthdropper (camera focus distance) not working from View3D context menu

Reviewers: campbellbarton, brecht

Maniphest Tasks: T66694

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

2 months agoFix T66446: UV editor "Deselect on Nothing" not working
Campbell Barton [Fri, 12 Jul 2019 09:17:17 +0000 (19:17 +1000)]
Fix T66446: UV editor "Deselect on Nothing" not working

2 months agoFix keymap editor missing tools for UV/Image space
Campbell Barton [Fri, 12 Jul 2019 09:05:03 +0000 (19:05 +1000)]
Fix keymap editor missing tools for UV/Image space

2 months agoFix T66675: Auto-Save override button has no tooltip
Campbell Barton [Fri, 12 Jul 2019 05:45:52 +0000 (15:45 +1000)]
Fix T66675: Auto-Save override button has no tooltip

2 months agoPreferences: disable reading preferences for regular file loading
Campbell Barton [Fri, 12 Jul 2019 04:58:37 +0000 (14:58 +1000)]
Preferences: disable reading preferences for regular file loading

Although the Auto-Run Python Scripts flag isn't used,
this is still a security risk since exclude paths list is.

Further this isn't what users would expect when loading a file &
only some preferences were being loaded so it's not useful.

2 months agoFix T66604: Cycles bake crash on specific scene with volume
Sergey Sharybin [Thu, 11 Jul 2019 13:22:03 +0000 (15:22 +0200)]
Fix T66604: Cycles bake crash on specific scene with volume

The issue was caused by un-initialized local storage for volume
intersection hits which are supposed to be stored in per-thread
KernelGlobals.

Fix is to make thread_shader() be the same as thread_render() in
respect of KernelGlobals.

Reviewers: brecht

Reviewed By: brecht

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

2 months agoFix T66706: crash in viewport shading popover for workbench engine
Brecht Van Lommel [Thu, 11 Jul 2019 12:13:22 +0000 (14:13 +0200)]
Fix T66706: crash in viewport shading popover for workbench engine

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

2 months agoFix T66672: auto and manual texture space affected by modifiers
Brecht Van Lommel [Thu, 11 Jul 2019 11:39:19 +0000 (13:39 +0200)]
Fix T66672: auto and manual texture space affected by modifiers

It should be based on the mesh bounds before modifier stack evaluation, but
some modifiers were causing it to be recomputed. The flag to disable texture
space recomputation was not preserved through modifier evaluation.

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

2 months agoFix T66691: Ceash trying to render the 2.80 splash image
Sergey Sharybin [Thu, 11 Jul 2019 10:59:19 +0000 (12:59 +0200)]
Fix T66691: Ceash trying to render the 2.80 splash image

Was caused by ray direction becoming NaN after some of the bounces.

2 months agoAPI Doc link: make releases/RC's point to their own version of the doc.
Bastien Montagne [Thu, 11 Jul 2019 10:04:27 +0000 (12:04 +0200)]
API Doc link: make releases/RC's point to their own version of the doc.

Sounds kind of stupid to have 2.79 pointing to "current" which is now
2.80 API doc... Let's try to avoid that in future.

2 months agoFix for RC release step to also point at 'current' API doc link.
Bastien Montagne [Thu, 11 Jul 2019 09:50:58 +0000 (11:50 +0200)]
Fix for RC release step to also point at 'current' API doc link.

RC's are supposed to be like "real" releases...

2 months agoFix T66628: "Auto Saved Modified Image" not working
Jacques Lucke [Thu, 11 Jul 2019 10:06:21 +0000 (12:06 +0200)]
Fix T66628: "Auto Saved Modified Image" not working

Reviewer: brecht

2 months agoText: buffer from text, optional length return arg
Campbell Barton [Thu, 11 Jul 2019 04:18:39 +0000 (14:18 +1000)]
Text: buffer from text, optional length return arg

No functional changes (currently unused).

2 months agoFix T66658: Undo steps gets out sync with text/edit-mode
Campbell Barton [Wed, 10 Jul 2019 23:42:36 +0000 (09:42 +1000)]
Fix T66658: Undo steps gets out sync with text/edit-mode

2 months agoUndo System: add is_final argument (no functional changes)
Campbell Barton [Wed, 10 Jul 2019 23:36:59 +0000 (09:36 +1000)]
Undo System: add is_final argument (no functional changes)

This is needed step out of undo steps which accumulate changes,
larger changes could be made to handle this but better not
make them at this point.

2 months agoCleanup: avoid recursion for undo/redo step skipping
Campbell Barton [Wed, 10 Jul 2019 23:11:49 +0000 (09:11 +1000)]
Cleanup: avoid recursion for undo/redo step skipping

Simplifies making further changes.

2 months agoCleanup: clang-format
Campbell Barton [Wed, 10 Jul 2019 23:14:31 +0000 (09:14 +1000)]
Cleanup: clang-format

2 months agoCleanup: quiet warning
Campbell Barton [Wed, 10 Jul 2019 23:22:19 +0000 (09:22 +1000)]
Cleanup: quiet warning

2 months agoFix T66654: wireframe overlay crash in vertex paint in some cases
Jeroen Bakker [Wed, 10 Jul 2019 15:05:15 +0000 (17:05 +0200)]
Fix T66654: wireframe overlay crash in vertex paint in some cases

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

2 months agoSplash: new image for 2.80 by Andy Goralczyk and the Spring team
Brecht Van Lommel [Wed, 10 Jul 2019 13:54:41 +0000 (15:54 +0200)]
Splash: new image for 2.80 by Andy Goralczyk and the Spring team

2 months agoFix T66567: Weight painting crashes with specific mesh
Sergey Sharybin [Wed, 10 Jul 2019 14:03:19 +0000 (16:03 +0200)]
Fix T66567: Weight painting crashes with specific mesh

Seems the deform group index and deform vertices went out of sync somehow.

Added extra NULL pointer check, which seems to be safe and matches checks
in other places in the neighbourhood.

2 months agoFix strict compiler warning
Sergey Sharybin [Wed, 10 Jul 2019 13:03:57 +0000 (15:03 +0200)]
Fix strict compiler warning

2 months agoSplash: put version number in top right, refactor code for easier changes
Brecht Van Lommel [Wed, 10 Jul 2019 12:53:47 +0000 (14:53 +0200)]
Splash: put version number in top right, refactor code for easier changes