Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-09-24 07:50:13 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-09-24 07:50:13 +0400
commit212a9312393781839d016532ba6e340b45387ee8 (patch)
treed9e03b1942e0cdc4fe54d702ee86232d80418120 /space_view3d_copy_attributes.py
parentb28d300ccd5cf8bce2843317fc3f7ca3dd0f99b9 (diff)
use the operator rather then its properties for drawing the UI, now its supported in the api.
Diffstat (limited to 'space_view3d_copy_attributes.py')
-rw-r--r--space_view3d_copy_attributes.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/space_view3d_copy_attributes.py b/space_view3d_copy_attributes.py
index aed81ef1..a47ba171 100644
--- a/space_view3d_copy_attributes.py
+++ b/space_view3d_copy_attributes.py
@@ -236,9 +236,8 @@ class CopySelectedPoseConstraints(bpy.types.Operator):
def draw(self, context):
layout = self.layout
- props = self.properties
for idx, const in enumerate(context.active_pose_bone.constraints):
- layout.prop(props, 'selection', index=idx, text=const.name,
+ layout.prop(self, "selection", index=idx, text=const.name,
toggle=True)
def execute(self, context):
@@ -490,9 +489,8 @@ class CopySelectedObjectConstraints(bpy.types.Operator):
def draw(self, context):
layout = self.layout
- props = self.properties
for idx, const in enumerate(context.active_object.constraints):
- layout.prop(props, 'selection', index=idx, text=const.name,
+ layout.prop(self, "selection", index=idx, text=const.name,
toggle=True)
def execute(self, context):
@@ -521,9 +519,8 @@ class CopySelectedObjectModifiers(bpy.types.Operator):
def draw(self, context):
layout = self.layout
- props = self.properties
for idx, const in enumerate(context.active_object.modifiers):
- layout.prop(props, 'selection', index=idx, text=const.name,
+ layout.prop(self, 'selection', index=idx, text=const.name,
toggle=True)
def execute(self, context):
@@ -653,8 +650,8 @@ class MESH_OT_CopyFaceSettings(bpy.types.Operator):
def execute(self, context):
mesh = context.object.data
- mode = self.properties.get('mode', 'MODE')
- layername = self.properties.get('layer')
+ mode = getattr(self, 'mode', 'MODE')
+ layername = getattr(self, 'layer', None)
# Switching out of edit mode updates the selected state of faces and
# makes the data from the uv texture and vertex color layers available.