Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 13, 2015, 10:54:15 PM (9 years ago)
Author:
landauf
Message:

removed unnecessary material from BulletDebugDrawer.
fixed crash with ogre 1.7 if the number of vertices dropped to 0 in DebugDrawer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/tools/DebugDrawer.cc

    r10194 r10195  
    1515#include <OgreManualObject.h>
    1616#include <OgreAxisAlignedBox.h>
    17 
    18 #include "util/Output.h"
    1917
    2018#define DEFAULT_ICOSPHERE_RECURSION_LEVEL 1
     
    402400                manualObject->index(*i);
    403401        }
     402        else
     403            manualObject->index(0); // this is necessary to avoid crashes with ogre 1.7 if there's a light source in the level
    404404        manualObject->end();
    405405
     
    417417                manualObject->index(*i);
    418418        }
     419        else
     420            manualObject->index(0); // this is necessary to avoid crashes with ogre 1.7 if there's a light source in the level
    419421        manualObject->end();
    420422    }
Note: See TracChangeset for help on using the changeset viewer.