Skip to content

Commit

Permalink
Shape key list: select keys by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mrachinskiy committed Jan 12, 2019
1 parent 1553085 commit 674d3e8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
else:
import bpy
from bpy.props import PointerProperty, CollectionProperty

from . import (
var,
settings,
Expand All @@ -75,6 +76,7 @@
ui.VIEW3D_PT_commotion_animation_offset,
ui.VIEW3D_PT_commotion_animation_utils,
ui.VIEW3D_PT_commotion_shape_keys,
# TODO 2.8 slow parent support
# ui.VIEW3D_PT_commotion_slow_parent,
ui.VIEW3D_PT_commotion_proxy_effector,
offset_op.ANIM_OT_commotion_animation_offset,
Expand Down
3 changes: 2 additions & 1 deletion op_offset/offset_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ def invoke(self, context, event):

def preset_add(self, ob):
return
ob["commotion_preset"] = self.preset
# TODO remove preset system
# ob["commotion_preset"] = self.preset

def execute(self, context):
self.preset = {
Expand Down
2 changes: 1 addition & 1 deletion settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@


class CommotionShapeKeyCollection(PropertyGroup):
selected: BoolProperty(description="Affect referenced shape key")
selected: BoolProperty(description="Affect referenced shape key", default=True)


# Add-on preferences
Expand Down
1 change: 1 addition & 0 deletions ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ def draw(self, context):

row = layout.row(align=True)
row.operator("anim.commotion_animation_offset", text="Offset Animation", icon="FORCE_HARMONIC")
# TODO remove preset system
# row.operator("object.commotion_preset_apply", text="", icon="EYEDROPPER")


Expand Down

0 comments on commit 674d3e8

Please sign in to comment.