Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-04-02 21:44:14 +0400
committerTon Roosendaal <ton@blender.org>2006-04-02 21:44:14 +0400
commit04a76534129a9374d7ca081e5d7f3ac4e4574586 (patch)
tree4a83f32d81b6f601a55ab18e38c3c890fa5e7ce6
parent0e01b351fe358597aa7f3ba1d217f5b27ecca0cb (diff)
Bugfix #3996
Particles were fully recalculated each time on frame advance, when they had an animation itself (like Ipo). Was not needed for dynamic particles.
-rw-r--r--source/blender/blenkernel/intern/depsgraph.c4
-rw-r--r--source/blender/src/header_info.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/depsgraph.c b/source/blender/blenkernel/intern/depsgraph.c
index 8c8244588f5..d63e0b2b9d7 100644
--- a/source/blender/blenkernel/intern/depsgraph.c
+++ b/source/blender/blenkernel/intern/depsgraph.c
@@ -1610,8 +1610,10 @@ static void dag_object_time_update_flags(Object *ob)
if(eff->type==EFF_WAVE)
ob->recalc |= OB_RECALC_DATA;
- if(paf && paf->keys==NULL)
+ else if(paf && paf->keys==NULL)
ob->recalc |= OB_RECALC_DATA;
+ else if((paf->flag & PAF_STATIC)==0)
+ ob->recalc &= ~OB_RECALC; /* NOTE! this is because particles are baked... depsgraph doesnt understand it */
}
if((ob->fluidsimFlag & OB_FLUIDSIM_ENABLE) && (ob->fluidsimSettings)) {
// fluidsimSettings might not be initialized during load...
diff --git a/source/blender/src/header_info.c b/source/blender/src/header_info.c
index b43c6f28ef7..492705857a4 100644
--- a/source/blender/src/header_info.c
+++ b/source/blender/src/header_info.c
@@ -486,6 +486,7 @@ void do_info_buttons(unsigned short event)
if(G.f & G_VERTEXPAINT) set_vpaint(); /* Switch off vertex paint */
if(G.f & G_TEXTUREPAINT) set_texturepaint(); /* Switch off tex paint */
if(G.f & G_WEIGHTPAINT) set_wpaint(); /* Switch off weight paint */
+ if(G.f & G_FACESELECT) set_faceselect(); /* Switch off face select */
/* check all sets */
sce1= G.main->scene.first;