feat: modules moved and engine moved to submodule
This commit is contained in:
parent
dfb5e645cd
commit
c33d2130cc
5136 changed files with 225275 additions and 64485 deletions
|
|
@ -37,7 +37,7 @@ void BoneAttachment3D::_validate_property(PropertyInfo &p_property) const {
|
|||
const Skeleton3D *parent = nullptr;
|
||||
if (use_external_skeleton) {
|
||||
if (external_skeleton_node_cache.is_valid()) {
|
||||
parent = Object::cast_to<Skeleton3D>(ObjectDB::get_instance(external_skeleton_node_cache));
|
||||
parent = ObjectDB::get_instance<Skeleton3D>(external_skeleton_node_cache);
|
||||
}
|
||||
} else {
|
||||
parent = Object::cast_to<Skeleton3D>(get_parent());
|
||||
|
|
@ -151,11 +151,11 @@ void BoneAttachment3D::_check_bind() {
|
|||
Skeleton3D *BoneAttachment3D::get_skeleton() {
|
||||
if (use_external_skeleton) {
|
||||
if (external_skeleton_node_cache.is_valid()) {
|
||||
return Object::cast_to<Skeleton3D>(ObjectDB::get_instance(external_skeleton_node_cache));
|
||||
return ObjectDB::get_instance<Skeleton3D>(external_skeleton_node_cache);
|
||||
} else {
|
||||
_update_external_skeleton_cache();
|
||||
if (external_skeleton_node_cache.is_valid()) {
|
||||
return Object::cast_to<Skeleton3D>(ObjectDB::get_instance(external_skeleton_node_cache));
|
||||
return ObjectDB::get_instance<Skeleton3D>(external_skeleton_node_cache);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
@ -341,7 +341,7 @@ void BoneAttachment3D::notify_skeleton_bones_renamed(Node *p_base_scene, Skeleto
|
|||
const Skeleton3D *parent = nullptr;
|
||||
if (use_external_skeleton) {
|
||||
if (external_skeleton_node_cache.is_valid()) {
|
||||
parent = Object::cast_to<Skeleton3D>(ObjectDB::get_instance(external_skeleton_node_cache));
|
||||
parent = ObjectDB::get_instance<Skeleton3D>(external_skeleton_node_cache);
|
||||
}
|
||||
} else {
|
||||
parent = Object::cast_to<Skeleton3D>(get_parent());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue