diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-01-02 20:15:45 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-01-02 20:15:45 +0400 |
commit | ea2224e28d179d1bba3e278750a42c36fa3939c5 (patch) | |
tree | bb70162f24c455bc8b866f2253985b19b9d92bf0 /release | |
parent | c0e1f23e5a6ade738aea75571f2fe374bfecd854 (diff) |
changes needed for EDL import to work again.
- add sequence.update(data=False) function.
- made some sequence vars editable.
- correct some comments.
also rename rna function sequence.getStripElem() --> strip_elem_from_frame()
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/modules/bpy_extras/object_utils.py | 3 | ||||
-rw-r--r-- | release/scripts/startup/bl_operators/add_mesh_torus.py | 5 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_sequencer.py | 4 |
3 files changed, 4 insertions, 8 deletions
diff --git a/release/scripts/modules/bpy_extras/object_utils.py b/release/scripts/modules/bpy_extras/object_utils.py index 46731b807f7..4e1385cff80 100644 --- a/release/scripts/modules/bpy_extras/object_utils.py +++ b/release/scripts/modules/bpy_extras/object_utils.py @@ -26,7 +26,6 @@ __all__ = ( import bpy -import mathutils from bpy.props import BoolProperty, FloatVectorProperty @@ -80,7 +79,7 @@ def add_object_align_init(context, operator): rotation = space_data.region_3d.view_matrix.to_3x3().inverted() rotation.resize_4x4() else: - rotation = mathutils.Matrix() + rotation = Matrix() # set the operator properties if operator: diff --git a/release/scripts/startup/bl_operators/add_mesh_torus.py b/release/scripts/startup/bl_operators/add_mesh_torus.py index 552247f0940..63e796e2b5d 100644 --- a/release/scripts/startup/bl_operators/add_mesh_torus.py +++ b/release/scripts/startup/bl_operators/add_mesh_torus.py @@ -19,7 +19,6 @@ # <pep8-80 compliant> import bpy from bpy.types import Operator -import mathutils from bpy.props import (FloatProperty, IntProperty, @@ -31,9 +30,7 @@ from bpy_extras import object_utils def add_torus(major_rad, minor_rad, major_seg, minor_seg): from math import cos, sin, pi - - Vector = mathutils.Vector - Quaternion = mathutils.Quaternion + from mathutils import Vector, Quaternion PI_2 = pi * 2.0 z_axis = 0.0, 0.0, 1.0 diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py index d6f8de93c0f..64ad5656bcd 100644 --- a/release/scripts/startup/bl_ui/space_sequencer.py +++ b/release/scripts/startup/bl_ui/space_sequencer.py @@ -433,7 +433,7 @@ class SEQUENCER_PT_edit(SequencerButtonsPanel, Panel): elem = False if strip.type == 'IMAGE': - elem = strip.getStripElem(frame_current) + elem = strip.strip_elem_from_frame(frame_current) elif strip.type == 'MOVIE': elem = strip.elements[0] @@ -595,7 +595,7 @@ class SEQUENCER_PT_input(SequencerButtonsPanel, Panel): # Current element for the filename - elem = strip.getStripElem(context.scene.frame_current) + elem = strip.strip_elem_from_frame(context.scene.frame_current) if elem: split = layout.split(percentage=0.2) split.label(text="File:") |