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:
authorCampbell Barton <ideasman42@gmail.com>2011-01-03 16:33:07 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-01-03 16:33:07 +0300
commita41ec761fdec42c87bfc4767e669d9394b73367c (patch)
tree73d69d0d6d0ad2a9c22270b0a605ddd5211300f3
parent72e8a0c5525da6d85db6547f96555d2308885677 (diff)
rename layout.red_alert to alert, may be themeable some day.
-rw-r--r--release/scripts/ui/properties_object_constraint.py2
-rw-r--r--release/scripts/ui/properties_particle.py6
-rw-r--r--source/blender/makesrna/intern/rna_ui.c8
3 files changed, 8 insertions, 8 deletions
diff --git a/release/scripts/ui/properties_object_constraint.py b/release/scripts/ui/properties_object_constraint.py
index 4c3544fa48a..130b9f52567 100644
--- a/release/scripts/ui/properties_object_constraint.py
+++ b/release/scripts/ui/properties_object_constraint.py
@@ -722,7 +722,7 @@ class OBJECT_PT_constraints(ConstraintButtonsPanel, bpy.types.Panel):
if ob.mode == 'POSE':
box = layout.box()
- box.red_alert = True;
+ box.alert = True;
box.label(icon='INFO', text="See Bone Constraints tab to Add Constraints to active bone")
else:
layout.operator_menu_enum("object.constraint_add", "type")
diff --git a/release/scripts/ui/properties_particle.py b/release/scripts/ui/properties_particle.py
index e8bfdf913f1..ebc24df225b 100644
--- a/release/scripts/ui/properties_particle.py
+++ b/release/scripts/ui/properties_particle.py
@@ -546,7 +546,7 @@ class PARTICLE_PT_physics(ParticleButtonsPanel, bpy.types.Panel):
if part.physics_type == 'KEYED':
col = row.column()
#doesn't work yet
- #col.red_alert = key.valid
+ #col.alert = key.valid
col.prop(key, "object", text="")
col.prop(key, "system", text="System")
col = row.column()
@@ -556,7 +556,7 @@ class PARTICLE_PT_physics(ParticleButtonsPanel, bpy.types.Panel):
elif part.physics_type == 'BOIDS':
sub = row.row()
#doesn't work yet
- #sub.red_alert = key.valid
+ #sub.alert = key.valid
sub.prop(key, "object", text="")
sub.prop(key, "system", text="System")
@@ -564,7 +564,7 @@ class PARTICLE_PT_physics(ParticleButtonsPanel, bpy.types.Panel):
elif part.physics_type == 'FLUID':
sub = row.row()
#doesn't work yet
- #sub.red_alert = key.valid
+ #sub.alert = key.valid
sub.prop(key, "object", text="")
sub.prop(key, "system", text="System")
diff --git a/source/blender/makesrna/intern/rna_ui.c b/source/blender/makesrna/intern/rna_ui.c
index e66fed2c50d..0c26741f06c 100644
--- a/source/blender/makesrna/intern/rna_ui.c
+++ b/source/blender/makesrna/intern/rna_ui.c
@@ -449,12 +449,12 @@ static void rna_UILayout_active_set(PointerRNA *ptr, int value)
uiLayoutSetActive(ptr->data, value);
}
-static int rna_UILayout_red_alert_get(PointerRNA *ptr)
+static int rna_UILayout_alert_get(PointerRNA *ptr)
{
return uiLayoutGetRedAlert(ptr->data);
}
-static void rna_UILayout_red_alert_set(PointerRNA *ptr, int value)
+static void rna_UILayout_alert_set(PointerRNA *ptr, int value)
{
uiLayoutSetRedAlert(ptr->data, value);
}
@@ -562,8 +562,8 @@ static void rna_def_ui_layout(BlenderRNA *brna)
RNA_def_property_boolean_funcs(prop, "rna_UILayout_enabled_get", "rna_UILayout_enabled_set");
RNA_def_property_ui_text(prop, "Enabled", "When false, this (sub)layout is greyed out.");
- prop= RNA_def_property(srna, "red_alert", PROP_BOOLEAN, PROP_NONE);
- RNA_def_property_boolean_funcs(prop, "rna_UILayout_red_alert_get", "rna_UILayout_red_alert_set");
+ prop= RNA_def_property(srna, "alert", PROP_BOOLEAN, PROP_NONE);
+ RNA_def_property_boolean_funcs(prop, "rna_UILayout_alert_get", "rna_UILayout_alert_set");
prop= RNA_def_property(srna, "alignment", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_items(prop, alignment_items);