Added some obvious errors explanations
This commit is contained in:
@ -481,7 +481,7 @@ EditorPlugin *EditorData::get_editor_plugin(int p_idx) {
|
||||
|
||||
void EditorData::add_custom_type(const String &p_type, const String &p_inherits, const Ref<Script> &p_script, const Ref<Texture> &p_icon) {
|
||||
|
||||
ERR_FAIL_COND(p_script.is_null());
|
||||
ERR_FAIL_COND_MSG(p_script.is_null(), "It's not a reference to a valid Script object.");
|
||||
CustomType ct;
|
||||
ct.name = p_type;
|
||||
ct.icon = p_icon;
|
||||
|
||||
Reference in New Issue
Block a user