Fix T46329: scene_update_{pre,post} doc needs clarification

The documentation for the bpy.app.handlers.scene_update_{pre,post}
handlers states that they're called "on updating the scenes data".
However, they're called even when the data hasn't changed. Of course
such handlers are useful, but the documentation should reflect the
current behaviour.

Reviewers: mont29, sergey

Subscribers: Blendify

Maniphest Tasks: T46329

Differential Revision: https://developer.blender.org/D1535
This commit is contained in:
2017-08-08 15:13:54 +02:00
parent ed4707be47
commit 01ee88563b

View File

@@ -59,8 +59,12 @@ static PyStructSequence_Field app_cb_info_fields[] = {
{(char *)"load_post", (char *)"on loading a new blend file (after)"},
{(char *)"save_pre", (char *)"on saving a blend file (before)"},
{(char *)"save_post", (char *)"on saving a blend file (after)"},
{(char *)"scene_update_pre", (char *)"on updating the scenes data (before)"},
{(char *)"scene_update_post", (char *)"on updating the scenes data (after)"},
{(char *)"scene_update_pre", (char *)"on every scene data update. Does not imply that anything changed in the "
"scene, just that the dependency graph is about to be reevaluated, and the "
"scene is about to be updated by Blender's animation system."},
{(char *)"scene_update_post", (char *)"on every scene data update. Does not imply that anything changed in the "
"scene, just that the dependency graph was reevaluated, and the scene was "
"possibly updated by Blender's animation system."},
{(char *)"game_pre", (char *)"on starting the game engine"},
{(char *)"game_post", (char *)"on ending the game engine"},
{(char *)"version_update", (char *)"on ending the versioning code"},