Browse Source

Fix documentation on post import script

pkowal1982 9 years ago
parent
commit
aa539814e9
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):
       # 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
 parameter is actually the root node of the scene).