Browse Source

Merge pull request #213 from pkowal1982/post_import_script

Fix documentation on post import script
Rémi Verschelde 9 years ago
parent
commit
f60e04a481
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tutorials/3d/importing_3d_scenes.rst

+ 1 - 1
tutorials/3d/importing_3d_scenes.rst

@@ -381,7 +381,7 @@ Create a script that basically looks like this:
 
 
     func post_import(scene):
     func post_import(scene):
       # do your stuff here
       # do your stuff here
-      pass # scene contains the imported scene starting from the root node
+      return scene # remember to return the imported scene
 
 
 The post-import function takes the imported scene as parameter (the
 The post-import function takes the imported scene as parameter (the
 parameter is actually the root node of the scene).
 parameter is actually the root node of the scene).