Revision: 18391
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=18391
Author: campbellbarton
Date: 2009-01-07 04:34:12 +0100 (Wed, 07 Jan 2009)
Log Message:
-----------
confusion between Inline and externproto nodes
Modified Paths:
--------------
trunk/blender/release/scripts/import_web3d.py
Modified: trunk/blender/release/scripts/import_web3d.py
===================================================================
--- trunk/blender/release/scripts/import_web3d.py 2009-01-06 23:41:16 UTC
(rev 18390)
+++ trunk/blender/release/scripts/import_web3d.py 2009-01-07 03:34:12 UTC
(rev 18391)
@@ -983,25 +983,25 @@
child.parse(0)
# if
self.getExternprotoName():
-
- if not extern_key: # if
none is spesified - use the name
- extern_key =
self.getSpec()
-
- if extern_key:
+ if
self.getExternprotoName():
+ if not
extern_key: # if none is spesified - use the name
+
extern_key = self.getSpec()
-
self.children.remove(child)
- child.parent =
None
-
- extern_child =
child.findSpecRecursive(extern_key)
-
- if extern_child:
-
self.children.append(extern_child)
-
extern_child.parent = self
+ if extern_key:
- if
DEBUG: print "\tEXTERNPROTO ID found!:", extern_key
- else:
- print
"\tEXTERNPROTO ID not found!:", extern_key
+
self.children.remove(child)
+
child.parent = None
+
extern_child = child.findSpecRecursive(extern_key)
+
+ if
extern_child:
+
self.children.append(extern_child)
+
extern_child.parent = self
+
+
if DEBUG: print "\tEXTERNPROTO ID found!:", extern_key
+ else:
+
print "\tEXTERNPROTO ID not found!:", extern_key
+
# Watch it! - restore
lines
lines[:] = lines_old
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs
