diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-08-21 11:15:11 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-08-21 11:15:11 +0400 |
commit | 87eaf5759320b87c4e526597618d936a430e6a62 (patch) | |
tree | 98bf736ae6f338c784494bcd1a04c8aea0fa2ae9 /release | |
parent | 5c3d2b13b89b1560d8ea1f93e0fe5d0c0d718504 (diff) |
fix for errors in constraints and modifiers made when rna renaming.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/ui/properties_data_modifier.py | 8 | ||||
-rw-r--r-- | release/scripts/ui/properties_object_constraint.py | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/release/scripts/ui/properties_data_modifier.py b/release/scripts/ui/properties_data_modifier.py index 8779c25100c..46ac5ae570f 100644 --- a/release/scripts/ui/properties_data_modifier.py +++ b/release/scripts/ui/properties_data_modifier.py @@ -496,7 +496,7 @@ class DATA_PT_modifiers(ModifierButtonsPanel, bpy.types.Panel): col = split.column() - if md.mode == 'PROJECT': + if md.wrap_method == 'PROJECT': col.label(text="Axis:") col.prop(md, "use_project_x") col.prop(md, "use_project_y") @@ -516,7 +516,7 @@ class DATA_PT_modifiers(ModifierButtonsPanel, bpy.types.Panel): layout.label(text="Auxiliary Target:") layout.prop(md, "auxiliary_target", text="") - elif md.mode == 'NEAREST_SURFACEPOINT': + elif md.wrap_method == 'NEAREST_SURFACEPOINT': layout.prop(md, "use_keep_above_surface") def SIMPLE_DEFORM(self, layout, ob, md): @@ -543,7 +543,7 @@ class DATA_PT_modifiers(ModifierButtonsPanel, bpy.types.Panel): col.label(text="Deform:") col.prop(md, "factor") col.prop(md, "limits", slider=True) - if md.mode in ('TAPER', 'STRETCH'): + if md.deform_method in ('TAPER', 'STRETCH'): col.prop(md, "lock_x") col.prop(md, "lock_y") @@ -653,7 +653,7 @@ class DATA_PT_modifiers(ModifierButtonsPanel, bpy.types.Panel): col = split.column() col.prop(md, "use_normal") sub = col.column() - sub.active = md.normals + sub.active = md.use_normal sub.prop(md, "use_normal_x", text="X") sub.prop(md, "use_normal_y", text="Y") sub.prop(md, "use_normal_z", text="Z") diff --git a/release/scripts/ui/properties_object_constraint.py b/release/scripts/ui/properties_object_constraint.py index aca05433d9a..fe60465735c 100644 --- a/release/scripts/ui/properties_object_constraint.py +++ b/release/scripts/ui/properties_object_constraint.py @@ -674,6 +674,10 @@ class ConstraintButtonsPanel(): col = layout.column() col.prop(con, "rotation_range", text="Pivot When") + def SCRIPT(self, context, layout, con): + layout.label("blender 2.5 has no py-constraints") + + class OBJECT_PT_constraints(ConstraintButtonsPanel, bpy.types.Panel): bl_label = "Object Constraints" bl_context = "constraint" |