X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fobject_properties.cpp;h=ec988a37d2a511422ed67a90c9a89828c6bdbb5e;hb=69bd803a3221bf02672431390e672b0510695254;hp=eb26db8d3f5a01fafc067dbbabc29ef05d706a74;hpb=fb0c43186422ad985e70f73bc70eeb07cc194909;p=oweals%2Fminetest.git diff --git a/src/object_properties.cpp b/src/object_properties.cpp index eb26db8d3..ec988a37d 100644 --- a/src/object_properties.cpp +++ b/src/object_properties.cpp @@ -18,6 +18,7 @@ with this program; if not, write to the Free Software Foundation, Inc., */ #include "object_properties.h" +#include "irrlichttypes_bloated.h" #include "util/serialize.h" #include #include @@ -32,9 +33,6 @@ ObjectProperties::ObjectProperties(): collisionbox(-0.5,-0.5,-0.5, 0.5,0.5,0.5), visual("sprite"), mesh(""), - animation_frames(1,1), - animation_speed(15), - animation_blend(0), visual_size(1,1), spritediv(1,1), initial_sprite_basepos(0,0), @@ -42,9 +40,8 @@ ObjectProperties::ObjectProperties(): makes_footstep_sound(false), automatic_rotate(0) { - animation_bone_position[""] = v3f(0,0,0); - animation_bone_rotation[""] = v3f(0,0,0); textures.push_back("unknown_object.png"); + colors.push_back(video::SColor(255,255,255,255)); } std::string ObjectProperties::dump() @@ -56,31 +53,17 @@ std::string ObjectProperties::dump() os<<", collisionbox="<::const_iterator ii = animation_bone_position.begin(); ii != animation_bone_position.end(); ++ii){ - std::string bone_name = (*ii).first; - v3f bone_pos = (*ii).second; - os<::const_iterator ii = animation_bone_rotation.begin(); ii != animation_bone_rotation.end(); ++ii){ - std::string bone_name = (*ii).first; - v3f bone_rot = (*ii).second; - os<