Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-01-07 06:34:12 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-01-07 06:34:12 +0300
commit529692872813d86d59ac443c45ac3a385e432b8d (patch)
treecdd599d369714cca8fc33322f1f52c828ea85067 /release
parent70c5417ed688bad5024eb46cae867ce623accb2c (diff)
confusion between Inline and externproto nodes
Diffstat (limited to 'release')
-rwxr-xr-xrelease/scripts/import_web3d.py32
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