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
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#include "physical_bone_3d.h"
|
||||
|
||||
#include "scene/3d/physical_bone_simulator_3d.h"
|
||||
#include "scene/3d/physics/physical_bone_simulator_3d.h"
|
||||
#ifndef DISABLE_DEPRECATED
|
||||
#include "scene/3d/skeleton_3d.h"
|
||||
#endif //_DISABLE_DEPRECATED
|
||||
|
|
@ -752,8 +752,9 @@ void PhysicalBone3D::_get_property_list(List<PropertyInfo> *p_list) const {
|
|||
|
||||
void PhysicalBone3D::_notification(int p_what) {
|
||||
switch (p_what) {
|
||||
case NOTIFICATION_ENTER_TREE:
|
||||
case NOTIFICATION_PARENTED:
|
||||
// We need to wait until the bone has finished being added to the tree
|
||||
// or none of the global transform calls will work correctly.
|
||||
case NOTIFICATION_POST_ENTER_TREE:
|
||||
_update_simulator_path();
|
||||
update_bone_id();
|
||||
reset_to_rest_position();
|
||||
|
|
@ -763,6 +764,9 @@ void PhysicalBone3D::_notification(int p_what) {
|
|||
}
|
||||
break;
|
||||
|
||||
// If we're detached from the skeleton we need to
|
||||
// clear our references to it.
|
||||
case NOTIFICATION_UNPARENTED:
|
||||
case NOTIFICATION_EXIT_TREE: {
|
||||
PhysicalBoneSimulator3D *simulator = get_simulator();
|
||||
if (simulator) {
|
||||
|
|
@ -1052,7 +1056,7 @@ void PhysicalBone3D::_update_simulator_path() {
|
|||
}
|
||||
|
||||
PhysicalBoneSimulator3D *PhysicalBone3D::get_simulator() const {
|
||||
return Object::cast_to<PhysicalBoneSimulator3D>(ObjectDB::get_instance(simulator_id));
|
||||
return ObjectDB::get_instance<PhysicalBoneSimulator3D>(simulator_id);
|
||||
}
|
||||
|
||||
Skeleton3D *PhysicalBone3D::get_skeleton() const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue