← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-pkg/yade/git-trunk] Rev 3719: CombinedKinematicEngine will not call its 'dead' subengines (question #237437)

 

------------------------------------------------------------
revno: 3719
committer: Jan Stransky <jan.stransky@xxxxxxxxxxx>
timestamp: Wed 2013-10-16 15:48:29 +0200
message:
  CombinedKinematicEngine will not call its 'dead' subengines (question #237437)
modified:
  pkg/common/KinematicEngines.cpp


--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'pkg/common/KinematicEngines.cpp'
--- pkg/common/KinematicEngines.cpp	2013-07-04 17:36:34 +0000
+++ pkg/common/KinematicEngines.cpp	2013-10-16 13:48:29 +0000
@@ -31,6 +31,7 @@
 		}
 		// apply one engine after another
 		FOREACH(const shared_ptr<KinematicEngine>& e, comb){
+			if (e->dead) continue;
 			e->scene=scene; e->apply(ids);
 		}
 	} else {