~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to release/scripts/bpymodules/BPyMesh_redux.py

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2007-05-17 11:47:59 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20070517114759-yp4ybrnhp2u7pk66
Tags: 2.44-1
* New upstream release.
* Drop debian/patches/01_64bits_stupidity, not needed anymore: as of this
  version blender is 64 bits safe again. Adjust README.Debian accordingly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
# --------------------------------------------------------------------------
23
23
 
24
24
import Blender
 
25
import bpy
25
26
Vector= Blender.Mathutils.Vector
26
27
Ang= Blender.Mathutils.AngleBetweenVecs
27
28
CrossVecs= Blender.Mathutils.CrossVecs
642
643
# Example usage
643
644
def main():
644
645
        Blender.Window.EditMode(0)
645
 
        scn= Blender.Scene.GetCurrent()
646
 
        active_ob= scn.getActiveObject()
 
646
        scn= bpy.data.scenes.active
 
647
        active_ob= scn.objects.active
647
648
        t= Blender.sys.time()
648
649
        redux(active_ob, 0.5)
649
650
        print '%.4f' % (Blender.sys.time()-t)