Maniphest T60893

Handler frame_change_post not working properly
Closed, Duplicate

Assigned To
None
Authored By
Marco (nacioss)
Jan 26 2019, 3:38 PM
Tags
  • BF Blender
  • BF Blender: 2.8
Subscribers
Marco (nacioss)
Sebastian Parborg (zeddb)

Description

System Information
Operating system: Ubuntu 18.04.1
Graphics card: AMD RX 580 (8GB memory)

Blender Version
Broken: (2.80.42, 1b6da95ccb11, 2019-01-25)

Short description of error


I have written an addon for 2.7 that worked using the function:

bpy.app.handlers.frame_change_post.append(my_function)

That function is used to call a function every time the current frame of the timeline changes.
It works in 2.79 as, for every current frame change, it calls my_function that updates all the values on the nodes, rotation of the objects etc...
In 2.80 it does change all the values and rotation of objects for every frame, and the viewport gets an update, but as you can see in the viewport it changes only the sun rotation and not the sun disk in the world environment, meaning that all the values get updated but there is no change in the viewport except for the sun object rotation.

Related Objects

Mentioned Here
rB38984b10ff7b: T61148: Particle properties can not be edited after keyframing
T60136: Rigid body simulation does not bake when using Python API to create and remove mesh data in frame_change_pre_handler
rB1b6da95ccb11: Cleanup: avoid static vars to store legacy shaders

Event Timeline

Marco (nacioss) created this task.Jan 26 2019, 3:38 PM
Sebastian Parborg (zeddb) lowered the priority of this task from 90 to 30.Jan 29 2019, 5:51 PM
Sebastian Parborg (zeddb) added a subscriber: Sebastian Parborg (zeddb).

I think the root cause is the same as in T60136 . So I'll merge this in.

Marco (nacioss) added a comment.Feb 4 2019, 5:07 PM

Still getting the error with today's build 38984b10ff7b

Sebastian Parborg (zeddb) added a comment.Feb 4 2019, 5:44 PM

yes, the related issue I merged this with still hasn't been fixed...

Marco (nacioss) added a comment.Mar 11 2019, 2:26 PM

It works with today's 11th March 2019 build! The animated values correctly update the materials!