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
Short description of error
Creating a new scene or appending one, then making it the current scene, then copying an object from the previous scene and using
object.to_mesh() to apply the modifiers will fail to apply the modifiers. See the attached blend and the script for clarification.
This used to work just fine in rBb936d7b16c62, but doesn't any longer, since at least rBa813e259d630.
I'm assuming it has to do with rB46eb5a0b8a4f or similar changes at the time.
Exact steps for others to reproduce the error
- open attached blend
- run the script
- the copy object's modifer will not have been applied
- reload the blend, comment out the first scene change, and enable the second instead, and run the script again
- the copy object's modifier will have been applied
I'm not even sure if this is a bug, or now expected behavior. In any case, I'd expect it to behave the same, whenever I do the scene change. Hence the report. If this is indeed expected behavior, I'd really appreciate an explanation, thanks!