yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #04811
[Branch ~yade-dev/yade/trunk] Rev 2283: 1. Fixes crash in VTKRecorder, when some bodies are erased
------------------------------------------------------------
revno: 2283
fixes bug(s): https://launchpad.net/bugs/591112
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
branch nick: trunk
timestamp: Tue 2010-06-08 08:53:32 +0200
message:
1. Fixes crash in VTKRecorder, when some bodies are erased
modified:
pkg/dem/Engine/GlobalEngine/VTKRecorder.cpp
--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription
=== modified file 'pkg/dem/Engine/GlobalEngine/VTKRecorder.cpp'
--- pkg/dem/Engine/GlobalEngine/VTKRecorder.cpp 2010-05-25 08:59:56 +0000
+++ pkg/dem/Engine/GlobalEngine/VTKRecorder.cpp 2010-06-08 06:53:32 +0000
@@ -157,6 +157,7 @@
if(recActive[REC_INTR]){
// save body positions, referenced by ids by vtkLine
FOREACH(const shared_ptr<Body>& b, *scene->bodies){
+ if (!b) continue;
const Vector3r& pos=b->state->pos;
intrBodyPos->InsertNextPoint(pos[0],pos[1],pos[2]);
}
Follow ups