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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user