Skip to content

Commit 3ce78b6

Browse files
committed
(Refactor) Removed old code.
1 parent a2f5da0 commit 3ce78b6

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

inc/Utils/Reflection/Property.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ namespace SR_UTILS_NS::Reflection {
2424

2525
EditorPropertyParams& SetNoHeader() noexcept { m_noHeader = true; return *this; }
2626
EditorPropertyParams& SetNotNull() noexcept { m_notNull = true; return *this; }
27+
EditorPropertyParams& SetDebugOnly() noexcept { m_debugOnly = true; return *this; }
2728
EditorPropertyParams& SetDisplayName(const StringAtom& displayName) noexcept { m_displayName = displayName; return *this; }
2829
EditorPropertyParams& SetTooltip(const StringAtom& tooltip) noexcept { m_tooltip = tooltip; return *this; }
2930
EditorPropertyParams& SetInspector(const StringAtom& inspector) noexcept { m_inspector = inspector; return *this; }
@@ -48,6 +49,7 @@ namespace SR_UTILS_NS::Reflection {
4849
SR_NODISCARD StringAtom GetInspector() const noexcept { return m_inspector; }
4950
SR_NODISCARD bool IsNoHeader() const noexcept { return m_noHeader; }
5051
SR_NODISCARD bool IsNotNull() const noexcept { return m_notNull; }
52+
SR_NODISCARD bool IsDebugOnly() const noexcept { return m_debugOnly; }
5153

5254
SR_NODISCARD std::string_view GetCustomArg(const StringAtom& name) const noexcept {
5355
for (auto&& arg : m_customArgs) {
@@ -72,6 +74,7 @@ namespace SR_UTILS_NS::Reflection {
7274
float_t m_dragSpeed = 1.f;
7375
bool m_noHeader = false;
7476
bool m_notNull = false;
77+
bool m_debugOnly = false;
7578
SR_HTYPES_NS::ArrayVector<CustomArg, 16> m_customArgs;
7679

7780
};

inc/Utils/Types/RawMesh.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ namespace SR_HTYPES_NS {
7070
SR_NODISCARD uint32_t GetBoneIndex(SR_UTILS_NS::StringAtom name) const;
7171
SR_NODISCARD const std::vector<SR_MATH_NS::Matrix4x4>& GetBoneOffsets() const;
7272
SR_NODISCARD std::string_view GetRootBoneName() const;
73+
SR_NODISCARD bool HasBones(uint32_t id) const;
7374

7475
SR_NODISCARD uint32_t GetVerticesCount(uint32_t id) const;
7576
SR_NODISCARD uint32_t GetIndicesCount(uint32_t id) const;

src/Utils/Types/RawMesh.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,10 @@ namespace SR_HTYPES_NS {
804804
#endif
805805
}
806806

807+
bool RawMesh::HasBones(uint32_t id) const {
808+
return !GetBones(id).empty();
809+
}
810+
807811
bool RawMeshParams::operator==(const RawMeshParams &rhs) const {
808812
return animation == rhs.animation && convexHull == rhs.convexHull;
809813
}

0 commit comments

Comments
 (0)