another fix for error in the view raycast template
authorCampbell Barton <ideasman42@gmail.com>
Sun, 1 Jul 2012 13:57:32 +0000 (13:57 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 1 Jul 2012 13:57:32 +0000 (13:57 +0000)
release/scripts/templates/operator_modal_view3d_raycast.py

index 6df423e37171741b65e305c844444a2b3f7ede3f..3236c08cc8c3b3a3a9b719cafe79a1aee5ab9ea7 100644 (file)
@@ -25,12 +25,12 @@ def main(context, event, ray_max=10000.0):
             if obj.type == 'MESH':
                 yield (obj, obj.matrix_world.copy())
 
-        if obj.dupli_type != 'NONE':
-            obj.dupli_list_create(scene)
-            for dob in obj.dupli_list:
-                obj_dupli = dob.object
-                if obj_dupli.type == 'MESH':
-                    yield (obj_dupli, dob.matrix.copy())
+            if obj.dupli_type != 'NONE':
+                obj.dupli_list_create(scene)
+                for dob in obj.dupli_list:
+                    obj_dupli = dob.object
+                    if obj_dupli.type == 'MESH':
+                        yield (obj_dupli, dob.matrix.copy())
 
             obj.dupli_list_clear()