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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2010-09-11 03:39:43 +0400
committerThomas Dinges <blender@dingto.org>2010-09-11 03:39:43 +0400
commitcd4fb20b73edac8ecc5c05240acb49003e216d61 (patch)
treec8159bce60984cc200fa3b1dcdd95d755f43d34d /release/scripts/ui/properties_data_armature_rigify.py
parent40bf22e9557eeacdd408a38687e182b16ed83538 (diff)
Patch [#23759] more replace self.properties.foo --> self.foo for bf-extensions/trunk/py/scripts
by Filiciss Muhgue (filiciss). Thanks a lot! Part 1: Trunk, second part of patch will be committed to Extensions.
Diffstat (limited to 'release/scripts/ui/properties_data_armature_rigify.py')
-rw-r--r--release/scripts/ui/properties_data_armature_rigify.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/release/scripts/ui/properties_data_armature_rigify.py b/release/scripts/ui/properties_data_armature_rigify.py
index ef96e094928..f7961821277 100644
--- a/release/scripts/ui/properties_data_armature_rigify.py
+++ b/release/scripts/ui/properties_data_armature_rigify.py
@@ -187,8 +187,8 @@ class Sample(bpy.types.Operator):
def execute(self, context):
import rigify
reload(rigify)
- final = (self.properties.metarig_type == "")
- objects = rigify.generate_test(context, metarig_type=self.properties.metarig_type, GENERATE_FINAL=final)
+ final = (self.metarig_type == "")
+ objects = rigify.generate_test(context, metarig_type=self.metarig_type, GENERATE_FINAL=final)
if len(objects) > 1:
for i, (obj_meta, obj_gen) in enumerate(objects):
@@ -238,7 +238,7 @@ class AsScript(bpy.types.Operator):
reload(rigify_utils)
obj = context.object
code = rigify_utils.write_meta_rig(obj)
- path = self.properties.filepath
+ path = self.filepath
file = open(path, "w")
file.write(code)
file.close()
@@ -248,7 +248,7 @@ class AsScript(bpy.types.Operator):
def invoke(self, context, event):
import os
obj = context.object
- self.properties.filepath = os.path.splitext(bpy.data.filepath)[0] + "-" + bpy.path.clean_name(obj.name) + ".py"
+ self.filepath = os.path.splitext(bpy.data.filepath)[0] + "-" + bpy.path.clean_name(obj.name) + ".py"
wm = context.window_manager
wm.add_fileselect(self)
return {'RUNNING_MODAL'}