Text archives Help
- From: brownlee@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [Manta] r1680 - trunk/Model/MiscObjects
- Date: Thu, 23 Aug 2007 12:21:55 -0600 (MDT)
Author: brownlee
Date: Thu Aug 23 12:21:54 2007
New Revision: 1680
Modified:
trunk/Model/MiscObjects/KeyFrameAnimation.cc
Log:
KeyFrameAnimaiton was crashing when empty
Modified: trunk/Model/MiscObjects/KeyFrameAnimation.cc
==============================================================================
--- trunk/Model/MiscObjects/KeyFrameAnimation.cc (original)
+++ trunk/Model/MiscObjects/KeyFrameAnimation.cc Thu Aug 23 12:21:54
2007
@@ -69,6 +69,8 @@
void KeyFrameAnimation::update(Temp_Callback context)
{
+ if (currGroup == NULL)
+ return;
//only one thread can do serial code
if (context.proc == 0) {
if (updateToCurrTime) {
@@ -199,7 +201,7 @@
{
if (as)
as->intersect(context, rays);
- else
+ else if (currGroup)
currGroup->intersect(context, rays);
}
- [Manta] r1680 - trunk/Model/MiscObjects, brownlee, 08/23/2007
Archive powered by MHonArc 2.6.16.