From 8d03301138c0e82728d61b957ea47a5a4061633a Mon Sep 17 00:00:00 2001 From: TeTpaAka Date: Fri, 3 Jul 2015 12:31:34 +0200 Subject: Fix invisible player when the attached entity is removed --- src/content_sao.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/content_sao.h') diff --git a/src/content_sao.h b/src/content_sao.h index f61566665..1f0a68cd8 100644 --- a/src/content_sao.h +++ b/src/content_sao.h @@ -65,6 +65,9 @@ public: void getBonePosition(const std::string &bone, v3f *position, v3f *rotation); void setAttachment(int parent_id, const std::string &bone, v3f position, v3f rotation); void getAttachment(int *parent_id, std::string *bone, v3f *position, v3f *rotation); + void addAttachmentChild(int child_id); + void removeAttachmentChild(int child_id); + std::set getAttachmentChildIds(); ObjectProperties* accessObjectProperties(); void notifyObjectPropertiesModified(); /* LuaEntitySAO-specific */ @@ -113,6 +116,7 @@ private: bool m_bone_position_sent; int m_attachment_parent_id; + std::set m_attachment_child_ids; std::string m_attachment_bone; v3f m_attachment_position; v3f m_attachment_rotation; @@ -204,6 +208,9 @@ public: void getBonePosition(const std::string &bone, v3f *position, v3f *rotation); void setAttachment(int parent_id, const std::string &bone, v3f position, v3f rotation); void getAttachment(int *parent_id, std::string *bone, v3f *position, v3f *rotation); + void addAttachmentChild(int child_id); + void removeAttachmentChild(int child_id); + std::set getAttachmentChildIds(); ObjectProperties* accessObjectProperties(); void notifyObjectPropertiesModified(); void setNametagColor(video::SColor color); @@ -320,6 +327,7 @@ private: bool m_bone_position_sent; int m_attachment_parent_id; + std::set m_attachment_child_ids; std::string m_attachment_bone; v3f m_attachment_position; v3f m_attachment_rotation; -- cgit v1.2.3