Page MenuHome

bpy.context.scene.update() causes erratic object selections
Closed, DuplicatePublic

Description

System Information
Operating system: Linux-4.13.10-041310-generic-x86_64-with-debian-stretch-sid 64 Bits
Graphics card: GeForce GTX 1050/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 390.67

Blender Version
Broken: version: 2.80 (sub 49), branch: blender2.7, commit date: 2019-03-15 23:51, hash: rB3600bb79d05d

Short description of error
In the attached blend, calling a context.scene.update() from a script or the text editor, will cause erratic object selections

Exact steps for others to reproduce the error

  • open attached blend
  • select the objects one after another to comfirm everything is in order
  • run scene update from text editor
  • attempt to select the objects again
  • the wrong objects should get selected

video demo

FWIW. the file went through dozens of blender versions over the past weeks. It may just be corrupted from this. I can't seem to reproduce this on new files.

Event Timeline

MACHIN3 (MACHIN3) renamed this task from bpy.context.scene.update() causes eratic object selections to bpy.context.scene.update() causes erratic object selections.Mar 16 2019, 11:34 PM
MACHIN3 (MACHIN3) created this task.

Confirmed on Windows Version 2.80 Beta Date: 2019-03-16 18:21 Hash: 2d3fbadfe36d

Confirmed on Windows 10, 64-bit 1803, version 2.80 Beta, Date: 2019 21:53 Hash: cc5bdf029324

Jacques Lucke (JacquesLucke) lowered the priority of this task from 90 to 50.Mar 18 2019, 12:00 PM

Interestingly, the problem does not happen when I move object A into Scene Collection.