You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
Rename EditorNode3DGizmoPlugin "get_name" to "get_gizmo_name"
This commit is contained in:
@@ -6802,9 +6802,9 @@ Ref<StandardMaterial3D> EditorNode3DGizmoPlugin::get_material(const String &p_na
|
||||
return mat;
|
||||
}
|
||||
|
||||
String EditorNode3DGizmoPlugin::get_name() const {
|
||||
if (get_script_instance() && get_script_instance()->has_method("get_name")) {
|
||||
return get_script_instance()->call("get_name");
|
||||
String EditorNode3DGizmoPlugin::get_gizmo_name() const {
|
||||
if (get_script_instance() && get_script_instance()->has_method("get_gizmo_name")) {
|
||||
return get_script_instance()->call("get_gizmo_name");
|
||||
}
|
||||
return TTR("Nameless gizmo");
|
||||
}
|
||||
|
||||
@@ -868,7 +868,7 @@ public:
|
||||
|
||||
Ref<StandardMaterial3D> get_material(const String &p_name, const Ref<EditorNode3DGizmo> &p_gizmo = Ref<EditorNode3DGizmo>());
|
||||
|
||||
virtual String get_name() const;
|
||||
virtual String get_gizmo_name() const;
|
||||
virtual int get_priority() const;
|
||||
virtual bool can_be_hidden() const;
|
||||
virtual bool is_selectable_when_hidden() const;
|
||||
|
||||
@@ -630,7 +630,7 @@ Ref<EditorNode3DGizmo> Path3DGizmoPlugin::create_gizmo(Node3D *p_spatial) {
|
||||
return ref;
|
||||
}
|
||||
|
||||
String Path3DGizmoPlugin::get_name() const {
|
||||
String Path3DGizmoPlugin::get_gizmo_name() const {
|
||||
return "Path3D";
|
||||
}
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ protected:
|
||||
Ref<EditorNode3DGizmo> create_gizmo(Node3D *p_spatial) override;
|
||||
|
||||
public:
|
||||
String get_name() const override;
|
||||
String get_gizmo_name() const override;
|
||||
int get_priority() const override;
|
||||
Path3DGizmoPlugin();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user