Revision: 39509
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39509
Author: moguri
Date: 2011-08-17 20:44:15 +0000 (Wed, 17 Aug 2011)
Log Message:
-----------
BGE: Upon further investigation this should have been 8 since up/down and
left/right both are just one axis each. So, in actuality, the number of
directions = 2, not 4, and thus JOYAXIS_MAX/directions = 16/2 = 8. 8 was also
the max used in 2.4x.
Modified Paths:
--------------
trunk/blender/source/blender/makesrna/intern/rna_sensor.c
Modified: trunk/blender/source/blender/makesrna/intern/rna_sensor.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_sensor.c 2011-08-17
20:17:43 UTC (rev 39508)
+++ trunk/blender/source/blender/makesrna/intern/rna_sensor.c 2011-08-17
20:44:15 UTC (rev 39509)
@@ -803,7 +803,7 @@
prop= RNA_def_property(srna, "axis_number", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "axis");
RNA_def_property_ui_text(prop, "Axis Number", "Specify which axis pair
to use, 1 is usually the main direction input");
- RNA_def_property_range(prop, 1, 4);
+ RNA_def_property_range(prop, 1, 8);
RNA_def_property_update(prop, NC_LOGIC, NULL);
prop= RNA_def_property(srna, "axis_threshold", PROP_INT, PROP_NONE);
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs