Removes const from set functions on the Gizmos
This commit is contained in:
parent
9cb4fbe9d5
commit
e4e4a02d3d
6 changed files with 74 additions and 74 deletions
|
@ -145,7 +145,7 @@ Variant EditorNode3DGizmo::get_handle_value(int p_id) const {
|
||||||
return gizmo_plugin->get_handle_value(this, p_id);
|
return gizmo_plugin->get_handle_value(this, p_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditorNode3DGizmo::set_handle(int p_id, Camera3D *p_camera, const Point2 &p_point) const {
|
void EditorNode3DGizmo::set_handle(int p_id, Camera3D *p_camera, const Point2 &p_point) {
|
||||||
if (get_script_instance() && get_script_instance()->has_method("_set_handle")) {
|
if (get_script_instance() && get_script_instance()->has_method("_set_handle")) {
|
||||||
get_script_instance()->call("_set_handle", p_id, p_camera, p_point);
|
get_script_instance()->call("_set_handle", p_id, p_camera, p_point);
|
||||||
return;
|
return;
|
||||||
|
@ -155,7 +155,7 @@ void EditorNode3DGizmo::set_handle(int p_id, Camera3D *p_camera, const Point2 &p
|
||||||
gizmo_plugin->set_handle(this, p_id, p_camera, p_point);
|
gizmo_plugin->set_handle(this, p_id, p_camera, p_point);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditorNode3DGizmo::commit_handle(int p_id, const Variant &p_restore, bool p_cancel) const {
|
void EditorNode3DGizmo::commit_handle(int p_id, const Variant &p_restore, bool p_cancel) {
|
||||||
if (get_script_instance() && get_script_instance()->has_method("_commit_handle")) {
|
if (get_script_instance() && get_script_instance()->has_method("_commit_handle")) {
|
||||||
get_script_instance()->call("_commit_handle", p_id, p_restore, p_cancel);
|
get_script_instance()->call("_commit_handle", p_id, p_restore, p_cancel);
|
||||||
return;
|
return;
|
||||||
|
@ -196,7 +196,7 @@ Transform3D EditorNode3DGizmo::get_subgizmo_transform(int p_id) const {
|
||||||
return gizmo_plugin->get_subgizmo_transform(this, p_id);
|
return gizmo_plugin->get_subgizmo_transform(this, p_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditorNode3DGizmo::set_subgizmo_transform(int p_id, Transform3D p_transform) const {
|
void EditorNode3DGizmo::set_subgizmo_transform(int p_id, Transform3D p_transform) {
|
||||||
if (get_script_instance() && get_script_instance()->has_method("_set_subgizmo_transform")) {
|
if (get_script_instance() && get_script_instance()->has_method("_set_subgizmo_transform")) {
|
||||||
get_script_instance()->call("_set_subgizmo_transform", p_id, p_transform);
|
get_script_instance()->call("_set_subgizmo_transform", p_id, p_transform);
|
||||||
return;
|
return;
|
||||||
|
@ -206,7 +206,7 @@ void EditorNode3DGizmo::set_subgizmo_transform(int p_id, Transform3D p_transform
|
||||||
gizmo_plugin->set_subgizmo_transform(this, p_id, p_transform);
|
gizmo_plugin->set_subgizmo_transform(this, p_id, p_transform);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditorNode3DGizmo::commit_subgizmos(const Vector<int> &p_ids, const Vector<Transform3D> &p_restore, bool p_cancel) const {
|
void EditorNode3DGizmo::commit_subgizmos(const Vector<int> &p_ids, const Vector<Transform3D> &p_restore, bool p_cancel) {
|
||||||
if (get_script_instance() && get_script_instance()->has_method("_commit_subgizmos")) {
|
if (get_script_instance() && get_script_instance()->has_method("_commit_subgizmos")) {
|
||||||
Array ids;
|
Array ids;
|
||||||
for (int i = 0; i < p_ids.size(); i++) {
|
for (int i = 0; i < p_ids.size(); i++) {
|
||||||
|
@ -1145,13 +1145,13 @@ Variant EditorNode3DGizmoPlugin::get_handle_value(const EditorNode3DGizmo *p_giz
|
||||||
return Variant();
|
return Variant();
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditorNode3DGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) const {
|
void EditorNode3DGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) {
|
||||||
if (get_script_instance() && get_script_instance()->has_method("_set_handle")) {
|
if (get_script_instance() && get_script_instance()->has_method("_set_handle")) {
|
||||||
get_script_instance()->call("_set_handle", p_gizmo, p_id, p_camera, p_point);
|
get_script_instance()->call("_set_handle", p_gizmo, p_id, p_camera, p_point);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditorNode3DGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) const {
|
void EditorNode3DGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) {
|
||||||
if (get_script_instance() && get_script_instance()->has_method("_commit_handle")) {
|
if (get_script_instance() && get_script_instance()->has_method("_commit_handle")) {
|
||||||
get_script_instance()->call("_commit_handle", p_gizmo, p_id, p_restore, p_cancel);
|
get_script_instance()->call("_commit_handle", p_gizmo, p_id, p_restore, p_cancel);
|
||||||
}
|
}
|
||||||
|
@ -1184,13 +1184,13 @@ Transform3D EditorNode3DGizmoPlugin::get_subgizmo_transform(const EditorNode3DGi
|
||||||
return Transform3D();
|
return Transform3D();
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditorNode3DGizmoPlugin::set_subgizmo_transform(const EditorNode3DGizmo *p_gizmo, int p_id, Transform3D p_transform) const {
|
void EditorNode3DGizmoPlugin::set_subgizmo_transform(const EditorNode3DGizmo *p_gizmo, int p_id, Transform3D p_transform) {
|
||||||
if (get_script_instance() && get_script_instance()->has_method("_set_subgizmo_transform")) {
|
if (get_script_instance() && get_script_instance()->has_method("_set_subgizmo_transform")) {
|
||||||
get_script_instance()->call("_set_subgizmo_transform", p_id, p_transform);
|
get_script_instance()->call("_set_subgizmo_transform", p_id, p_transform);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditorNode3DGizmoPlugin::commit_subgizmos(const EditorNode3DGizmo *p_gizmo, const Vector<int> &p_ids, const Vector<Transform3D> &p_restore, bool p_cancel) const {
|
void EditorNode3DGizmoPlugin::commit_subgizmos(const EditorNode3DGizmo *p_gizmo, const Vector<int> &p_ids, const Vector<Transform3D> &p_restore, bool p_cancel) {
|
||||||
if (get_script_instance() && get_script_instance()->has_method("_commit_subgizmos")) {
|
if (get_script_instance() && get_script_instance()->has_method("_commit_subgizmos")) {
|
||||||
Array ids;
|
Array ids;
|
||||||
for (int i = 0; i < p_ids.size(); i++) {
|
for (int i = 0; i < p_ids.size(); i++) {
|
||||||
|
@ -1310,7 +1310,7 @@ static float _find_closest_angle_to_half_pi_arc(const Vector3 &p_from, const Vec
|
||||||
return Math::rad2deg(a);
|
return Math::rad2deg(a);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Light3DGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) const {
|
void Light3DGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) {
|
||||||
Light3D *light = Object::cast_to<Light3D>(p_gizmo->get_spatial_node());
|
Light3D *light = Object::cast_to<Light3D>(p_gizmo->get_spatial_node());
|
||||||
Transform3D gt = light->get_global_transform();
|
Transform3D gt = light->get_global_transform();
|
||||||
Transform3D gi = gt.affine_inverse();
|
Transform3D gi = gt.affine_inverse();
|
||||||
|
@ -1354,7 +1354,7 @@ void Light3DGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Light3DGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) const {
|
void Light3DGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) {
|
||||||
Light3D *light = Object::cast_to<Light3D>(p_gizmo->get_spatial_node());
|
Light3D *light = Object::cast_to<Light3D>(p_gizmo->get_spatial_node());
|
||||||
if (p_cancel) {
|
if (p_cancel) {
|
||||||
light->set_param(p_id == 0 ? Light3D::PARAM_RANGE : Light3D::PARAM_SPOT_ANGLE, p_restore);
|
light->set_param(p_id == 0 ? Light3D::PARAM_RANGE : Light3D::PARAM_SPOT_ANGLE, p_restore);
|
||||||
|
@ -1538,7 +1538,7 @@ Variant AudioStreamPlayer3DGizmoPlugin::get_handle_value(const EditorNode3DGizmo
|
||||||
return player->get_emission_angle();
|
return player->get_emission_angle();
|
||||||
}
|
}
|
||||||
|
|
||||||
void AudioStreamPlayer3DGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) const {
|
void AudioStreamPlayer3DGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) {
|
||||||
AudioStreamPlayer3D *player = Object::cast_to<AudioStreamPlayer3D>(p_gizmo->get_spatial_node());
|
AudioStreamPlayer3D *player = Object::cast_to<AudioStreamPlayer3D>(p_gizmo->get_spatial_node());
|
||||||
|
|
||||||
Transform3D gt = player->get_global_transform();
|
Transform3D gt = player->get_global_transform();
|
||||||
|
@ -1575,7 +1575,7 @@ void AudioStreamPlayer3DGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void AudioStreamPlayer3DGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) const {
|
void AudioStreamPlayer3DGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) {
|
||||||
AudioStreamPlayer3D *player = Object::cast_to<AudioStreamPlayer3D>(p_gizmo->get_spatial_node());
|
AudioStreamPlayer3D *player = Object::cast_to<AudioStreamPlayer3D>(p_gizmo->get_spatial_node());
|
||||||
|
|
||||||
if (p_cancel) {
|
if (p_cancel) {
|
||||||
|
@ -1684,7 +1684,7 @@ Variant Camera3DGizmoPlugin::get_handle_value(const EditorNode3DGizmo *p_gizmo,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Camera3DGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) const {
|
void Camera3DGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) {
|
||||||
Camera3D *camera = Object::cast_to<Camera3D>(p_gizmo->get_spatial_node());
|
Camera3D *camera = Object::cast_to<Camera3D>(p_gizmo->get_spatial_node());
|
||||||
|
|
||||||
Transform3D gt = camera->get_global_transform();
|
Transform3D gt = camera->get_global_transform();
|
||||||
|
@ -1713,7 +1713,7 @@ void Camera3DGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Camera3DGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) const {
|
void Camera3DGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) {
|
||||||
Camera3D *camera = Object::cast_to<Camera3D>(p_gizmo->get_spatial_node());
|
Camera3D *camera = Object::cast_to<Camera3D>(p_gizmo->get_spatial_node());
|
||||||
|
|
||||||
if (camera->get_projection() == Camera3D::PROJECTION_PERSPECTIVE) {
|
if (camera->get_projection() == Camera3D::PROJECTION_PERSPECTIVE) {
|
||||||
|
@ -2572,7 +2572,7 @@ Variant SoftBody3DGizmoPlugin::get_handle_value(const EditorNode3DGizmo *p_gizmo
|
||||||
return Variant(soft_body->is_point_pinned(p_id));
|
return Variant(soft_body->is_point_pinned(p_id));
|
||||||
}
|
}
|
||||||
|
|
||||||
void SoftBody3DGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) const {
|
void SoftBody3DGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) {
|
||||||
SoftBody3D *soft_body = Object::cast_to<SoftBody3D>(p_gizmo->get_spatial_node());
|
SoftBody3D *soft_body = Object::cast_to<SoftBody3D>(p_gizmo->get_spatial_node());
|
||||||
soft_body->pin_point_toggle(p_id);
|
soft_body->pin_point_toggle(p_id);
|
||||||
}
|
}
|
||||||
|
@ -2628,7 +2628,7 @@ Variant VisibleOnScreenNotifier3DGizmoPlugin::get_handle_value(const EditorNode3
|
||||||
return notifier->get_aabb();
|
return notifier->get_aabb();
|
||||||
}
|
}
|
||||||
|
|
||||||
void VisibleOnScreenNotifier3DGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) const {
|
void VisibleOnScreenNotifier3DGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) {
|
||||||
VisibleOnScreenNotifier3D *notifier = Object::cast_to<VisibleOnScreenNotifier3D>(p_gizmo->get_spatial_node());
|
VisibleOnScreenNotifier3D *notifier = Object::cast_to<VisibleOnScreenNotifier3D>(p_gizmo->get_spatial_node());
|
||||||
|
|
||||||
Transform3D gt = notifier->get_global_transform();
|
Transform3D gt = notifier->get_global_transform();
|
||||||
|
@ -2680,7 +2680,7 @@ void VisibleOnScreenNotifier3DGizmoPlugin::set_handle(const EditorNode3DGizmo *p
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void VisibleOnScreenNotifier3DGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) const {
|
void VisibleOnScreenNotifier3DGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) {
|
||||||
VisibleOnScreenNotifier3D *notifier = Object::cast_to<VisibleOnScreenNotifier3D>(p_gizmo->get_spatial_node());
|
VisibleOnScreenNotifier3D *notifier = Object::cast_to<VisibleOnScreenNotifier3D>(p_gizmo->get_spatial_node());
|
||||||
|
|
||||||
if (p_cancel) {
|
if (p_cancel) {
|
||||||
|
@ -2820,7 +2820,7 @@ Variant GPUParticles3DGizmoPlugin::get_handle_value(const EditorNode3DGizmo *p_g
|
||||||
return particles->get_visibility_aabb();
|
return particles->get_visibility_aabb();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GPUParticles3DGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) const {
|
void GPUParticles3DGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) {
|
||||||
GPUParticles3D *particles = Object::cast_to<GPUParticles3D>(p_gizmo->get_spatial_node());
|
GPUParticles3D *particles = Object::cast_to<GPUParticles3D>(p_gizmo->get_spatial_node());
|
||||||
|
|
||||||
Transform3D gt = particles->get_global_transform();
|
Transform3D gt = particles->get_global_transform();
|
||||||
|
@ -2871,7 +2871,7 @@ void GPUParticles3DGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void GPUParticles3DGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) const {
|
void GPUParticles3DGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) {
|
||||||
GPUParticles3D *particles = Object::cast_to<GPUParticles3D>(p_gizmo->get_spatial_node());
|
GPUParticles3D *particles = Object::cast_to<GPUParticles3D>(p_gizmo->get_spatial_node());
|
||||||
|
|
||||||
if (p_cancel) {
|
if (p_cancel) {
|
||||||
|
@ -2985,7 +2985,7 @@ Variant GPUParticlesCollision3DGizmoPlugin::get_handle_value(const EditorNode3DG
|
||||||
return Variant();
|
return Variant();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GPUParticlesCollision3DGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) const {
|
void GPUParticlesCollision3DGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) {
|
||||||
Node3D *sn = p_gizmo->get_spatial_node();
|
Node3D *sn = p_gizmo->get_spatial_node();
|
||||||
|
|
||||||
Transform3D gt = sn->get_global_transform();
|
Transform3D gt = sn->get_global_transform();
|
||||||
|
@ -3031,7 +3031,7 @@ void GPUParticlesCollision3DGizmoPlugin::set_handle(const EditorNode3DGizmo *p_g
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void GPUParticlesCollision3DGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) const {
|
void GPUParticlesCollision3DGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) {
|
||||||
Node3D *sn = p_gizmo->get_spatial_node();
|
Node3D *sn = p_gizmo->get_spatial_node();
|
||||||
|
|
||||||
if (Object::cast_to<GPUParticlesCollisionSphere>(sn) || Object::cast_to<GPUParticlesAttractorSphere>(sn)) {
|
if (Object::cast_to<GPUParticlesCollisionSphere>(sn) || Object::cast_to<GPUParticlesAttractorSphere>(sn)) {
|
||||||
|
@ -3245,7 +3245,7 @@ Variant ReflectionProbeGizmoPlugin::get_handle_value(const EditorNode3DGizmo *p_
|
||||||
return AABB(probe->get_extents(), probe->get_origin_offset());
|
return AABB(probe->get_extents(), probe->get_origin_offset());
|
||||||
}
|
}
|
||||||
|
|
||||||
void ReflectionProbeGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) const {
|
void ReflectionProbeGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) {
|
||||||
ReflectionProbe *probe = Object::cast_to<ReflectionProbe>(p_gizmo->get_spatial_node());
|
ReflectionProbe *probe = Object::cast_to<ReflectionProbe>(p_gizmo->get_spatial_node());
|
||||||
Transform3D gt = probe->get_global_transform();
|
Transform3D gt = probe->get_global_transform();
|
||||||
|
|
||||||
|
@ -3302,7 +3302,7 @@ void ReflectionProbeGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, in
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ReflectionProbeGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) const {
|
void ReflectionProbeGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) {
|
||||||
ReflectionProbe *probe = Object::cast_to<ReflectionProbe>(p_gizmo->get_spatial_node());
|
ReflectionProbe *probe = Object::cast_to<ReflectionProbe>(p_gizmo->get_spatial_node());
|
||||||
|
|
||||||
AABB restore = p_restore;
|
AABB restore = p_restore;
|
||||||
|
@ -3424,7 +3424,7 @@ Variant DecalGizmoPlugin::get_handle_value(const EditorNode3DGizmo *p_gizmo, int
|
||||||
return decal->get_extents();
|
return decal->get_extents();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DecalGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) const {
|
void DecalGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) {
|
||||||
Decal *decal = Object::cast_to<Decal>(p_gizmo->get_spatial_node());
|
Decal *decal = Object::cast_to<Decal>(p_gizmo->get_spatial_node());
|
||||||
Transform3D gt = decal->get_global_transform();
|
Transform3D gt = decal->get_global_transform();
|
||||||
|
|
||||||
|
@ -3455,7 +3455,7 @@ void DecalGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Ca
|
||||||
decal->set_extents(extents);
|
decal->set_extents(extents);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DecalGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) const {
|
void DecalGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) {
|
||||||
Decal *decal = Object::cast_to<Decal>(p_gizmo->get_spatial_node());
|
Decal *decal = Object::cast_to<Decal>(p_gizmo->get_spatial_node());
|
||||||
|
|
||||||
Vector3 restore = p_restore;
|
Vector3 restore = p_restore;
|
||||||
|
@ -3564,7 +3564,7 @@ Variant VoxelGIGizmoPlugin::get_handle_value(const EditorNode3DGizmo *p_gizmo, i
|
||||||
return probe->get_extents();
|
return probe->get_extents();
|
||||||
}
|
}
|
||||||
|
|
||||||
void VoxelGIGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) const {
|
void VoxelGIGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) {
|
||||||
VoxelGI *probe = Object::cast_to<VoxelGI>(p_gizmo->get_spatial_node());
|
VoxelGI *probe = Object::cast_to<VoxelGI>(p_gizmo->get_spatial_node());
|
||||||
|
|
||||||
Transform3D gt = probe->get_global_transform();
|
Transform3D gt = probe->get_global_transform();
|
||||||
|
@ -3595,7 +3595,7 @@ void VoxelGIGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id,
|
||||||
probe->set_extents(extents);
|
probe->set_extents(extents);
|
||||||
}
|
}
|
||||||
|
|
||||||
void VoxelGIGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) const {
|
void VoxelGIGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) {
|
||||||
VoxelGI *probe = Object::cast_to<VoxelGI>(p_gizmo->get_spatial_node());
|
VoxelGI *probe = Object::cast_to<VoxelGI>(p_gizmo->get_spatial_node());
|
||||||
|
|
||||||
Vector3 restore = p_restore;
|
Vector3 restore = p_restore;
|
||||||
|
@ -3723,10 +3723,10 @@ Variant LightmapGIGizmoPlugin::get_handle_value(const EditorNode3DGizmo *p_gizmo
|
||||||
return Variant();
|
return Variant();
|
||||||
}
|
}
|
||||||
|
|
||||||
void LightmapGIGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) const {
|
void LightmapGIGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void LightmapGIGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) const {
|
void LightmapGIGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool LightmapGIGizmoPlugin::has_gizmo(Node3D *p_spatial) {
|
bool LightmapGIGizmoPlugin::has_gizmo(Node3D *p_spatial) {
|
||||||
|
@ -3905,10 +3905,10 @@ Variant LightmapProbeGizmoPlugin::get_handle_value(const EditorNode3DGizmo *p_gi
|
||||||
return Variant();
|
return Variant();
|
||||||
}
|
}
|
||||||
|
|
||||||
void LightmapProbeGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) const {
|
void LightmapProbeGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void LightmapProbeGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) const {
|
void LightmapProbeGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool LightmapProbeGizmoPlugin::has_gizmo(Node3D *p_spatial) {
|
bool LightmapProbeGizmoPlugin::has_gizmo(Node3D *p_spatial) {
|
||||||
|
@ -4124,7 +4124,7 @@ Variant CollisionShape3DGizmoPlugin::get_handle_value(const EditorNode3DGizmo *p
|
||||||
return Variant();
|
return Variant();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CollisionShape3DGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) const {
|
void CollisionShape3DGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) {
|
||||||
CollisionShape3D *cs = Object::cast_to<CollisionShape3D>(p_gizmo->get_spatial_node());
|
CollisionShape3D *cs = Object::cast_to<CollisionShape3D>(p_gizmo->get_spatial_node());
|
||||||
|
|
||||||
Ref<Shape3D> s = cs->get_shape();
|
Ref<Shape3D> s = cs->get_shape();
|
||||||
|
@ -4241,7 +4241,7 @@ void CollisionShape3DGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, i
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CollisionShape3DGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) const {
|
void CollisionShape3DGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) {
|
||||||
CollisionShape3D *cs = Object::cast_to<CollisionShape3D>(p_gizmo->get_spatial_node());
|
CollisionShape3D *cs = Object::cast_to<CollisionShape3D>(p_gizmo->get_spatial_node());
|
||||||
|
|
||||||
Ref<Shape3D> s = cs->get_shape();
|
Ref<Shape3D> s = cs->get_shape();
|
||||||
|
|
|
@ -91,14 +91,14 @@ public:
|
||||||
virtual bool is_handle_highlighted(int p_id) const;
|
virtual bool is_handle_highlighted(int p_id) const;
|
||||||
virtual String get_handle_name(int p_id) const;
|
virtual String get_handle_name(int p_id) const;
|
||||||
virtual Variant get_handle_value(int p_id) const;
|
virtual Variant get_handle_value(int p_id) const;
|
||||||
virtual void set_handle(int p_id, Camera3D *p_camera, const Point2 &p_point) const;
|
virtual void set_handle(int p_id, Camera3D *p_camera, const Point2 &p_point);
|
||||||
virtual void commit_handle(int p_id, const Variant &p_restore, bool p_cancel = false) const;
|
virtual void commit_handle(int p_id, const Variant &p_restore, bool p_cancel = false);
|
||||||
|
|
||||||
virtual int subgizmos_intersect_ray(Camera3D *p_camera, const Vector2 &p_point) const;
|
virtual int subgizmos_intersect_ray(Camera3D *p_camera, const Vector2 &p_point) const;
|
||||||
virtual Vector<int> subgizmos_intersect_frustum(const Camera3D *p_camera, const Vector<Plane> &p_frustum) const;
|
virtual Vector<int> subgizmos_intersect_frustum(const Camera3D *p_camera, const Vector<Plane> &p_frustum) const;
|
||||||
virtual Transform3D get_subgizmo_transform(int p_id) const;
|
virtual Transform3D get_subgizmo_transform(int p_id) const;
|
||||||
virtual void set_subgizmo_transform(int p_id, Transform3D p_transform) const;
|
virtual void set_subgizmo_transform(int p_id, Transform3D p_transform);
|
||||||
virtual void commit_subgizmos(const Vector<int> &p_ids, const Vector<Transform3D> &p_restore, bool p_cancel = false) const;
|
virtual void commit_subgizmos(const Vector<int> &p_ids, const Vector<Transform3D> &p_restore, bool p_cancel = false);
|
||||||
|
|
||||||
void set_selected(bool p_selected) { selected = p_selected; }
|
void set_selected(bool p_selected) { selected = p_selected; }
|
||||||
bool is_selected() const { return selected; }
|
bool is_selected() const { return selected; }
|
||||||
|
@ -161,14 +161,14 @@ public:
|
||||||
virtual bool is_handle_highlighted(const EditorNode3DGizmo *p_gizmo, int p_id) const;
|
virtual bool is_handle_highlighted(const EditorNode3DGizmo *p_gizmo, int p_id) const;
|
||||||
virtual String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_id) const;
|
virtual String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_id) const;
|
||||||
virtual Variant get_handle_value(const EditorNode3DGizmo *p_gizmo, int p_id) const;
|
virtual Variant get_handle_value(const EditorNode3DGizmo *p_gizmo, int p_id) const;
|
||||||
virtual void set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) const;
|
virtual void set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point);
|
||||||
virtual void commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel = false) const;
|
virtual void commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel = false);
|
||||||
|
|
||||||
virtual int subgizmos_intersect_ray(const EditorNode3DGizmo *p_gizmo, Camera3D *p_camera, const Vector2 &p_point) const;
|
virtual int subgizmos_intersect_ray(const EditorNode3DGizmo *p_gizmo, Camera3D *p_camera, const Vector2 &p_point) const;
|
||||||
virtual Vector<int> subgizmos_intersect_frustum(const EditorNode3DGizmo *p_gizmo, const Camera3D *p_camera, const Vector<Plane> &p_frustum) const;
|
virtual Vector<int> subgizmos_intersect_frustum(const EditorNode3DGizmo *p_gizmo, const Camera3D *p_camera, const Vector<Plane> &p_frustum) const;
|
||||||
virtual Transform3D get_subgizmo_transform(const EditorNode3DGizmo *p_gizmo, int p_id) const;
|
virtual Transform3D get_subgizmo_transform(const EditorNode3DGizmo *p_gizmo, int p_id) const;
|
||||||
virtual void set_subgizmo_transform(const EditorNode3DGizmo *p_gizmo, int p_id, Transform3D p_transform) const;
|
virtual void set_subgizmo_transform(const EditorNode3DGizmo *p_gizmo, int p_id, Transform3D p_transform);
|
||||||
virtual void commit_subgizmos(const EditorNode3DGizmo *p_gizmo, const Vector<int> &p_ids, const Vector<Transform3D> &p_restore, bool p_cancel = false) const;
|
virtual void commit_subgizmos(const EditorNode3DGizmo *p_gizmo, const Vector<int> &p_ids, const Vector<Transform3D> &p_restore, bool p_cancel = false);
|
||||||
|
|
||||||
Ref<EditorNode3DGizmo> get_gizmo(Node3D *p_spatial);
|
Ref<EditorNode3DGizmo> get_gizmo(Node3D *p_spatial);
|
||||||
void set_state(int p_state);
|
void set_state(int p_state);
|
||||||
|
@ -189,8 +189,8 @@ public:
|
||||||
|
|
||||||
String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
||||||
Variant get_handle_value(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
Variant get_handle_value(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
||||||
void set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) const override;
|
void set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) override;
|
||||||
void commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel = false) const override;
|
void commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel = false) override;
|
||||||
void redraw(EditorNode3DGizmo *p_gizmo) override;
|
void redraw(EditorNode3DGizmo *p_gizmo) override;
|
||||||
|
|
||||||
Light3DGizmoPlugin();
|
Light3DGizmoPlugin();
|
||||||
|
@ -206,8 +206,8 @@ public:
|
||||||
|
|
||||||
String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
||||||
Variant get_handle_value(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
Variant get_handle_value(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
||||||
void set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) const override;
|
void set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) override;
|
||||||
void commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel = false) const override;
|
void commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel = false) override;
|
||||||
void redraw(EditorNode3DGizmo *p_gizmo) override;
|
void redraw(EditorNode3DGizmo *p_gizmo) override;
|
||||||
|
|
||||||
AudioStreamPlayer3DGizmoPlugin();
|
AudioStreamPlayer3DGizmoPlugin();
|
||||||
|
@ -223,8 +223,8 @@ public:
|
||||||
|
|
||||||
String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
||||||
Variant get_handle_value(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
Variant get_handle_value(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
||||||
void set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) const override;
|
void set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) override;
|
||||||
void commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel = false) const override;
|
void commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel = false) override;
|
||||||
void redraw(EditorNode3DGizmo *p_gizmo) override;
|
void redraw(EditorNode3DGizmo *p_gizmo) override;
|
||||||
|
|
||||||
Camera3DGizmoPlugin();
|
Camera3DGizmoPlugin();
|
||||||
|
@ -355,7 +355,7 @@ public:
|
||||||
|
|
||||||
String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
||||||
Variant get_handle_value(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
Variant get_handle_value(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
||||||
void commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel = false) const override;
|
void commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel = false) override;
|
||||||
bool is_handle_highlighted(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
bool is_handle_highlighted(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
||||||
|
|
||||||
SoftBody3DGizmoPlugin();
|
SoftBody3DGizmoPlugin();
|
||||||
|
@ -372,8 +372,8 @@ public:
|
||||||
|
|
||||||
String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
||||||
Variant get_handle_value(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
Variant get_handle_value(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
||||||
void set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) const override;
|
void set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) override;
|
||||||
void commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel = false) const override;
|
void commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel = false) override;
|
||||||
|
|
||||||
VisibleOnScreenNotifier3DGizmoPlugin();
|
VisibleOnScreenNotifier3DGizmoPlugin();
|
||||||
};
|
};
|
||||||
|
@ -402,8 +402,8 @@ public:
|
||||||
|
|
||||||
String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
||||||
Variant get_handle_value(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
Variant get_handle_value(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
||||||
void set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) const override;
|
void set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) override;
|
||||||
void commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel = false) const override;
|
void commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel = false) override;
|
||||||
|
|
||||||
GPUParticles3DGizmoPlugin();
|
GPUParticles3DGizmoPlugin();
|
||||||
};
|
};
|
||||||
|
@ -419,8 +419,8 @@ public:
|
||||||
|
|
||||||
String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
||||||
Variant get_handle_value(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
Variant get_handle_value(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
||||||
void set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) const override;
|
void set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) override;
|
||||||
void commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel = false) const override;
|
void commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel = false) override;
|
||||||
|
|
||||||
GPUParticlesCollision3DGizmoPlugin();
|
GPUParticlesCollision3DGizmoPlugin();
|
||||||
};
|
};
|
||||||
|
@ -436,8 +436,8 @@ public:
|
||||||
|
|
||||||
String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
||||||
Variant get_handle_value(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
Variant get_handle_value(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
||||||
void set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) const override;
|
void set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) override;
|
||||||
void commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel = false) const override;
|
void commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel = false) override;
|
||||||
|
|
||||||
ReflectionProbeGizmoPlugin();
|
ReflectionProbeGizmoPlugin();
|
||||||
};
|
};
|
||||||
|
@ -453,8 +453,8 @@ public:
|
||||||
|
|
||||||
String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
||||||
Variant get_handle_value(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
Variant get_handle_value(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
||||||
void set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) const override;
|
void set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) override;
|
||||||
void commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel = false) const override;
|
void commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel = false) override;
|
||||||
|
|
||||||
DecalGizmoPlugin();
|
DecalGizmoPlugin();
|
||||||
};
|
};
|
||||||
|
@ -470,8 +470,8 @@ public:
|
||||||
|
|
||||||
String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
||||||
Variant get_handle_value(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
Variant get_handle_value(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
||||||
void set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) const override;
|
void set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) override;
|
||||||
void commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel = false) const override;
|
void commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel = false) override;
|
||||||
|
|
||||||
VoxelGIGizmoPlugin();
|
VoxelGIGizmoPlugin();
|
||||||
};
|
};
|
||||||
|
@ -487,8 +487,8 @@ public:
|
||||||
|
|
||||||
String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
||||||
Variant get_handle_value(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
Variant get_handle_value(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
||||||
void set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) const override;
|
void set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) override;
|
||||||
void commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel = false) const override;
|
void commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel = false) override;
|
||||||
|
|
||||||
LightmapGIGizmoPlugin();
|
LightmapGIGizmoPlugin();
|
||||||
};
|
};
|
||||||
|
@ -504,8 +504,8 @@ public:
|
||||||
|
|
||||||
String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
||||||
Variant get_handle_value(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
Variant get_handle_value(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
||||||
void set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) const override;
|
void set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) override;
|
||||||
void commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel = false) const override;
|
void commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel = false) override;
|
||||||
|
|
||||||
LightmapProbeGizmoPlugin();
|
LightmapProbeGizmoPlugin();
|
||||||
};
|
};
|
||||||
|
@ -533,8 +533,8 @@ public:
|
||||||
|
|
||||||
String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
||||||
Variant get_handle_value(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
Variant get_handle_value(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
||||||
void set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) const override;
|
void set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) override;
|
||||||
void commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel = false) const override;
|
void commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel = false) override;
|
||||||
|
|
||||||
CollisionShape3DGizmoPlugin();
|
CollisionShape3DGizmoPlugin();
|
||||||
};
|
};
|
||||||
|
|
|
@ -88,7 +88,7 @@ Variant Path3DGizmo::get_handle_value(int p_id) const {
|
||||||
return ofs;
|
return ofs;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Path3DGizmo::set_handle(int p_id, Camera3D *p_camera, const Point2 &p_point) const {
|
void Path3DGizmo::set_handle(int p_id, Camera3D *p_camera, const Point2 &p_point) {
|
||||||
Ref<Curve3D> c = path->get_curve();
|
Ref<Curve3D> c = path->get_curve();
|
||||||
if (c.is_null()) {
|
if (c.is_null()) {
|
||||||
return;
|
return;
|
||||||
|
@ -157,7 +157,7 @@ void Path3DGizmo::set_handle(int p_id, Camera3D *p_camera, const Point2 &p_point
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Path3DGizmo::commit_handle(int p_id, const Variant &p_restore, bool p_cancel) const {
|
void Path3DGizmo::commit_handle(int p_id, const Variant &p_restore, bool p_cancel) {
|
||||||
Ref<Curve3D> c = path->get_curve();
|
Ref<Curve3D> c = path->get_curve();
|
||||||
if (c.is_null()) {
|
if (c.is_null()) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -47,8 +47,8 @@ class Path3DGizmo : public EditorNode3DGizmo {
|
||||||
public:
|
public:
|
||||||
virtual String get_handle_name(int p_idx) const override;
|
virtual String get_handle_name(int p_idx) const override;
|
||||||
virtual Variant get_handle_value(int p_id) const override;
|
virtual Variant get_handle_value(int p_id) const override;
|
||||||
virtual void set_handle(int p_id, Camera3D *p_camera, const Point2 &p_point) const override;
|
virtual void set_handle(int p_id, Camera3D *p_camera, const Point2 &p_point) override;
|
||||||
virtual void commit_handle(int p_id, const Variant &p_restore, bool p_cancel = false) const override;
|
virtual void commit_handle(int p_id, const Variant &p_restore, bool p_cancel = false) override;
|
||||||
|
|
||||||
virtual void redraw() override;
|
virtual void redraw() override;
|
||||||
Path3DGizmo(Path3D *p_path = nullptr);
|
Path3DGizmo(Path3D *p_path = nullptr);
|
||||||
|
|
|
@ -98,7 +98,7 @@ Variant CSGShape3DGizmoPlugin::get_handle_value(const EditorNode3DGizmo *p_gizmo
|
||||||
return Variant();
|
return Variant();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSGShape3DGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) const {
|
void CSGShape3DGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) {
|
||||||
CSGShape3D *cs = Object::cast_to<CSGShape3D>(p_gizmo->get_spatial_node());
|
CSGShape3D *cs = Object::cast_to<CSGShape3D>(p_gizmo->get_spatial_node());
|
||||||
|
|
||||||
Transform3D gt = cs->get_global_transform();
|
Transform3D gt = cs->get_global_transform();
|
||||||
|
@ -201,7 +201,7 @@ void CSGShape3DGizmoPlugin::set_handle(const EditorNode3DGizmo *p_gizmo, int p_i
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSGShape3DGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) const {
|
void CSGShape3DGizmoPlugin::commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) {
|
||||||
CSGShape3D *cs = Object::cast_to<CSGShape3D>(p_gizmo->get_spatial_node());
|
CSGShape3D *cs = Object::cast_to<CSGShape3D>(p_gizmo->get_spatial_node());
|
||||||
|
|
||||||
if (Object::cast_to<CSGSphere3D>(cs)) {
|
if (Object::cast_to<CSGSphere3D>(cs)) {
|
||||||
|
|
|
@ -47,8 +47,8 @@ public:
|
||||||
|
|
||||||
virtual String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
virtual String get_handle_name(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
||||||
virtual Variant get_handle_value(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
virtual Variant get_handle_value(const EditorNode3DGizmo *p_gizmo, int p_id) const override;
|
||||||
virtual void set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) const override;
|
virtual void set_handle(const EditorNode3DGizmo *p_gizmo, int p_id, Camera3D *p_camera, const Point2 &p_point) override;
|
||||||
virtual void commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) const override;
|
virtual void commit_handle(const EditorNode3DGizmo *p_gizmo, int p_id, const Variant &p_restore, bool p_cancel) override;
|
||||||
|
|
||||||
CSGShape3DGizmoPlugin();
|
CSGShape3DGizmoPlugin();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue