[Servers] Replace ERR_FAIL_COND with ERR_FAIL_NULL where applicable
This commit is contained in:
parent
82f6e9be5e
commit
fdd3d36c6d
48 changed files with 1105 additions and 1105 deletions
|
|
@ -659,7 +659,7 @@ bool EditorInspectorPluginGradient::can_handle(Object *p_object) {
|
|||
|
||||
void EditorInspectorPluginGradient::parse_begin(Object *p_object) {
|
||||
Gradient *gradient = Object::cast_to<Gradient>(p_object);
|
||||
ERR_FAIL_COND(!gradient);
|
||||
ERR_FAIL_NULL(gradient);
|
||||
Ref<Gradient> g(gradient);
|
||||
|
||||
GradientEditor *editor = memnew(GradientEditor);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue