Page MenuHome

Error baking action
Closed, ResolvedPublic

Description

System Information
Operating system: Windows-10-10.0.17763 64 Bits
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 388.13

Blender Version
Broken: version: 2.80 (sub 66), branch: master, commit date: 2019-05-16 12:17, hash: rBe60890075b37

Short description of error
Baking an action, either to pose or object data, results in an error - 'Scene' object has no attribute 'update'. This is likely due to the recent depsgraph change.

Exact steps for others to reproduce the error

  1. Select an object that has at least two keyframes
  2. Go to Object / Animation / Bake Action
  3. Click OK

Event Timeline

Philipp Oeser (lichtwerk) claimed this task.
Philipp Oeser (lichtwerk) triaged this task as Confirmed, Medium priority.

Confirmed, checking...

@Sergey Sharybin (sergey) : just checking if you had scene.update() on the radar for updating after rBe693918d4074?

This one here is fixed by

1
2
3diff --git a/release/scripts/modules/bpy_extras/anim_utils.py b/release/scripts/modules/bpy_extras/anim_utils.py
4index fa833b273ec..1ef97b24a3f 100644
5--- a/release/scripts/modules/bpy_extras/anim_utils.py
6+++ b/release/scripts/modules/bpy_extras/anim_utils.py
7@@ -104,7 +104,7 @@ def bake_action_objects_iter(
8 if frame is None:
9 break
10 scene.frame_set(frame)
11- scene.update()
12+ bpy.context.view_layer.update()
13 for iter in iter_all:
14 iter.send(frame)
15 scene.frame_set(frame_back)

but there are lots more to do.... should I commit this and do one by one (or do you prefer to update all in one go?)

@Philipp Oeser (lichtwerk), this is a correct fix. Please go ahead and commit :)