You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
[Editor] Replace ERR_FAIL_COND with ERR_FAIL_NULL where applicable
This commit is contained in:
@@ -2013,7 +2013,7 @@ bool EditorInspectorPluginAnimationTrackKeyEdit::can_handle(Object *p_object) {
|
||||
|
||||
void EditorInspectorPluginAnimationTrackKeyEdit::parse_begin(Object *p_object) {
|
||||
AnimationTrackKeyEdit *atk = Object::cast_to<AnimationTrackKeyEdit>(p_object);
|
||||
ERR_FAIL_COND(!atk);
|
||||
ERR_FAIL_NULL(atk);
|
||||
|
||||
atk_editor = memnew(AnimationTrackKeyEditEditor(atk->animation, atk->track, atk->key_ofs, atk->use_fps));
|
||||
add_custom_control(atk_editor);
|
||||
|
||||
Reference in New Issue
Block a user