1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-12-30 01:55:22 +01:00

Prevent attached models from disappearing during parent reload (#4128)

This commit is contained in:
Foghrye4
2016-10-08 16:51:25 +04:00
committed by Ner'zhul
parent 9978d0796f
commit ad163ee5c3
7 changed files with 62 additions and 32 deletions

View File

@@ -67,7 +67,7 @@ public:
void getAttachment(int *parent_id, std::string *bone, v3f *position, v3f *rotation);
void addAttachmentChild(int child_id);
void removeAttachmentChild(int child_id);
std::set<int> getAttachmentChildIds();
UNORDERED_SET<int> getAttachmentChildIds();
ObjectProperties* accessObjectProperties();
void notifyObjectPropertiesModified();
/* LuaEntitySAO-specific */
@@ -116,7 +116,7 @@ private:
bool m_bone_position_sent;
int m_attachment_parent_id;
std::set<int> m_attachment_child_ids;
UNORDERED_SET<int> m_attachment_child_ids;
std::string m_attachment_bone;
v3f m_attachment_position;
v3f m_attachment_rotation;
@@ -210,7 +210,7 @@ public:
void getAttachment(int *parent_id, std::string *bone, v3f *position, v3f *rotation);
void addAttachmentChild(int child_id);
void removeAttachmentChild(int child_id);
std::set<int> getAttachmentChildIds();
UNORDERED_SET<int> getAttachmentChildIds();
ObjectProperties* accessObjectProperties();
void notifyObjectPropertiesModified();
@@ -320,7 +320,7 @@ private:
bool m_bone_position_sent;
int m_attachment_parent_id;
std::set<int> m_attachment_child_ids;
UNORDERED_SET<int> m_attachment_child_ids;
std::string m_attachment_bone;
v3f m_attachment_position;
v3f m_attachment_rotation;