mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-18 10:45:27 +02:00
Fix overloaded virtual warnings with get/setAttachment()
This commit is contained in:
@@ -111,6 +111,7 @@ private:
|
||||
v3f m_attachment_position;
|
||||
v3f m_attachment_rotation;
|
||||
bool m_attached_to_local = false;
|
||||
bool m_force_visible = false;
|
||||
|
||||
int m_anim_frame = 0;
|
||||
int m_anim_num_frames = 1;
|
||||
@@ -126,7 +127,6 @@ private:
|
||||
float m_step_distance_counter = 0.0f;
|
||||
u8 m_last_light = 255;
|
||||
bool m_is_visible = false;
|
||||
bool m_force_visible = false;
|
||||
s8 m_glow = 0;
|
||||
// Material
|
||||
video::E_MATERIAL_TYPE m_material_type;
|
||||
@@ -218,15 +218,11 @@ public:
|
||||
m_is_visible = toset;
|
||||
}
|
||||
|
||||
inline bool isForcedVisible() const
|
||||
{
|
||||
return m_force_visible;
|
||||
}
|
||||
|
||||
void setChildrenVisible(bool toset);
|
||||
void setAttachment(int parent_id, const std::string &bone, v3f position, v3f rotation);
|
||||
void setAttachment(int parent_id, const std::string &bone, v3f position,
|
||||
v3f rotation, bool force_visible);
|
||||
void getAttachment(int *parent_id, std::string *bone, v3f *position,
|
||||
v3f *rotation) const;
|
||||
v3f *rotation, bool *force_visible) const;
|
||||
void clearChildAttachments();
|
||||
void clearParentAttachment();
|
||||
void addAttachmentChild(int child_id);
|
||||
|
Reference in New Issue
Block a user