You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Use _request_gizmo from SceneStringNames
This commit is contained in:
@@ -47,6 +47,7 @@
|
||||
#include "scene/resources/skeleton_profile.h"
|
||||
#include "scene/resources/sphere_shape_3d.h"
|
||||
#include "scene/resources/surface_tool.h"
|
||||
#include "scene/scene_string_names.h"
|
||||
|
||||
void BoneTransformEditor::create_editors() {
|
||||
const Color section_color = get_theme_color(SNAME("prop_subsection"), SNAME("Editor"));
|
||||
@@ -399,8 +400,8 @@ void Skeleton3DEditor::create_physical_skeleton() {
|
||||
ur->add_do_method(physical_bone, "set_joint_type", PhysicalBone3D::JOINT_TYPE_PIN);
|
||||
}
|
||||
|
||||
ur->add_do_method(Node3DEditor::get_singleton(), "_request_gizmo", physical_bone);
|
||||
ur->add_do_method(Node3DEditor::get_singleton(), "_request_gizmo", collision_shape);
|
||||
ur->add_do_method(Node3DEditor::get_singleton(), SceneStringNames::get_singleton()->_request_gizmo, physical_bone);
|
||||
ur->add_do_method(Node3DEditor::get_singleton(), SceneStringNames::get_singleton()->_request_gizmo, collision_shape);
|
||||
|
||||
ur->add_do_reference(physical_bone);
|
||||
ur->add_undo_method(skeleton, "remove_child", physical_bone);
|
||||
|
||||
Reference in New Issue
Block a user