Merge pull request #49284 from Calinou/add-listener3d-gizmo-icon
Display a editor gizmo icon for Listener3D
This commit is contained in:
@@ -254,10 +254,6 @@ bool Camera3D::is_current() const {
|
||||
}
|
||||
}
|
||||
|
||||
bool Camera3D::_can_gizmo_scale() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
Vector3 Camera3D::project_ray_normal(const Point2 &p_pos) const {
|
||||
Vector3 ray = project_local_ray_normal(p_pos);
|
||||
return get_camera_transform().basis.xform(ray).normalized();
|
||||
|
||||
@@ -79,8 +79,6 @@ private:
|
||||
Ref<Environment> environment;
|
||||
Ref<CameraEffects> effects;
|
||||
|
||||
virtual bool _can_gizmo_scale() const;
|
||||
|
||||
// void _camera_make_current(Node *p_camera);
|
||||
friend class Viewport;
|
||||
void _update_audio_listener_state();
|
||||
|
||||
@@ -30,10 +30,6 @@
|
||||
|
||||
#include "light_3d.h"
|
||||
|
||||
bool Light3D::_can_gizmo_scale() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
void Light3D::set_param(Param p_param, real_t p_value) {
|
||||
ERR_FAIL_INDEX(p_param, PARAM_MAX);
|
||||
param[p_param] = p_value;
|
||||
|
||||
@@ -86,8 +86,6 @@ private:
|
||||
protected:
|
||||
RID light;
|
||||
|
||||
virtual bool _can_gizmo_scale() const;
|
||||
|
||||
static void _bind_methods();
|
||||
void _notification(int p_what);
|
||||
virtual void _validate_property(PropertyInfo &property) const override;
|
||||
|
||||
@@ -141,16 +141,6 @@ bool Listener3D::is_current() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Listener3D::_can_gizmo_scale() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
RES Listener3D::_get_gizmo_geometry() const {
|
||||
Ref<ArrayMesh> mesh = memnew(ArrayMesh);
|
||||
|
||||
return mesh;
|
||||
}
|
||||
|
||||
void Listener3D::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("make_current"), &Listener3D::make_current);
|
||||
ClassDB::bind_method(D_METHOD("clear_current"), &Listener3D::clear_current);
|
||||
@@ -160,7 +150,6 @@ void Listener3D::_bind_methods() {
|
||||
|
||||
Listener3D::Listener3D() {
|
||||
set_notify_transform(true);
|
||||
//active=false;
|
||||
}
|
||||
|
||||
Listener3D::~Listener3D() {
|
||||
|
||||
@@ -42,9 +42,6 @@ private:
|
||||
|
||||
RID scenario_id;
|
||||
|
||||
virtual bool _can_gizmo_scale() const;
|
||||
virtual RES _get_gizmo_geometry() const;
|
||||
|
||||
friend class Viewport;
|
||||
void _update_audio_listener_state();
|
||||
|
||||
|
||||
@@ -91,9 +91,6 @@ SceneStringNames::SceneStringNames() {
|
||||
update = StaticCString::create("update");
|
||||
updated = StaticCString::create("updated");
|
||||
|
||||
_get_gizmo_geometry = StaticCString::create("_get_gizmo_geometry");
|
||||
_can_gizmo_scale = StaticCString::create("_can_gizmo_scale");
|
||||
|
||||
_physics_process = StaticCString::create("_physics_process");
|
||||
_process = StaticCString::create("_process");
|
||||
|
||||
|
||||
@@ -111,9 +111,6 @@ public:
|
||||
StringName _body_inout;
|
||||
StringName _area_inout;
|
||||
|
||||
StringName _get_gizmo_geometry;
|
||||
StringName _can_gizmo_scale;
|
||||
|
||||
StringName _physics_process;
|
||||
StringName _process;
|
||||
StringName _enter_world;
|
||||
|
||||
Reference in New Issue
Block a user