Cosmetic changes.
This commit is contained in:
parent
08b1fc01f0
commit
3da52bcbfb
@ -19,9 +19,6 @@
|
|||||||
|
|
||||||
#include "items/item.hpp"
|
#include "items/item.hpp"
|
||||||
|
|
||||||
#include <IMeshSceneNode.h>
|
|
||||||
#include <ISceneManager.h>
|
|
||||||
|
|
||||||
#include "graphics/irr_driver.hpp"
|
#include "graphics/irr_driver.hpp"
|
||||||
#include "graphics/lod_node.hpp"
|
#include "graphics/lod_node.hpp"
|
||||||
#include "karts/abstract_kart.hpp"
|
#include "karts/abstract_kart.hpp"
|
||||||
@ -32,6 +29,9 @@
|
|||||||
#include "utils/constants.hpp"
|
#include "utils/constants.hpp"
|
||||||
#include "utils/vec3.hpp"
|
#include "utils/vec3.hpp"
|
||||||
|
|
||||||
|
#include <IMeshSceneNode.h>
|
||||||
|
#include <ISceneManager.h>
|
||||||
|
|
||||||
Item::Item(ItemType type, const Vec3& xyz, const Vec3& normal,
|
Item::Item(ItemType type, const Vec3& xyz, const Vec3& normal,
|
||||||
scene::IMesh* mesh, scene::IMesh* lowres_mesh)
|
scene::IMesh* mesh, scene::IMesh* lowres_mesh)
|
||||||
{
|
{
|
||||||
@ -48,12 +48,15 @@ Item::Item(ItemType type, const Vec3& xyz, const Vec3& normal,
|
|||||||
LODNode* lodnode = new LODNode("item",
|
LODNode* lodnode = new LODNode("item",
|
||||||
irr_driver->getSceneManager()->getRootSceneNode(),
|
irr_driver->getSceneManager()->getRootSceneNode(),
|
||||||
irr_driver->getSceneManager());
|
irr_driver->getSceneManager());
|
||||||
scene::IMeshSceneNode* meshnode = irr_driver->addMesh(mesh, StringUtils::insertValues("item_%i", (int)type));
|
scene::IMeshSceneNode* meshnode =
|
||||||
|
irr_driver->addMesh(mesh, StringUtils::insertValues("item_%i", (int)type));
|
||||||
|
|
||||||
if (lowres_mesh != NULL)
|
if (lowres_mesh != NULL)
|
||||||
{
|
{
|
||||||
lodnode->add(35, meshnode, true);
|
lodnode->add(35, meshnode, true);
|
||||||
scene::IMeshSceneNode* meshnode = irr_driver->addMesh(lowres_mesh, StringUtils::insertValues("item_lo_%i", (int)type));
|
scene::IMeshSceneNode* meshnode =
|
||||||
|
irr_driver->addMesh(lowres_mesh,
|
||||||
|
StringUtils::insertValues("item_lo_%i", (int)type));
|
||||||
lodnode->add(100, meshnode, true);
|
lodnode->add(100, meshnode, true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user