diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-05-09 16:39:56 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-05-09 16:39:56 +0400 |
commit | 6a97a2ab33b84a7f95616b1923227eb6c61ae156 (patch) | |
tree | 8dabf8f3f44b881a270e46649444a745b2d018a2 /source/blender/blenkernel/intern/depsgraph.c | |
parent | 8f6eda7e5d59165a8acfe99caacf8e3b88875362 (diff) |
Fix for bug #8919: uv shadow mesh doesn't update without 3d view
open. Made it so that the dependency graph besides the visible
layers, also updates the edited object.
Diffstat (limited to 'source/blender/blenkernel/intern/depsgraph.c')
-rw-r--r-- | source/blender/blenkernel/intern/depsgraph.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/depsgraph.c b/source/blender/blenkernel/intern/depsgraph.c index 1331c9a7d12..f7b1f7930f9 100644 --- a/source/blender/blenkernel/intern/depsgraph.c +++ b/source/blender/blenkernel/intern/depsgraph.c @@ -1691,7 +1691,7 @@ static void flush_update_node(DagNode *node, unsigned int layer, int curtime) for(itA = node->child; itA; itA= itA->next) { all_layer |= itA->lay; /* the relationship is visible */ - if(itA->lay & layer) { + if((itA->lay & layer) || (itA->node->ob == G.obedit)) { if(itA->node->type==ID_OB) { obc= itA->node->ob; oldflag= obc->recalc; @@ -1722,7 +1722,7 @@ static void flush_update_node(DagNode *node, unsigned int layer, int curtime) } } /* even nicer, we can clear recalc flags... */ - if((all_layer & layer)==0) { + if((all_layer & layer)==0 && (ob != G.obedit)) { /* but existing displaylists or derivedmesh should be freed */ if(ob->recalc & OB_RECALC_DATA) object_free_display(ob); @@ -1736,7 +1736,7 @@ static void flush_update_node(DagNode *node, unsigned int layer, int curtime) /* could merge this in with loop above...? (ton) */ for(itA = node->child; itA; itA= itA->next) { /* the relationship is visible */ - if(itA->lay & layer) { + if((itA->lay & layer) || (itA->node->ob == G.obedit)) { if(itA->node->type==ID_OB) { obc= itA->node->ob; /* child moves */ |