forked from bartvdbraak/blender
Cleanup: python
This commit is contained in:
parent
6973e26bf9
commit
89b6c72f8d
@ -232,7 +232,7 @@ class BakeAction(Operator):
|
|||||||
|
|
||||||
action = None
|
action = None
|
||||||
if self.use_current_action:
|
if self.use_current_action:
|
||||||
obj = bpy.context.object
|
obj = context.object
|
||||||
if obj.animation_data:
|
if obj.animation_data:
|
||||||
action = obj.animation_data.action
|
action = obj.animation_data.action
|
||||||
|
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
# <pep8-80 compliant>
|
# <pep8-80 compliant>
|
||||||
|
|
||||||
import bpy
|
|
||||||
from bpy.types import Menu
|
from bpy.types import Menu
|
||||||
|
|
||||||
|
|
||||||
|
@ -988,7 +988,7 @@ class CLIP_PT_proxy(CLIP_PT_clip_view_panel, Panel):
|
|||||||
col.prop(clip.proxy, "directory")
|
col.prop(clip.proxy, "directory")
|
||||||
|
|
||||||
col.operator("clip.rebuild_proxy",
|
col.operator("clip.rebuild_proxy",
|
||||||
text="Build Proxy / Timecode" if clip.source == 'MOVIE' \
|
text="Build Proxy / Timecode" if clip.source == 'MOVIE'
|
||||||
else "Build Proxy")
|
else "Build Proxy")
|
||||||
|
|
||||||
if clip.source == 'MOVIE':
|
if clip.source == 'MOVIE':
|
||||||
|
Loading…
Reference in New Issue
Block a user