Fix #19311: adding/opening datablocks did not always make the right
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 1 Oct 2009 23:32:57 +0000 (23:32 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 1 Oct 2009 23:32:57 +0000 (23:32 +0000)
commitb26ef33b8ed68ba3b5a5a78a3f23fcade4035f31
treedd88daaab4ad1768e6060e6f787741959cfc3c04
parentbc942eceacb638735dc4f4f68252c4c207147a70
Fix #19311: adding/opening datablocks did not always make the right
one active. Now there's a function to get the pointer + property from
the UI, just like for the animation operators.

Also two fixes for fileselect events, regions are now preserved so that
context is restored to the old region, and the cancel callback is called
when the operator is cancelled.
source/blender/blenkernel/intern/world.c
source/blender/editors/include/UI_interface.h
source/blender/editors/interface/interface_templates.c
source/blender/editors/physics/particle_boids.c
source/blender/editors/render/render_shading.c
source/blender/editors/screen/area.c
source/blender/editors/space_action/action_edit.c
source/blender/editors/space_image/image_ops.c
source/blender/editors/space_text/text_ops.c
source/blender/makesrna/RNA_types.h
source/blender/windowmanager/intern/wm_event_system.c