This commit is contained in:
Vechro 2019-07-23 14:38:56 +03:00 committed by Pfauenauge90
parent 215a2640f4
commit f3c5ece983
3 changed files with 7 additions and 1 deletions

BIN
assets/voxygen/voxel/object/tent.vox (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -27,6 +27,7 @@ pub enum Body {
PotionGreen,
PotionRed,
Crate,
Tent,
}
impl Body {
@ -36,7 +37,7 @@ impl Body {
}
}
const ALL_OBJECTS: [Body; 25] = [
const ALL_OBJECTS: [Body; 26] = [
Body::Bomb,
Body::Scarecrow,
Body::Cauldron,
@ -62,4 +63,5 @@ const ALL_OBJECTS: [Body; 25] = [
Body::PotionBlue,
Body::PotionGreen,
Body::Crate,
Body::Tent,
];

View File

@ -547,6 +547,7 @@ impl FigureModelCache {
object::Body::PotionBlue => ("object/potion_blue.vox", Vec3::new(-2.0, -2.0, 0.0)),
object::Body::PotionGreen => ("object/potion_green.vox", Vec3::new(-2.0, -2.0, 0.0)),
object::Body::Crate => ("object/crate.vox", Vec3::new(-7.0, -7.0, 0.0)),
object::Body::Tent => ("object/tent.vox", Vec3::new(-18.5, -19.5, 0.0)),
};
Self::load_mesh(name, offset)
}