[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34437] trunk/blender/source/blender: Logic UI + missing listener in Outliner - changes on Armature Sensor and Visibility Actuator

Dalai Felinto dfelinto at gmail.com
Fri Jan 21 09:59:09 CET 2011


Revision: 34437
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=34437
Author:   dfelinto
Date:     2011-01-21 08:59:08 +0000 (Fri, 21 Jan 2011)
Log Message:
-----------
Logic UI + missing listener in Outliner - changes on Armature Sensor and Visibility Actuator
* fix for armature sensor (Status Changed doesn't use any value to evaluate itself) + renamed "Test Type" to "Test"
* visibility tooltip was wrong - now we can change visibility from the physic buttons instead of the outliner
* bonus * when you change the visibility from the physics panel the icon in the outliner wasn't changing

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_logic/logic_window.c
    trunk/blender/source/blender/editors/space_outliner/space_outliner.c
    trunk/blender/source/blender/makesrna/intern/rna_actuator.c
    trunk/blender/source/blender/makesrna/intern/rna_sensor.c

Modified: trunk/blender/source/blender/editors/space_logic/logic_window.c
===================================================================
--- trunk/blender/source/blender/editors/space_logic/logic_window.c	2011-01-21 06:12:56 UTC (rev 34436)
+++ trunk/blender/source/blender/editors/space_logic/logic_window.c	2011-01-21 08:59:08 UTC (rev 34437)
@@ -3263,7 +3263,8 @@
 	}
 	row = uiLayoutRow(layout, 1);
 	uiItemR(row, ptr, "test_type", 0, NULL, ICON_NULL);
-	uiItemR(row, ptr, "value", 0, NULL, ICON_NULL);
+	if (RNA_enum_get(ptr, "test_type") != SENS_ARM_STATE_CHANGED)
+		uiItemR(row, ptr, "value", 0, NULL, ICON_NULL);
 }
 
 static void draw_sensor_collision(uiLayout *layout, PointerRNA *ptr, bContext *C)

Modified: trunk/blender/source/blender/editors/space_outliner/space_outliner.c
===================================================================
--- trunk/blender/source/blender/editors/space_outliner/space_outliner.c	2011-01-21 06:12:56 UTC (rev 34436)
+++ trunk/blender/source/blender/editors/space_outliner/space_outliner.c	2011-01-21 08:59:08 UTC (rev 34437)
@@ -117,6 +117,7 @@
 					break;
 				case ND_BONE_ACTIVE:
 				case ND_BONE_SELECT:
+				case ND_DRAW:
 				case ND_PARENT:
 				case ND_OB_SHADING:
 					ED_region_tag_redraw(ar);

Modified: trunk/blender/source/blender/makesrna/intern/rna_actuator.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_actuator.c	2011-01-21 06:12:56 UTC (rev 34436)
+++ trunk/blender/source/blender/makesrna/intern/rna_actuator.c	2011-01-21 08:59:08 UTC (rev 34437)
@@ -1591,7 +1591,7 @@
 
 	prop= RNA_def_property(srna, "use_visible", PROP_BOOLEAN, PROP_NONE);
 	RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", ACT_VISIBILITY_INVISIBLE);
-	RNA_def_property_ui_text(prop, "Visible", "Set the objects visible. Initialized from the objects render restriction toggle (access in the outliner)");
+	RNA_def_property_ui_text(prop, "Visible", "Set the objects visible. Initialized from the object render restriction toggle in physics button");
 	RNA_def_property_update(prop, NC_LOGIC, NULL);
 
 	prop= RNA_def_property(srna, "use_occlusion", PROP_BOOLEAN, PROP_NONE);

Modified: trunk/blender/source/blender/makesrna/intern/rna_sensor.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_sensor.c	2011-01-21 06:12:56 UTC (rev 34436)
+++ trunk/blender/source/blender/makesrna/intern/rna_sensor.c	2011-01-21 08:59:08 UTC (rev 34437)
@@ -502,7 +502,7 @@
 	prop= RNA_def_property(srna, "test_type", PROP_ENUM, PROP_NONE);
 	RNA_def_property_enum_sdna(prop, NULL, "type");
 	RNA_def_property_enum_items(prop, prop_type_items);
-	RNA_def_property_ui_text(prop, "Test Type", "Type of value and test");
+	RNA_def_property_ui_text(prop, "Test", "Type of value and test");
 	RNA_def_property_update(prop, NC_LOGIC, NULL);
 
 	prop= RNA_def_property(srna, "bone", PROP_STRING, PROP_NONE);




More information about the Bf-blender-cvs mailing list