Skip to content

Commit

Permalink
Handle lack of technique gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikko Lehtonen committed May 7, 2009
1 parent 966fa4f commit 02f17af
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/conditioners/axisconverter_core.cpp
Expand Up @@ -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);
}
}


Expand Down

0 comments on commit 02f17af

Please sign in to comment.