Permalink
Browse files

Handle lack of technique gracefully

  • Loading branch information...
1 parent 966fa4f commit 02f17afe63ddc2b250bac9a39f282a3ea9383704 Mikko Lehtonen committed May 7, 2009
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/conditioners/axisconverter_core.cpp
@@ -1461,8 +1461,10 @@ void common_convert(DAE *input, int code, int verbose)
continue;
domPhysics_scene::domTechnique_commonRef tech = thisPhysicsScene->getTechnique_common();
- daeDoubleArray &gravity = tech->getGravity()->getValue();
- doublearray_swap(gravity, code, verbose);
+ if( tech && tech->getGravity() ) {
+ daeDoubleArray &gravity = tech->getGravity()->getValue();
+ doublearray_swap(gravity, code, verbose);
+ }
}

0 comments on commit 02f17af

Please sign in to comment.