Changeset 4715 in orxonox.OLD for orxonox/trunk/src/lib/particles
- Timestamp:
- Jun 27, 2005, 12:07:16 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/particles/particle_system.cc
r4692 r4715 81 81 if (this->material) 82 82 delete this->material; 83 84 ResourceManager::getInstance()->unload(this->model); 83 85 } 84 86 … … 176 178 } 177 179 178 179 180 180 /** 181 181 * sets a Model to the Particles … … 185 185 { 186 186 if (this->model) 187 delete this->model;187 ResourceManager::getInstance()->unload(this->model); 188 188 if (modelName) 189 this->model = new OBJModel(modelName); 190 this->setType(PARTICLE_MODEL); 189 { 190 this->model = (Model*)ResourceManager::getInstance()->load(modelName, OBJ, RP_LEVEL); 191 this->setType(PARTICLE_MODEL); 192 } 193 else 194 { 195 this->model = NULL; 196 this->setType(PARTICLE_SPRITE); 197 } 191 198 } 192 199
Note: See TracChangeset
for help on using the changeset viewer.