summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-01-05 10:48:52 +0100
committerGitHub <noreply@github.com>2022-01-05 10:48:52 +0100
commit4b6d2fd163a1325cc2bc2b894ddd67162c4a2320 (patch)
tree971f214eee43dbda48391cdd5e63744a3ff72776
parentc7bbb3a6218f53acb1f3ab21643ce37d60f1e481 (diff)
parentc559bef1c7f301c3c79b8b9197a867145ef9ecba (diff)
Merge pull request #56212 from laws65/skin-export-crash-fix
-rw-r--r--scene/resources/skin.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/scene/resources/skin.h b/scene/resources/skin.h
index 906a2783b4..6ade9dbed1 100644
--- a/scene/resources/skin.h
+++ b/scene/resources/skin.h
@@ -67,23 +67,17 @@ public:
void set_bind_name(int p_index, const StringName &p_name);
inline int get_bind_bone(int p_index) const {
-#ifdef DEBUG_ENABLED
ERR_FAIL_INDEX_V(p_index, bind_count, -1);
-#endif
return binds_ptr[p_index].bone;
}
inline StringName get_bind_name(int p_index) const {
-#ifdef DEBUG_ENABLED
ERR_FAIL_INDEX_V(p_index, bind_count, StringName());
-#endif
return binds_ptr[p_index].name;
}
inline Transform3D get_bind_pose(int p_index) const {
-#ifdef DEBUG_ENABLED
ERR_FAIL_INDEX_V(p_index, bind_count, Transform3D());
-#endif
return binds_ptr[p_index].pose;
}