mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
Replace NULL with nullptr
This commit is contained in:
parent
5f11e15571
commit
95a1400a2a
755 changed files with 5742 additions and 5742 deletions
|
|
@ -35,15 +35,15 @@
|
|||
void Camera3DEditor::_node_removed(Node *p_node) {
|
||||
|
||||
if (p_node == node) {
|
||||
node = NULL;
|
||||
Node3DEditor::get_singleton()->set_custom_camera(NULL);
|
||||
node = nullptr;
|
||||
Node3DEditor::get_singleton()->set_custom_camera(nullptr);
|
||||
hide();
|
||||
}
|
||||
}
|
||||
|
||||
void Camera3DEditor::_pressed() {
|
||||
|
||||
Node *sn = (node && preview->is_pressed()) ? node : NULL;
|
||||
Node *sn = (node && preview->is_pressed()) ? node : nullptr;
|
||||
Node3DEditor::get_singleton()->set_custom_camera(sn);
|
||||
}
|
||||
|
||||
|
|
@ -56,13 +56,13 @@ void Camera3DEditor::edit(Node *p_camera) {
|
|||
|
||||
if (!node) {
|
||||
preview->set_pressed(false);
|
||||
Node3DEditor::get_singleton()->set_custom_camera(NULL);
|
||||
Node3DEditor::get_singleton()->set_custom_camera(nullptr);
|
||||
} else {
|
||||
|
||||
if (preview->is_pressed())
|
||||
Node3DEditor::get_singleton()->set_custom_camera(p_camera);
|
||||
else
|
||||
Node3DEditor::get_singleton()->set_custom_camera(NULL);
|
||||
Node3DEditor::get_singleton()->set_custom_camera(nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -98,7 +98,7 @@ void Camera3DEditorPlugin::make_visible(bool p_visible) {
|
|||
if (p_visible) {
|
||||
//Node3DEditor::get_singleton()->set_can_preview(Object::cast_to<Camera3D>(p_object));
|
||||
} else {
|
||||
Node3DEditor::get_singleton()->set_can_preview(NULL);
|
||||
Node3DEditor::get_singleton()->set_can_preview(nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue