diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-07-01 17:57:32 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-07-01 17:57:32 +0400 |
commit | f81c38ce2dd5e244c7a9aa47736c6aba44b84fb0 (patch) | |
tree | dd7ff686f8c5d70e4f61d5901aa1872ce2e4cb68 /release/scripts | |
parent | 1eae6b5fb54906ce6b13d1ff2bcf9f85f2ffb7ad (diff) |
another fix for error in the view raycast template
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/templates/operator_modal_view3d_raycast.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/release/scripts/templates/operator_modal_view3d_raycast.py b/release/scripts/templates/operator_modal_view3d_raycast.py index 6df423e3717..3236c08cc8c 100644 --- a/release/scripts/templates/operator_modal_view3d_raycast.py +++ b/release/scripts/templates/operator_modal_view3d_raycast.py @@ -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() |