[Editor] Replace ERR_FAIL_COND with ERR_FAIL_NULL where applicable
This commit is contained in:
parent
5f1e56ff26
commit
75ee58fd04
61 changed files with 217 additions and 217 deletions
|
|
@ -106,7 +106,7 @@ void EditorSelectionHistory::cleanup_history() {
|
|||
|
||||
void EditorSelectionHistory::add_object(ObjectID p_object, const String &p_property, bool p_inspector_only) {
|
||||
Object *obj = ObjectDB::get_instance(p_object);
|
||||
ERR_FAIL_COND(!obj);
|
||||
ERR_FAIL_NULL(obj);
|
||||
RefCounted *r = Object::cast_to<RefCounted>(obj);
|
||||
_Object o;
|
||||
if (r) {
|
||||
|
|
@ -700,7 +700,7 @@ bool EditorData::check_and_update_scene(int p_idx) {
|
|||
ERR_FAIL_COND_V(err != OK, false);
|
||||
ep.step(TTR("Updating scene..."), 1);
|
||||
Node *new_scene = pscene->instantiate(PackedScene::GEN_EDIT_STATE_MAIN);
|
||||
ERR_FAIL_COND_V(!new_scene, false);
|
||||
ERR_FAIL_NULL_V(new_scene, false);
|
||||
|
||||
// Transfer selection.
|
||||
List<Node *> new_selection;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue