Blender Git Loki

Git Commits -> Revision 7df35db

Revision 7df35db by Brecht Van Lommel (master)
September 4, 2009, 20:51 (GMT)
2.5

Notifiers
---------

Various fixes for wrong use of notifiers, and some new notifiers
to make things a bit more clear and consistent, with two notable
changes:

* Geometry changes are now done with NC_GEOM, rather than
NC_OBJECT|ND_GEOM_, so an object does need to be available.
* Space data now use NC_SPACE|ND_SPACE_*, instead of data
notifiers or even NC_WINDOW in some cases. Note that NC_SPACE
should only be used for notifying about changes in space data,
we don't want to go back to allqueue(REDRAW..).

Depsgraph
---------

The dependency graph now has a different flush call:

DAG_object_flush_update(scene, ob, flag)
is replaced by:
DAG_id_flush_update(id, flag)

It still works basically the same, one difference is that it now
also accepts object data (e.g. Mesh), again to avoid requiring an
Object to be available. Other ID types will simply do nothing at
the moment.

Docs
----

I made some guidelines for how/when to do which kinds of updates
and notifiers. I can't specify totally exact how to make these
decisions, but these are basically the guidelines I use. So, new
and updated docs are here:

http://wiki.blender.org/index.php/BlenderDev/Blender2.5/NotifiersUpdates
http://wiki.blender.org/index.php/BlenderDev/Blender2.5/DataNotifiers

Commit Details:

Full Hash: 7df35db1b1364dcd81dd8247ad3707d40a78fd59
SVN Revision: 23002
Parent Commit: 5342f79
Lines Changed: +1747, -1689

85 Modified Paths:

/source/blender/blenkernel/BKE_depsgraph.h (+5, -2) (Diff)
/source/blender/blenkernel/intern/armature.c (+0, -1) (Diff)
/source/blender/blenkernel/intern/booleanops.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/depsgraph.c (+66, -27) (Diff)
/source/blender/blenkernel/intern/mesh.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/multires.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/particle.c (+6, -7) (Diff)
/source/blender/blenkernel/intern/pointcache.c (+1, -1) (Diff)
/source/blender/editors/armature/editarmature.c (+10, -15) (Diff)
/source/blender/editors/armature/poselib.c (+3, -3) (Diff)
/source/blender/editors/armature/poseobject.c (+8, -10) (Diff)
/source/blender/editors/curve/editcurve.c (+58, -63) (Diff)
/source/blender/editors/curve/editfont.c (+6, -8) (Diff)
/source/blender/editors/interface/interface_templates.c (+4, -6) (Diff)
/source/blender/editors/mesh/editmesh.c (+4, -4) (Diff)
/source/blender/editors/mesh/editmesh_add.c (+32, -46) (Diff)
/source/blender/editors/mesh/editmesh_loop.c (+3, -4) (Diff)
/source/blender/editors/mesh/editmesh_mods.c (+58, -63) (Diff)
/source/blender/editors/mesh/editmesh_tools.c (+64, -83) (Diff)
/source/blender/editors/mesh/meshtools.c (+1, -1) (Diff)
/source/blender/editors/mesh/mesh_layers.c (+34, -54) (Diff)
/source/blender/editors/metaball/editmball.c (+13, -17) (Diff)
/source/blender/editors/object/editconstraint.c (+5, -8) (Diff)
/source/blender/editors/object/editkey.c (+11, -96) (Diff)
/source/blender/editors/object/editlattice.c (+4, -5) (Diff)
/source/blender/editors/object/object_edit.c (+27, -28) (Diff)
/source/blender/editors/object/object_modifier.c (+27, -25) (Diff)
/source/blender/editors/object/object_vgroup.c (+37, -43) (Diff)
/source/blender/editors/physics/editparticle.c (+28, -34) (Diff)
/source/blender/editors/sculpt_paint/paint_image.c (+1, -1) (Diff)
/source/blender/editors/sculpt_paint/paint_vertex.c (+9, -9) (Diff)
/source/blender/editors/space_action/space_action.c (+4, -0) (Diff)
/source/blender/editors/space_buttons/buttons_ops.c (+8, -11) (Diff)
/source/blender/editors/space_buttons/space_buttons.c (+12, -5) (Diff)
/source/blender/editors/space_console/space_console.c (+3, -3) (Diff)
/source/blender/editors/space_file/file_ops.c (+15, -15) (Diff)
/source/blender/editors/space_file/space_file.c (+8, -8) (Diff)
/source/blender/editors/space_graph/space_graph.c (+4, -0) (Diff)
/source/blender/editors/space_image/space_image.c (+8, -4) (Diff)
/source/blender/editors/space_info/space_info.c (+3, -2) (Diff)
/source/blender/editors/space_nla/space_nla.c (+4, -0) (Diff)
/source/blender/editors/space_node/space_node.c (+9, -0) (Diff)
/source/blender/editors/space_outliner/outliner.c (+3, -3) (Diff)
/source/blender/editors/space_outliner/space_outliner.c (+8, -0) (Diff)
/source/blender/editors/space_sequencer/space_sequencer.c (+9, -0) (Diff)
/source/blender/editors/space_text/space_text.c (+4, -0) (Diff)
/source/blender/editors/space_text/text_ops.c (+1, -2) (Diff)
/source/blender/editors/space_time/space_time.c (+11, -0) (Diff)
/source/blender/editors/space_view3d/space_view3d.c (+32, -5) (Diff)
/source/blender/editors/space_view3d/view3d_buttons.c (+8, -8) (Diff)
/source/blender/editors/space_view3d/view3d_header.c (+3, -3) (Diff)
/source/blender/editors/space_view3d/view3d_select.c (+2, -2) (Diff)
/source/blender/editors/space_view3d/view3d_snap.c (+4, -4) (Diff)
/source/blender/editors/transform/transform.c (+1, -1) (Diff)
/source/blender/editors/transform/transform_conversions.c (+7, -7) (Diff)
/source/blender/editors/transform/transform_generics.c (+7, -7) (Diff)
/source/blender/editors/util/editmode_undo.c (+1, -1) (Diff)
/source/blender/editors/uvedit/uvedit_ops.c (+25, -25) (Diff)
/source/blender/editors/uvedit/uvedit_unwrap_ops.c (+20, -20) (Diff)
/source/blender/makesrna/intern/rna_armature.c (+3, -15) (Diff)
/source/blender/makesrna/intern/rna_boid.c (+53, -50) (Diff)
/source/blender/makesrna/intern/rna_cloth.c (+32, -31) (Diff)
/source/blender/makesrna/intern/rna_constraint.c (+2, -3) (Diff)
/source/blender/makesrna/intern/rna_curve.c (+4, -15) (Diff)
/source/blender/makesrna/intern/rna_define.c (+2, -1) (Diff)
/source/blender/makesrna/intern/rna_fluidsim.c (+12, -6) (Diff)
/source/blender/makesrna/intern/rna_internal.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_key.c (+2, -3) (Diff)
/source/blender/makesrna/intern/rna_lattice.c (+3, -11) (Diff)
/source/blender/makesrna/intern/rna_mesh.c (+88, -22) (Diff)
/source/blender/makesrna/intern/rna_mesh_api.c (+2, -9) (Diff)
/source/blender/makesrna/intern/rna_meta.c (+5, -7) (Diff)
/source/blender/makesrna/intern/rna_modifier.c (+173, -171) (Diff)
/source/blender/makesrna/intern/rna_object.c (+10, -9) (Diff)
/source/blender/makesrna/intern/rna_object_force.c (+47, -43) (Diff)
/source/blender/makesrna/intern/rna_particle.c (+183, -173) (Diff)
/source/blender/makesrna/intern/rna_pose.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_sculpt_paint.c (+8, -11) (Diff)
/source/blender/makesrna/intern/rna_smoke.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_space.c (+133, -94) (Diff)
/source/blender/makesrna/intern/rna_userdef.c (+193, -187) (Diff)
/source/blender/makesrna/intern/rna_wm.c (+1, -0) (Diff)
/source/blender/windowmanager/intern/wm.c (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+2, -2) (Diff)
/source/blender/windowmanager/WM_types.h (+32, -19) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021