Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
0d7b6279
Unverified
Commit
0d7b6279
authored
May 11, 2020
by
Hugo Locurcio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak the error message displayd when a post-import script fails
See #38662.
parent
6d46d2fe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
resource_importer_scene.cpp
editor/import/resource_importer_scene.cpp
+3
-1
No files found.
editor/import/resource_importer_scene.cpp
View file @
0d7b6279
...
@@ -1582,7 +1582,9 @@ Error ResourceImporterScene::import(const String &p_source_file, const String &p
...
@@ -1582,7 +1582,9 @@ Error ResourceImporterScene::import(const String &p_source_file, const String &p
post_import_script
->
init
(
base_path
,
p_source_file
);
post_import_script
->
init
(
base_path
,
p_source_file
);
scene
=
post_import_script
->
post_import
(
scene
);
scene
=
post_import_script
->
post_import
(
scene
);
if
(
!
scene
)
{
if
(
!
scene
)
{
EditorNode
::
add_io_error
(
TTR
(
"Error running post-import script:"
)
+
" "
+
post_import_script_path
);
EditorNode
::
add_io_error
(
TTR
(
"Error running post-import script:"
)
+
" "
+
post_import_script_path
+
"
\n
"
+
TTR
(
"Did you return a Node-derived object in the `post_import()` method?"
));
return
err
;
return
err
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment