[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [58182] branches/soc-2013-bge/release/ scripts/startup/bl_operators/object.py: Fixing an error caused by changing the settings of the level of detail generation operator .

Daniel Stokes kupomail at gmail.com
Thu Jul 11 22:48:11 CEST 2013


Revision: 58182
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=58182
Author:   kupoman
Date:     2013-07-11 20:48:11 +0000 (Thu, 11 Jul 2013)
Log Message:
-----------
Fixing an error caused by changing the settings of the level of detail generation operator.

Modified Paths:
--------------
    branches/soc-2013-bge/release/scripts/startup/bl_operators/object.py

Modified: branches/soc-2013-bge/release/scripts/startup/bl_operators/object.py
===================================================================
--- branches/soc-2013-bge/release/scripts/startup/bl_operators/object.py	2013-07-11 17:56:30 UTC (rev 58181)
+++ branches/soc-2013-bge/release/scripts/startup/bl_operators/object.py	2013-07-11 20:48:11 UTC (rev 58182)
@@ -891,9 +891,12 @@
         for i in range(1, self.count):
             scene.objects.active = ob
             bpy.ops.object.duplicate()
-            bpy.ops.object.lod_add()
             lod = bpy.context.selected_objects[0]
 
+            scene.objects.active = ob
+            bpy.ops.object.lod_add()
+            scene.objects.active = lod
+
             if lod_prefix:
                 lod.name = lod_prefix + str(i) + lod_name
             else:




More information about the Bf-blender-cvs mailing list