BGE: Improve UI of Anisotropic Friction subpanel
authorJorge Bernal <jbernalmartinez@gmail.com>
Thu, 12 Feb 2015 05:38:21 +0000 (06:38 +0100)
committerJorge Bernal <jbernalmartinez@gmail.com>
Thu, 12 Feb 2015 05:38:21 +0000 (06:38 +0100)
Little patch that introduces X: Y: and Z: texts over anisotropic friction sliders

Reviewers: moguri, campbellbarton

Reviewed By: campbellbarton

Differential Revision: https://developer.blender.org/D1073

source/blender/makesrna/intern/rna_object.c

index 60cf753513520694eeb8baf658e8275637870b0d..18d506a3503b71b99d12ec868fb2712548b62595 100644 (file)
@@ -1816,7 +1816,7 @@ static void rna_def_object_game_settings(BlenderRNA *brna)
        RNA_def_property_boolean_sdna(prop, NULL, "gameflag", OB_ANISOTROPIC_FRICTION);
        RNA_def_property_ui_text(prop, "Anisotropic Friction", "Enable anisotropic friction");
 
-       prop = RNA_def_property(srna, "friction_coefficients", PROP_FLOAT, PROP_NONE);
+       prop = RNA_def_property(srna, "friction_coefficients", PROP_FLOAT, PROP_XYZ);
        RNA_def_property_float_sdna(prop, NULL, "anisotropicFriction");
        RNA_def_property_range(prop, 0.0, 1.0);
        RNA_def_property_ui_text(prop, "Friction Coefficients",