[Bf-extensions-cvs] [db48600] master: Update for changes to Python API
Campbell Barton
noreply at git.blender.org
Mon Jan 11 08:01:18 CET 2016
Commit: db4860093c4df8ee8e337f0e9929cbf6a6757723
Author: Campbell Barton
Date: Mon Jan 11 17:54:07 2016 +1100
Branches: master
https://developer.blender.org/rBACdb4860093c4df8ee8e337f0e9929cbf6a6757723
Update for changes to Python API
===================================================================
M object_drop_to_ground.py
===================================================================
diff --git a/object_drop_to_ground.py b/object_drop_to_ground.py
index fd1bb9f..e4bf607 100644
--- a/object_drop_to_ground.py
+++ b/object_drop_to_ground.py
@@ -104,9 +104,8 @@ def drop_objects(self, context):
if not lowest_world_co:
print(ob.type, 'is not supported. Failed to drop', ob.name)
continue
- hit_location, hit_normal, hit_index = tmp_ground.ray_cast(lowest_world_co,
- lowest_world_co + down)
- if hit_index == -1:
+ is_hit, hit_location, hit_normal, hit_index = tmp_ground.ray_cast(lowest_world_co, down)
+ if not is_hit:
print(ob.name, 'didn\'t hit the ground')
continue
More information about the Bf-extensions-cvs
mailing list