diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-01-07 06:34:12 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-01-07 06:34:12 +0300 |
commit | 529692872813d86d59ac443c45ac3a385e432b8d (patch) | |
tree | cdd599d369714cca8fc33322f1f52c828ea85067 /release/scripts/import_web3d.py | |
parent | 70c5417ed688bad5024eb46cae867ce623accb2c (diff) |
confusion between Inline and externproto nodes
Diffstat (limited to 'release/scripts/import_web3d.py')
-rwxr-xr-x | release/scripts/import_web3d.py | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/release/scripts/import_web3d.py b/release/scripts/import_web3d.py index 5ea433ad484..efe30d9a9b8 100755 --- a/release/scripts/import_web3d.py +++ b/release/scripts/import_web3d.py @@ -983,24 +983,24 @@ class vrmlNode(object): child.parse(0) # if self.getExternprotoName(): - - if not extern_key: # if none is spesified - use the name - extern_key = self.getSpec() - - if extern_key: - - self.children.remove(child) - child.parent = None + if self.getExternprotoName(): + if not extern_key: # if none is spesified - use the name + extern_key = self.getSpec() - 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 |