mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
Rename EditorNode3DGizmoPlugin "get_name" to "get_gizmo_name"
This commit is contained in:
parent
5dddf4377a
commit
5ef62e546f
@ -792,7 +792,7 @@ bool Light3DGizmoPlugin::has_gizmo(Node3D *p_spatial) {
|
||||
return Object::cast_to<Light3D>(p_spatial) != nullptr;
|
||||
}
|
||||
|
||||
String Light3DGizmoPlugin::get_name() const {
|
||||
String Light3DGizmoPlugin::get_gizmo_name() const {
|
||||
return "Light3D";
|
||||
}
|
||||
|
||||
@ -1061,7 +1061,7 @@ bool AudioStreamPlayer3DGizmoPlugin::has_gizmo(Node3D *p_spatial) {
|
||||
return Object::cast_to<AudioStreamPlayer3D>(p_spatial) != nullptr;
|
||||
}
|
||||
|
||||
String AudioStreamPlayer3DGizmoPlugin::get_name() const {
|
||||
String AudioStreamPlayer3DGizmoPlugin::get_gizmo_name() const {
|
||||
return "AudioStreamPlayer3D";
|
||||
}
|
||||
|
||||
@ -1195,7 +1195,7 @@ bool Camera3DGizmoPlugin::has_gizmo(Node3D *p_spatial) {
|
||||
return Object::cast_to<Camera3D>(p_spatial) != nullptr;
|
||||
}
|
||||
|
||||
String Camera3DGizmoPlugin::get_name() const {
|
||||
String Camera3DGizmoPlugin::get_gizmo_name() const {
|
||||
return "Camera3D";
|
||||
}
|
||||
|
||||
@ -1432,7 +1432,7 @@ bool MeshInstance3DGizmoPlugin::has_gizmo(Node3D *p_spatial) {
|
||||
return Object::cast_to<MeshInstance3D>(p_spatial) != nullptr && Object::cast_to<SoftBody3D>(p_spatial) == nullptr;
|
||||
}
|
||||
|
||||
String MeshInstance3DGizmoPlugin::get_name() const {
|
||||
String MeshInstance3DGizmoPlugin::get_gizmo_name() const {
|
||||
return "MeshInstance3D";
|
||||
}
|
||||
|
||||
@ -1469,7 +1469,7 @@ bool Sprite3DGizmoPlugin::has_gizmo(Node3D *p_spatial) {
|
||||
return Object::cast_to<Sprite3D>(p_spatial) != nullptr;
|
||||
}
|
||||
|
||||
String Sprite3DGizmoPlugin::get_name() const {
|
||||
String Sprite3DGizmoPlugin::get_gizmo_name() const {
|
||||
return "Sprite3D";
|
||||
}
|
||||
|
||||
@ -1531,7 +1531,7 @@ bool Position3DGizmoPlugin::has_gizmo(Node3D *p_spatial) {
|
||||
return Object::cast_to<Position3D>(p_spatial) != nullptr;
|
||||
}
|
||||
|
||||
String Position3DGizmoPlugin::get_name() const {
|
||||
String Position3DGizmoPlugin::get_gizmo_name() const {
|
||||
return "Position3D";
|
||||
}
|
||||
|
||||
@ -1556,7 +1556,7 @@ bool Skeleton3DGizmoPlugin::has_gizmo(Node3D *p_spatial) {
|
||||
return Object::cast_to<Skeleton3D>(p_spatial) != nullptr;
|
||||
}
|
||||
|
||||
String Skeleton3DGizmoPlugin::get_name() const {
|
||||
String Skeleton3DGizmoPlugin::get_gizmo_name() const {
|
||||
return "Skeleton3D";
|
||||
}
|
||||
|
||||
@ -1758,7 +1758,7 @@ bool PhysicalBone3DGizmoPlugin::has_gizmo(Node3D *p_spatial) {
|
||||
return Object::cast_to<PhysicalBone3D>(p_spatial) != nullptr;
|
||||
}
|
||||
|
||||
String PhysicalBone3DGizmoPlugin::get_name() const {
|
||||
String PhysicalBone3DGizmoPlugin::get_gizmo_name() const {
|
||||
return "PhysicalBone3D";
|
||||
}
|
||||
|
||||
@ -1895,7 +1895,7 @@ bool RayCast3DGizmoPlugin::has_gizmo(Node3D *p_spatial) {
|
||||
return Object::cast_to<RayCast3D>(p_spatial) != nullptr;
|
||||
}
|
||||
|
||||
String RayCast3DGizmoPlugin::get_name() const {
|
||||
String RayCast3DGizmoPlugin::get_gizmo_name() const {
|
||||
return "RayCast3D";
|
||||
}
|
||||
|
||||
@ -1947,7 +1947,7 @@ bool SpringArm3DGizmoPlugin::has_gizmo(Node3D *p_spatial) {
|
||||
return Object::cast_to<SpringArm3D>(p_spatial) != nullptr;
|
||||
}
|
||||
|
||||
String SpringArm3DGizmoPlugin::get_name() const {
|
||||
String SpringArm3DGizmoPlugin::get_gizmo_name() const {
|
||||
return "SpringArm3D";
|
||||
}
|
||||
|
||||
@ -1966,7 +1966,7 @@ bool VehicleWheel3DGizmoPlugin::has_gizmo(Node3D *p_spatial) {
|
||||
return Object::cast_to<VehicleWheel3D>(p_spatial) != nullptr;
|
||||
}
|
||||
|
||||
String VehicleWheel3DGizmoPlugin::get_name() const {
|
||||
String VehicleWheel3DGizmoPlugin::get_gizmo_name() const {
|
||||
return "VehicleWheel3D";
|
||||
}
|
||||
|
||||
@ -2038,7 +2038,7 @@ bool SoftBody3DGizmoPlugin::has_gizmo(Node3D *p_spatial) {
|
||||
return Object::cast_to<SoftBody3D>(p_spatial) != nullptr;
|
||||
}
|
||||
|
||||
String SoftBody3DGizmoPlugin::get_name() const {
|
||||
String SoftBody3DGizmoPlugin::get_gizmo_name() const {
|
||||
return "SoftBody3D";
|
||||
}
|
||||
|
||||
@ -2114,7 +2114,7 @@ bool VisibilityNotifier3DGizmoPlugin::has_gizmo(Node3D *p_spatial) {
|
||||
return Object::cast_to<VisibilityNotifier3D>(p_spatial) != nullptr;
|
||||
}
|
||||
|
||||
String VisibilityNotifier3DGizmoPlugin::get_name() const {
|
||||
String VisibilityNotifier3DGizmoPlugin::get_gizmo_name() const {
|
||||
return "VisibilityNotifier3D";
|
||||
}
|
||||
|
||||
@ -2270,7 +2270,7 @@ bool CPUParticles3DGizmoPlugin::has_gizmo(Node3D *p_spatial) {
|
||||
return Object::cast_to<CPUParticles3D>(p_spatial) != nullptr;
|
||||
}
|
||||
|
||||
String CPUParticles3DGizmoPlugin::get_name() const {
|
||||
String CPUParticles3DGizmoPlugin::get_gizmo_name() const {
|
||||
return "CPUParticles3D";
|
||||
}
|
||||
|
||||
@ -2302,7 +2302,7 @@ bool GPUParticles3DGizmoPlugin::has_gizmo(Node3D *p_spatial) {
|
||||
return Object::cast_to<GPUParticles3D>(p_spatial) != nullptr;
|
||||
}
|
||||
|
||||
String GPUParticles3DGizmoPlugin::get_name() const {
|
||||
String GPUParticles3DGizmoPlugin::get_gizmo_name() const {
|
||||
return "GPUParticles3D";
|
||||
}
|
||||
|
||||
@ -2469,7 +2469,7 @@ bool GPUParticlesCollision3DGizmoPlugin::has_gizmo(Node3D *p_spatial) {
|
||||
return (Object::cast_to<GPUParticlesCollision3D>(p_spatial) != nullptr) || (Object::cast_to<GPUParticlesAttractor3D>(p_spatial) != nullptr);
|
||||
}
|
||||
|
||||
String GPUParticlesCollision3DGizmoPlugin::get_name() const {
|
||||
String GPUParticlesCollision3DGizmoPlugin::get_gizmo_name() const {
|
||||
return "GPUParticlesCollision3D";
|
||||
}
|
||||
|
||||
@ -2733,7 +2733,7 @@ bool ReflectionProbeGizmoPlugin::has_gizmo(Node3D *p_spatial) {
|
||||
return Object::cast_to<ReflectionProbe>(p_spatial) != nullptr;
|
||||
}
|
||||
|
||||
String ReflectionProbeGizmoPlugin::get_name() const {
|
||||
String ReflectionProbeGizmoPlugin::get_gizmo_name() const {
|
||||
return "ReflectionProbe";
|
||||
}
|
||||
|
||||
@ -2918,7 +2918,7 @@ bool DecalGizmoPlugin::has_gizmo(Node3D *p_spatial) {
|
||||
return Object::cast_to<Decal>(p_spatial) != nullptr;
|
||||
}
|
||||
|
||||
String DecalGizmoPlugin::get_name() const {
|
||||
String DecalGizmoPlugin::get_gizmo_name() const {
|
||||
return "Decal";
|
||||
}
|
||||
|
||||
@ -3059,7 +3059,7 @@ bool GIProbeGizmoPlugin::has_gizmo(Node3D *p_spatial) {
|
||||
return Object::cast_to<GIProbe>(p_spatial) != nullptr;
|
||||
}
|
||||
|
||||
String GIProbeGizmoPlugin::get_name() const {
|
||||
String GIProbeGizmoPlugin::get_gizmo_name() const {
|
||||
return "GIProbe";
|
||||
}
|
||||
|
||||
@ -3254,7 +3254,7 @@ bool BakedLightmapGizmoPlugin::has_gizmo(Node3D *p_spatial) {
|
||||
return Object::cast_to<BakedLightmap>(p_spatial) != nullptr;
|
||||
}
|
||||
|
||||
String BakedLightmapGizmoPlugin::get_name() const {
|
||||
String BakedLightmapGizmoPlugin::get_gizmo_name() const {
|
||||
return "BakedLightmap";
|
||||
}
|
||||
|
||||
@ -3436,7 +3436,7 @@ bool LightmapProbeGizmoPlugin::has_gizmo(Node3D *p_spatial) {
|
||||
return Object::cast_to<LightmapProbe>(p_spatial) != nullptr;
|
||||
}
|
||||
|
||||
String LightmapProbeGizmoPlugin::get_name() const {
|
||||
String LightmapProbeGizmoPlugin::get_gizmo_name() const {
|
||||
return "LightmapProbe";
|
||||
}
|
||||
|
||||
@ -3520,7 +3520,7 @@ bool CollisionShape3DGizmoPlugin::has_gizmo(Node3D *p_spatial) {
|
||||
return Object::cast_to<CollisionShape3D>(p_spatial) != nullptr;
|
||||
}
|
||||
|
||||
String CollisionShape3DGizmoPlugin::get_name() const {
|
||||
String CollisionShape3DGizmoPlugin::get_gizmo_name() const {
|
||||
return "CollisionShape3D";
|
||||
}
|
||||
|
||||
@ -4120,7 +4120,7 @@ bool CollisionPolygon3DGizmoPlugin::has_gizmo(Node3D *p_spatial) {
|
||||
return Object::cast_to<CollisionPolygon3D>(p_spatial) != nullptr;
|
||||
}
|
||||
|
||||
String CollisionPolygon3DGizmoPlugin::get_name() const {
|
||||
String CollisionPolygon3DGizmoPlugin::get_gizmo_name() const {
|
||||
return "CollisionPolygon3D";
|
||||
}
|
||||
|
||||
@ -4167,7 +4167,7 @@ bool NavigationRegion3DGizmoPlugin::has_gizmo(Node3D *p_spatial) {
|
||||
return Object::cast_to<NavigationRegion3D>(p_spatial) != nullptr;
|
||||
}
|
||||
|
||||
String NavigationRegion3DGizmoPlugin::get_name() const {
|
||||
String NavigationRegion3DGizmoPlugin::get_gizmo_name() const {
|
||||
return "NavigationRegion3D";
|
||||
}
|
||||
|
||||
@ -4532,7 +4532,7 @@ bool Joint3DGizmoPlugin::has_gizmo(Node3D *p_spatial) {
|
||||
return Object::cast_to<Joint3D>(p_spatial) != nullptr;
|
||||
}
|
||||
|
||||
String Joint3DGizmoPlugin::get_name() const {
|
||||
String Joint3DGizmoPlugin::get_gizmo_name() const {
|
||||
return "Joint3D";
|
||||
}
|
||||
|
||||
|
@ -41,7 +41,7 @@ class Light3DGizmoPlugin : public EditorNode3DGizmoPlugin {
|
||||
|
||||
public:
|
||||
bool has_gizmo(Node3D *p_spatial) override;
|
||||
String get_name() const override;
|
||||
String get_gizmo_name() const override;
|
||||
int get_priority() const override;
|
||||
|
||||
String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_idx) const override;
|
||||
@ -58,7 +58,7 @@ class AudioStreamPlayer3DGizmoPlugin : public EditorNode3DGizmoPlugin {
|
||||
|
||||
public:
|
||||
bool has_gizmo(Node3D *p_spatial) override;
|
||||
String get_name() const override;
|
||||
String get_gizmo_name() const override;
|
||||
int get_priority() const override;
|
||||
|
||||
String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_idx) const override;
|
||||
@ -75,7 +75,7 @@ class Camera3DGizmoPlugin : public EditorNode3DGizmoPlugin {
|
||||
|
||||
public:
|
||||
bool has_gizmo(Node3D *p_spatial) override;
|
||||
String get_name() const override;
|
||||
String get_gizmo_name() const override;
|
||||
int get_priority() const override;
|
||||
|
||||
String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_idx) const override;
|
||||
@ -92,7 +92,7 @@ class MeshInstance3DGizmoPlugin : public EditorNode3DGizmoPlugin {
|
||||
|
||||
public:
|
||||
bool has_gizmo(Node3D *p_spatial) override;
|
||||
String get_name() const override;
|
||||
String get_gizmo_name() const override;
|
||||
int get_priority() const override;
|
||||
bool can_be_hidden() const override;
|
||||
void redraw(EditorNode3DGizmo *p_gizmo) override;
|
||||
@ -105,7 +105,7 @@ class Sprite3DGizmoPlugin : public EditorNode3DGizmoPlugin {
|
||||
|
||||
public:
|
||||
bool has_gizmo(Node3D *p_spatial) override;
|
||||
String get_name() const override;
|
||||
String get_gizmo_name() const override;
|
||||
int get_priority() const override;
|
||||
bool can_be_hidden() const override;
|
||||
void redraw(EditorNode3DGizmo *p_gizmo) override;
|
||||
@ -121,7 +121,7 @@ class Position3DGizmoPlugin : public EditorNode3DGizmoPlugin {
|
||||
|
||||
public:
|
||||
bool has_gizmo(Node3D *p_spatial) override;
|
||||
String get_name() const override;
|
||||
String get_gizmo_name() const override;
|
||||
int get_priority() const override;
|
||||
void redraw(EditorNode3DGizmo *p_gizmo) override;
|
||||
|
||||
@ -133,7 +133,7 @@ class Skeleton3DGizmoPlugin : public EditorNode3DGizmoPlugin {
|
||||
|
||||
public:
|
||||
bool has_gizmo(Node3D *p_spatial) override;
|
||||
String get_name() const override;
|
||||
String get_gizmo_name() const override;
|
||||
int get_priority() const override;
|
||||
void redraw(EditorNode3DGizmo *p_gizmo) override;
|
||||
|
||||
@ -145,7 +145,7 @@ class PhysicalBone3DGizmoPlugin : public EditorNode3DGizmoPlugin {
|
||||
|
||||
public:
|
||||
bool has_gizmo(Node3D *p_spatial) override;
|
||||
String get_name() const override;
|
||||
String get_gizmo_name() const override;
|
||||
int get_priority() const override;
|
||||
void redraw(EditorNode3DGizmo *p_gizmo) override;
|
||||
|
||||
@ -157,7 +157,7 @@ class RayCast3DGizmoPlugin : public EditorNode3DGizmoPlugin {
|
||||
|
||||
public:
|
||||
bool has_gizmo(Node3D *p_spatial) override;
|
||||
String get_name() const override;
|
||||
String get_gizmo_name() const override;
|
||||
int get_priority() const override;
|
||||
void redraw(EditorNode3DGizmo *p_gizmo) override;
|
||||
|
||||
@ -169,7 +169,7 @@ class SpringArm3DGizmoPlugin : public EditorNode3DGizmoPlugin {
|
||||
|
||||
public:
|
||||
bool has_gizmo(Node3D *p_spatial) override;
|
||||
String get_name() const override;
|
||||
String get_gizmo_name() const override;
|
||||
int get_priority() const override;
|
||||
void redraw(EditorNode3DGizmo *p_gizmo) override;
|
||||
|
||||
@ -181,7 +181,7 @@ class VehicleWheel3DGizmoPlugin : public EditorNode3DGizmoPlugin {
|
||||
|
||||
public:
|
||||
bool has_gizmo(Node3D *p_spatial) override;
|
||||
String get_name() const override;
|
||||
String get_gizmo_name() const override;
|
||||
int get_priority() const override;
|
||||
void redraw(EditorNode3DGizmo *p_gizmo) override;
|
||||
|
||||
@ -193,7 +193,7 @@ class SoftBody3DGizmoPlugin : public EditorNode3DGizmoPlugin {
|
||||
|
||||
public:
|
||||
bool has_gizmo(Node3D *p_spatial) override;
|
||||
String get_name() const override;
|
||||
String get_gizmo_name() const override;
|
||||
int get_priority() const override;
|
||||
bool is_selectable_when_hidden() const override;
|
||||
void redraw(EditorNode3DGizmo *p_gizmo) override;
|
||||
@ -211,7 +211,7 @@ class VisibilityNotifier3DGizmoPlugin : public EditorNode3DGizmoPlugin {
|
||||
|
||||
public:
|
||||
bool has_gizmo(Node3D *p_spatial) override;
|
||||
String get_name() const override;
|
||||
String get_gizmo_name() const override;
|
||||
int get_priority() const override;
|
||||
void redraw(EditorNode3DGizmo *p_gizmo) override;
|
||||
|
||||
@ -228,7 +228,7 @@ class CPUParticles3DGizmoPlugin : public EditorNode3DGizmoPlugin {
|
||||
|
||||
public:
|
||||
bool has_gizmo(Node3D *p_spatial) override;
|
||||
String get_name() const override;
|
||||
String get_gizmo_name() const override;
|
||||
int get_priority() const override;
|
||||
bool is_selectable_when_hidden() const override;
|
||||
void redraw(EditorNode3DGizmo *p_gizmo) override;
|
||||
@ -240,7 +240,7 @@ class GPUParticles3DGizmoPlugin : public EditorNode3DGizmoPlugin {
|
||||
|
||||
public:
|
||||
bool has_gizmo(Node3D *p_spatial) override;
|
||||
String get_name() const override;
|
||||
String get_gizmo_name() const override;
|
||||
int get_priority() const override;
|
||||
bool is_selectable_when_hidden() const override;
|
||||
void redraw(EditorNode3DGizmo *p_gizmo) override;
|
||||
@ -258,7 +258,7 @@ class GPUParticlesCollision3DGizmoPlugin : public EditorNode3DGizmoPlugin {
|
||||
|
||||
public:
|
||||
bool has_gizmo(Node3D *p_spatial) override;
|
||||
String get_name() const override;
|
||||
String get_gizmo_name() const override;
|
||||
int get_priority() const override;
|
||||
void redraw(EditorNode3DGizmo *p_gizmo) override;
|
||||
|
||||
@ -275,7 +275,7 @@ class ReflectionProbeGizmoPlugin : public EditorNode3DGizmoPlugin {
|
||||
|
||||
public:
|
||||
bool has_gizmo(Node3D *p_spatial) override;
|
||||
String get_name() const override;
|
||||
String get_gizmo_name() const override;
|
||||
int get_priority() const override;
|
||||
void redraw(EditorNode3DGizmo *p_gizmo) override;
|
||||
|
||||
@ -292,7 +292,7 @@ class DecalGizmoPlugin : public EditorNode3DGizmoPlugin {
|
||||
|
||||
public:
|
||||
bool has_gizmo(Node3D *p_spatial) override;
|
||||
String get_name() const override;
|
||||
String get_gizmo_name() const override;
|
||||
int get_priority() const override;
|
||||
void redraw(EditorNode3DGizmo *p_gizmo) override;
|
||||
|
||||
@ -309,7 +309,7 @@ class GIProbeGizmoPlugin : public EditorNode3DGizmoPlugin {
|
||||
|
||||
public:
|
||||
bool has_gizmo(Node3D *p_spatial) override;
|
||||
String get_name() const override;
|
||||
String get_gizmo_name() const override;
|
||||
int get_priority() const override;
|
||||
void redraw(EditorNode3DGizmo *p_gizmo) override;
|
||||
|
||||
@ -326,7 +326,7 @@ class BakedLightmapGizmoPlugin : public EditorNode3DGizmoPlugin {
|
||||
|
||||
public:
|
||||
bool has_gizmo(Node3D *p_spatial) override;
|
||||
String get_name() const override;
|
||||
String get_gizmo_name() const override;
|
||||
int get_priority() const override;
|
||||
void redraw(EditorNode3DGizmo *p_gizmo) override;
|
||||
|
||||
@ -343,7 +343,7 @@ class LightmapProbeGizmoPlugin : public EditorNode3DGizmoPlugin {
|
||||
|
||||
public:
|
||||
bool has_gizmo(Node3D *p_spatial) override;
|
||||
String get_name() const override;
|
||||
String get_gizmo_name() const override;
|
||||
int get_priority() const override;
|
||||
void redraw(EditorNode3DGizmo *p_gizmo) override;
|
||||
|
||||
@ -360,7 +360,7 @@ class CollisionShape3DGizmoPlugin : public EditorNode3DGizmoPlugin {
|
||||
|
||||
public:
|
||||
bool has_gizmo(Node3D *p_spatial) override;
|
||||
String get_name() const override;
|
||||
String get_gizmo_name() const override;
|
||||
int get_priority() const override;
|
||||
void redraw(EditorNode3DGizmo *p_gizmo) override;
|
||||
|
||||
@ -377,7 +377,7 @@ class CollisionPolygon3DGizmoPlugin : public EditorNode3DGizmoPlugin {
|
||||
|
||||
public:
|
||||
bool has_gizmo(Node3D *p_spatial) override;
|
||||
String get_name() const override;
|
||||
String get_gizmo_name() const override;
|
||||
int get_priority() const override;
|
||||
void redraw(EditorNode3DGizmo *p_gizmo) override;
|
||||
CollisionPolygon3DGizmoPlugin();
|
||||
@ -395,7 +395,7 @@ class NavigationRegion3DGizmoPlugin : public EditorNode3DGizmoPlugin {
|
||||
|
||||
public:
|
||||
bool has_gizmo(Node3D *p_spatial) override;
|
||||
String get_name() const override;
|
||||
String get_gizmo_name() const override;
|
||||
int get_priority() const override;
|
||||
void redraw(EditorNode3DGizmo *p_gizmo) override;
|
||||
|
||||
@ -427,7 +427,7 @@ class Joint3DGizmoPlugin : public EditorNode3DGizmoPlugin {
|
||||
|
||||
public:
|
||||
bool has_gizmo(Node3D *p_spatial) override;
|
||||
String get_name() const override;
|
||||
String get_gizmo_name() const override;
|
||||
int get_priority() const override;
|
||||
void redraw(EditorNode3DGizmo *p_gizmo) override;
|
||||
|
||||
|
@ -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();
|
||||
};
|
||||
|
@ -319,7 +319,7 @@ bool CSGShape3DGizmoPlugin::has_gizmo(Node3D *p_spatial) {
|
||||
return Object::cast_to<CSGSphere3D>(p_spatial) || Object::cast_to<CSGBox3D>(p_spatial) || Object::cast_to<CSGCylinder3D>(p_spatial) || Object::cast_to<CSGTorus3D>(p_spatial) || Object::cast_to<CSGMesh3D>(p_spatial) || Object::cast_to<CSGPolygon3D>(p_spatial);
|
||||
}
|
||||
|
||||
String CSGShape3DGizmoPlugin::get_name() const {
|
||||
String CSGShape3DGizmoPlugin::get_gizmo_name() const {
|
||||
return "CSGShape3D";
|
||||
}
|
||||
|
||||
|
@ -40,7 +40,7 @@ class CSGShape3DGizmoPlugin : public EditorNode3DGizmoPlugin {
|
||||
|
||||
public:
|
||||
bool has_gizmo(Node3D *p_spatial) override;
|
||||
String get_name() const override;
|
||||
String get_gizmo_name() const override;
|
||||
int get_priority() const override;
|
||||
bool is_selectable_when_hidden() const override;
|
||||
void redraw(EditorNode3DGizmo *p_gizmo) override;
|
||||
|
Loading…
Reference in New Issue
Block a user