Changeset 162 in flair-src for trunk/lib/FlairSimulator/src


Ignore:
Timestamp:
03/06/17 20:30:06 (5 years ago)
Author:
Sanahuja Guillaume
Message:

modifs pb crash fin simulateur

Location:
trunk/lib/FlairSimulator/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairSimulator/src/Gui_impl.cpp

    r145 r162  
    131131Gui_impl::~Gui_impl() {
    132132  // printf("del Gui_impl\n");
    133   device->drop();
     133  //device->drop();
    134134
    135135  delete receiver;
     
    209209
    210210  while (device->run()) {
    211     if (dbtFile_r != NULL) // rejeu
    212     {
     211    if (dbtFile_r != NULL) {// rejeu
    213212      takeScreenshot(); // on enregistre l'image precedente
    214213      road_time_t time;
     
    258257                 }
    259258                 device->setWindowCaption(L"toto");*/
    260 
    261     if (dbtFile_r == NULL) // mode normal
    262     {
     259    if (dbtFile_r == NULL) {// mode normal
    263260      for (size_t i = 0; i < models.size(); i++) {
    264261        models.at(i)->pimpl_->CheckCollision();
  • trunk/lib/FlairSimulator/src/SimuCameraGL.cpp

    r158 r162  
    111111    free(buffer);
    112112  }
     113  camera->removeAnimator(this);
     114  camera->drop();
    113115}
    114116
  • trunk/lib/FlairSimulator/src/Simulator_impl.cpp

    r15 r162  
    2121#include "Gui.h"
    2222#include "Gui_impl.h"
     23#include <ISceneManager.h>
    2324#endif
    2425#include "Model.h"
     
    4647    models.at(i)->pimpl_->SafeStop();
    4748    models.at(i)->pimpl_->Join();
     49#ifdef GL
     50    getGui()->getSceneManager()->getRootSceneNode()->removeChild(models.at(i)->pimpl_);
     51#endif
    4852    delete models.at(i);
    4953  }
Note: See TracChangeset for help on using the changeset viewer.