[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34038] trunk/blender: rename layout. red_alert to alert, may be themeable some day.
Campbell Barton
ideasman42 at gmail.com
Mon Jan 3 14:33:07 CET 2011
Revision: 34038
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=34038
Author: campbellbarton
Date: 2011-01-03 14:33:07 +0100 (Mon, 03 Jan 2011)
Log Message:
-----------
rename layout.red_alert to alert, may be themeable some day.
Modified Paths:
--------------
trunk/blender/release/scripts/ui/properties_object_constraint.py
trunk/blender/release/scripts/ui/properties_particle.py
trunk/blender/source/blender/makesrna/intern/rna_ui.c
Modified: trunk/blender/release/scripts/ui/properties_object_constraint.py
===================================================================
--- trunk/blender/release/scripts/ui/properties_object_constraint.py 2011-01-03 13:13:54 UTC (rev 34037)
+++ trunk/blender/release/scripts/ui/properties_object_constraint.py 2011-01-03 13:33:07 UTC (rev 34038)
@@ -722,7 +722,7 @@
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")
Modified: trunk/blender/release/scripts/ui/properties_particle.py
===================================================================
--- trunk/blender/release/scripts/ui/properties_particle.py 2011-01-03 13:13:54 UTC (rev 34037)
+++ trunk/blender/release/scripts/ui/properties_particle.py 2011-01-03 13:33:07 UTC (rev 34038)
@@ -546,7 +546,7 @@
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 @@
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 @@
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")
Modified: trunk/blender/source/blender/makesrna/intern/rna_ui.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_ui.c 2011-01-03 13:13:54 UTC (rev 34037)
+++ trunk/blender/source/blender/makesrna/intern/rna_ui.c 2011-01-03 13:33:07 UTC (rev 34038)
@@ -449,12 +449,12 @@
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 @@
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);
More information about the Bf-blender-cvs
mailing list