doc: Update classref with node renames
A few extra renames for classes which were missed in last week's PRs.
This commit is contained in:
parent
0168709978
commit
eaaee63b62
203 changed files with 1076 additions and 1095 deletions
|
|
@ -96,7 +96,7 @@ bool Camera3DEditorPlugin::handles(Object *p_object) const {
|
|||
void Camera3DEditorPlugin::make_visible(bool p_visible) {
|
||||
|
||||
if (p_visible) {
|
||||
//Node3DEditor::get_singleton()->set_can_preview(Object::cast_to<Camera>(p_object));
|
||||
//Node3DEditor::get_singleton()->set_can_preview(Object::cast_to<Camera3D>(p_object));
|
||||
} else {
|
||||
Node3DEditor::get_singleton()->set_can_preview(NULL);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ class CPUParticles3DEditorPlugin : public EditorPlugin {
|
|||
EditorNode *editor;
|
||||
|
||||
public:
|
||||
virtual String get_name() const { return "CPUParticles"; }
|
||||
virtual String get_name() const { return "CPUParticles3D"; }
|
||||
bool has_main_screen() const { return false; }
|
||||
virtual void edit(Object *p_object);
|
||||
virtual bool handles(Object *p_object) const;
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ protected:
|
|||
static void _bind_methods();
|
||||
|
||||
public:
|
||||
virtual String get_name() const { return "Particles2D"; }
|
||||
virtual String get_name() const { return "GPUParticles2D"; }
|
||||
bool has_main_screen() const { return false; }
|
||||
virtual void edit(Object *p_object);
|
||||
virtual bool handles(Object *p_object) const;
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ class GPUParticles3DEditorPlugin : public EditorPlugin {
|
|||
EditorNode *editor;
|
||||
|
||||
public:
|
||||
virtual String get_name() const { return "Particles"; }
|
||||
virtual String get_name() const { return "GPUParticles3D"; }
|
||||
bool has_main_screen() const { return false; }
|
||||
virtual void edit(Object *p_object);
|
||||
virtual bool handles(Object *p_object) const;
|
||||
|
|
|
|||
|
|
@ -392,17 +392,17 @@ void MeshInstance3DEditor::_create_outline_mesh() {
|
|||
|
||||
Ref<Mesh> mesh = node->get_mesh();
|
||||
if (mesh.is_null()) {
|
||||
err_dialog->set_text(TTR("MeshInstance lacks a Mesh!"));
|
||||
err_dialog->set_text(TTR("MeshInstance3D lacks a Mesh."));
|
||||
err_dialog->popup_centered();
|
||||
return;
|
||||
}
|
||||
|
||||
if (mesh->get_surface_count() == 0) {
|
||||
err_dialog->set_text(TTR("Mesh has not surface to create outlines from!"));
|
||||
err_dialog->set_text(TTR("Mesh has not surface to create outlines from."));
|
||||
err_dialog->popup_centered();
|
||||
return;
|
||||
} else if (mesh->get_surface_count() == 1 && mesh->surface_get_primitive_type(0) != Mesh::PRIMITIVE_TRIANGLES) {
|
||||
err_dialog->set_text(TTR("Mesh primitive type is not PRIMITIVE_TRIANGLES!"));
|
||||
err_dialog->set_text(TTR("Mesh primitive type is not PRIMITIVE_TRIANGLES."));
|
||||
err_dialog->popup_centered();
|
||||
return;
|
||||
}
|
||||
|
|
@ -410,7 +410,7 @@ void MeshInstance3DEditor::_create_outline_mesh() {
|
|||
Ref<Mesh> mesho = mesh->create_outline(outline_size->get_value());
|
||||
|
||||
if (mesho.is_null()) {
|
||||
err_dialog->set_text(TTR("Could not create outline!"));
|
||||
err_dialog->set_text(TTR("Could not create outline."));
|
||||
err_dialog->popup_centered();
|
||||
return;
|
||||
}
|
||||
|
|
@ -447,7 +447,7 @@ MeshInstance3DEditor::MeshInstance3DEditor() {
|
|||
options->set_icon(EditorNode::get_singleton()->get_gui_base()->get_theme_icon("MeshInstance3D", "EditorIcons"));
|
||||
|
||||
options->get_popup()->add_item(TTR("Create Trimesh Static Body"), MENU_OPTION_CREATE_STATIC_TRIMESH_BODY);
|
||||
options->get_popup()->set_item_tooltip(options->get_popup()->get_item_count() - 1, TTR("Creates a StaticBody and assigns a polygon-based collision shape to it automatically.\nThis is the most accurate (but slowest) option for collision detection."));
|
||||
options->get_popup()->set_item_tooltip(options->get_popup()->get_item_count() - 1, TTR("Creates a StaticBody3D and assigns a polygon-based collision shape to it automatically.\nThis is the most accurate (but slowest) option for collision detection."));
|
||||
options->get_popup()->add_separator();
|
||||
options->get_popup()->add_item(TTR("Create Trimesh Collision Sibling"), MENU_OPTION_CREATE_TRIMESH_COLLISION_SHAPE);
|
||||
options->get_popup()->set_item_tooltip(options->get_popup()->get_item_count() - 1, TTR("Creates a polygon-based collision shape.\nThis is the most accurate (but slowest) option for collision detection."));
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ void MultiMeshEditor::_populate() {
|
|||
|
||||
if (!ms_instance) {
|
||||
|
||||
err_dialog->set_text(TTR("Mesh source is invalid (not a MeshInstance)."));
|
||||
err_dialog->set_text(TTR("Mesh source is invalid (not a MeshInstance3D)."));
|
||||
err_dialog->popup_centered();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5919,8 +5919,8 @@ void Node3DEditor::_register_all_gizmos() {
|
|||
add_gizmo_plugin(Ref<SpringArmNode3DGizmoPlugin>(memnew(SpringArmNode3DGizmoPlugin)));
|
||||
add_gizmo_plugin(Ref<VehicleWheelNode3DGizmoPlugin>(memnew(VehicleWheelNode3DGizmoPlugin)));
|
||||
add_gizmo_plugin(Ref<VisibilityNotifierGizmoPlugin>(memnew(VisibilityNotifierGizmoPlugin)));
|
||||
add_gizmo_plugin(Ref<ParticlesGizmoPlugin>(memnew(ParticlesGizmoPlugin)));
|
||||
add_gizmo_plugin(Ref<CPUParticlesGizmoPlugin>(memnew(CPUParticlesGizmoPlugin)));
|
||||
add_gizmo_plugin(Ref<GPUParticles3DGizmoPlugin>(memnew(GPUParticles3DGizmoPlugin)));
|
||||
add_gizmo_plugin(Ref<CPUParticles3DGizmoPlugin>(memnew(CPUParticles3DGizmoPlugin)));
|
||||
add_gizmo_plugin(Ref<ReflectionProbeGizmoPlugin>(memnew(ReflectionProbeGizmoPlugin)));
|
||||
add_gizmo_plugin(Ref<GIProbeGizmoPlugin>(memnew(GIProbeGizmoPlugin)));
|
||||
// add_gizmo_plugin(Ref<BakedIndirectLightGizmoPlugin>(memnew(BakedIndirectLightGizmoPlugin)));
|
||||
|
|
|
|||
|
|
@ -637,7 +637,7 @@ Ref<EditorNode3DGizmo> PathNode3DGizmoPlugin::create_gizmo(Node3D *p_spatial) {
|
|||
}
|
||||
|
||||
String PathNode3DGizmoPlugin::get_name() const {
|
||||
return "Path";
|
||||
return "Path3D";
|
||||
}
|
||||
|
||||
int PathNode3DGizmoPlugin::get_priority() const {
|
||||
|
|
|
|||
|
|
@ -103,9 +103,7 @@ public:
|
|||
static Path3DEditorPlugin *singleton;
|
||||
virtual bool forward_spatial_gui_input(Camera3D *p_camera, const Ref<InputEvent> &p_event);
|
||||
|
||||
//virtual bool forward_gui_input(const InputEvent& p_event) { return collision_polygon_editor->forward_gui_input(p_event); }
|
||||
//virtual Ref<Node3DEditorGizmo> create_spatial_gizmo(Spatial *p_spatial);
|
||||
virtual String get_name() const { return "Path"; }
|
||||
virtual String get_name() const { return "Path3D"; }
|
||||
bool has_main_screen() const { return false; }
|
||||
virtual void edit(Object *p_object);
|
||||
virtual bool handles(Object *p_object) const;
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ protected:
|
|||
static void _bind_methods();
|
||||
|
||||
public:
|
||||
virtual String get_name() const { return "SkeletonIK"; }
|
||||
virtual String get_name() const { return "SkeletonIK3D"; }
|
||||
bool has_main_screen() const { return false; }
|
||||
virtual void edit(Object *p_object);
|
||||
virtual bool handles(Object *p_object) const;
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ class Sprite2DEditorPlugin : public EditorPlugin {
|
|||
EditorNode *editor;
|
||||
|
||||
public:
|
||||
virtual String get_name() const { return "Sprite"; }
|
||||
virtual String get_name() const { return "Sprite2D"; }
|
||||
bool has_main_screen() const { return false; }
|
||||
virtual void edit(Object *p_object);
|
||||
virtual bool handles(Object *p_object) const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue