diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-11-24 14:48:16 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-11-24 14:48:16 +0300 |
commit | 2e7dbdf02574a3cf6a9787cba82f118263d3c623 (patch) | |
tree | 2dd5f3507e3cc8bc5cf32fd4052e20398eabfca0 /source/blender/makesrna/intern/rna_scene_api.c | |
parent | 397b52bdc7b85831ee6b706133f76ffea83f6d59 (diff) |
Depsgraph/Drivers
* Removed ED_anim_dag_flush_update and ED_anim_object_flush_update. These
were wrapping DAG_* calls and were intended be used instead of them when
doing a DAG update from editors. That goes against the design in my opinion,
no matter who calls the DAG, that should update the editors correctly, so
any special checks in such functions for editors should be avoided.
* Driver RNA properties now do updates again, including DAG scene sorting,
text buttons no longer update as you type anymore, so this should be
safe I think.
* Remove scene.update() RNA function, all properties/functions should do this
automatically, if changing some property or calling a function/operator
does not do the correct update, that should be fixed.
Diffstat (limited to 'source/blender/makesrna/intern/rna_scene_api.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_scene_api.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/source/blender/makesrna/intern/rna_scene_api.c b/source/blender/makesrna/intern/rna_scene_api.c index 05fd9889e31..89e9c2ee5ca 100644 --- a/source/blender/makesrna/intern/rna_scene_api.c +++ b/source/blender/makesrna/intern/rna_scene_api.c @@ -57,18 +57,6 @@ static void rna_Scene_set_frame(Scene *scene, bContext *C, int frame) WM_event_add_notifier(C, NC_SCENE|ND_FRAME, scene); } -static void rna_Scene_update(Scene *scene, bContext *C) -{ - /* added to update driver deps, copied from do_graph_region_driver_buttons - * but can be extended with update options */ - - /* rebuild depsgraph for the new deps */ - DAG_scene_sort(scene); - - /* force an update of depsgraph */ - ED_anim_dag_flush_update(C); -} - static KeyingSet *rna_Scene_add_keying_set(Scene *sce, ReportList *reports, char name[], int absolute, int insertkey_needed, int insertkey_visual) { @@ -109,10 +97,6 @@ void RNA_api_scene(StructRNA *srna) parm= RNA_def_int(func, "frame", 0, MINAFRAME, MAXFRAME, "", "Frame number to set.", MINAFRAME, MAXFRAME); RNA_def_property_flag(parm, PROP_REQUIRED); - func= RNA_def_function(srna, "update", "rna_Scene_update"); - RNA_def_function_flag(func, FUNC_USE_CONTEXT); - RNA_def_function_ui_description(func, "Rebuild the scene dependancy graph."); - /* Add Keying Set */ func= RNA_def_function(srna, "add_keying_set", "rna_Scene_add_keying_set"); RNA_def_function_ui_description(func, "Add a new Keying Set to Scene."); |