浏览代码

*** empty log message ***

Mark Mine 25 年之前
父节点
当前提交
69b5116768
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      direct/src/leveleditor/LevelEditor.py

+ 3 - 2
direct/src/leveleditor/LevelEditor.py

@@ -698,8 +698,9 @@ class LevelEditor(NodePath, PandaObject):
                 # If insert, pick a new random style
                 if hotKey == 'insert':
                     self.setRandomBuildingStyle(dnaNode, dnaNode.getName())
-                # Get a new building width
-                self.setCurrent('building_width', self.getRandomWallWidth())
+                    # Get a new building width
+                    self.setCurrent('building_width',
+                                    self.getRandomWallWidth())
                 dnaNode.setWidth(self.getCurrent('building_width'))
         
 	# Add the DNA to the active parent