Left: | ||
Right: |
OLD | NEW |
---|---|
1 /* | 1 /* |
2 * ***** BEGIN GPL LICENSE BLOCK ***** | 2 * ***** BEGIN GPL LICENSE BLOCK ***** |
3 * | 3 * |
4 * This program is free software; you can redistribute it and/or | 4 * This program is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU General Public License | 5 * modify it under the terms of the GNU General Public License |
6 * as published by the Free Software Foundation; either version 2 | 6 * as published by the Free Software Foundation; either version 2 |
7 * of the License, or (at your option) any later version. | 7 * of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 1869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1880 { | 1880 { |
1881 StructRNA *srna; | 1881 StructRNA *srna; |
1882 PropertyRNA* prop; | 1882 PropertyRNA* prop; |
1883 | 1883 |
1884 static EnumPropertyItem prop_type_items[] ={ | 1884 static EnumPropertyItem prop_type_items[] ={ |
1885 {ACT_ARM_RUN, "RUN", 0, "Run Armature", ""}, | 1885 {ACT_ARM_RUN, "RUN", 0, "Run Armature", ""}, |
1886 {ACT_ARM_ENABLE, "ENABLE", 0, "Enable", ""}, | 1886 {ACT_ARM_ENABLE, "ENABLE", 0, "Enable", ""}, |
1887 {ACT_ARM_DISABLE, "DISABLE", 0, "Disable", ""}, | 1887 {ACT_ARM_DISABLE, "DISABLE", 0, "Disable", ""}, |
1888 {ACT_ARM_SETTARGET, "SETTARGET", 0, "Set Target", ""}, | 1888 {ACT_ARM_SETTARGET, "SETTARGET", 0, "Set Target", ""}, |
1889 {ACT_ARM_SETWEIGHT, "SETWEIGHT", 0, "Set Weight", ""}, | 1889 {ACT_ARM_SETWEIGHT, "SETWEIGHT", 0, "Set Weight", ""}, |
1890 {ACT_ARM_SETINFLUENCE, "SETINFLUENCE", 0, "Set Influence", ""}, | |
1890 {0, NULL, 0, NULL, NULL}}; | 1891 {0, NULL, 0, NULL, NULL}}; |
1891 | 1892 |
1892 srna= RNA_def_struct(brna, "ArmatureActuator", "Actuator"); | 1893 srna= RNA_def_struct(brna, "ArmatureActuator", "Actuator"); |
1893 RNA_def_struct_ui_text(srna, "Armature Actuator", ""); | 1894 RNA_def_struct_ui_text(srna, "Armature Actuator", ""); |
1894 RNA_def_struct_sdna_from(srna, "bArmatureActuator", "data"); | 1895 RNA_def_struct_sdna_from(srna, "bArmatureActuator", "data"); |
1895 | 1896 |
1896 prop= RNA_def_property(srna, "mode", PROP_ENUM, PROP_NONE); | 1897 prop= RNA_def_property(srna, "mode", PROP_ENUM, PROP_NONE); |
1897 RNA_def_property_enum_sdna(prop, NULL, "type"); | 1898 RNA_def_property_enum_sdna(prop, NULL, "type"); |
1898 RNA_def_property_enum_items(prop, prop_type_items); | 1899 RNA_def_property_enum_items(prop, prop_type_items); |
1899 RNA_def_property_ui_text(prop, "Constraint Type", ""); | 1900 RNA_def_property_ui_text(prop, "Constraint Type", ""); |
(...skipping 19 matching lines...) Expand all Loading... | |
1919 RNA_def_property_pointer_sdna(prop, NULL, "subtarget"); | 1920 RNA_def_property_pointer_sdna(prop, NULL, "subtarget"); |
1920 RNA_def_property_struct_type(prop, "Object"); | 1921 RNA_def_property_struct_type(prop, "Object"); |
1921 RNA_def_property_flag(prop, PROP_EDITABLE); | 1922 RNA_def_property_flag(prop, PROP_EDITABLE); |
1922 RNA_def_property_ui_text(prop, "Secondary Target", "Set this object as t he secondary target of the constraint (only IK polar target at the moment)"); | 1923 RNA_def_property_ui_text(prop, "Secondary Target", "Set this object as t he secondary target of the constraint (only IK polar target at the moment)"); |
1923 RNA_def_property_update(prop, NC_LOGIC, NULL); | 1924 RNA_def_property_update(prop, NC_LOGIC, NULL); |
1924 | 1925 |
1925 prop= RNA_def_property(srna, "weight", PROP_FLOAT, PROP_NONE); | 1926 prop= RNA_def_property(srna, "weight", PROP_FLOAT, PROP_NONE); |
1926 RNA_def_property_float_sdna(prop, NULL, "weight"); | 1927 RNA_def_property_float_sdna(prop, NULL, "weight"); |
1927 RNA_def_property_range(prop, 0.0, 1.0); | 1928 RNA_def_property_range(prop, 0.0, 1.0); |
1928 RNA_def_property_ui_text(prop, "Weight", "Weight of this constraint"); | 1929 RNA_def_property_ui_text(prop, "Weight", "Weight of this constraint"); |
1929 RNA_def_property_update(prop, NC_LOGIC, NULL); | 1930 RNA_def_property_update(prop, NC_LOGIC, NULL); |
Moguri
2012/02/26 03:20:04
It again looks like you're sneaking in extra chang
dfelinto
2012/03/03 02:45:38
not really. this is one of those .diff things. the
| |
1931 | |
1932 prop= RNA_def_property(srna, "influence", PROP_FLOAT, PROP_NONE); | |
1933 RNA_def_property_float_sdna(prop, NULL, "influence"); | |
1934 RNA_def_property_range(prop, 0.0, 1.0); | |
1935 RNA_def_property_ui_text(prop, "Influence", "Influence of this constrain t"); | |
1936 RNA_def_property_update(prop, NC_LOGIC, NULL); | |
1930 } | 1937 } |
1931 | 1938 |
1932 static void rna_def_steering_actuator(BlenderRNA *brna) | 1939 static void rna_def_steering_actuator(BlenderRNA *brna) |
1933 { | 1940 { |
1934 StructRNA *srna; | 1941 StructRNA *srna; |
1935 PropertyRNA *prop; | 1942 PropertyRNA *prop; |
1936 | 1943 |
1937 static EnumPropertyItem prop_type_items[] ={ | 1944 static EnumPropertyItem prop_type_items[] ={ |
1938 {ACT_STEERING_SEEK, "SEEK", 0, "Seek", ""}, | 1945 {ACT_STEERING_SEEK, "SEEK", 0, "Seek", ""}, |
1939 {ACT_STEERING_FLEE, "FLEE", 0, "Flee", ""}, | 1946 {ACT_STEERING_FLEE, "FLEE", 0, "Flee", ""}, |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2050 rna_def_twodfilter_actuator(brna); | 2057 rna_def_twodfilter_actuator(brna); |
2051 rna_def_parent_actuator(brna); | 2058 rna_def_parent_actuator(brna); |
2052 rna_def_shape_action_actuator(brna); | 2059 rna_def_shape_action_actuator(brna); |
2053 rna_def_state_actuator(brna); | 2060 rna_def_state_actuator(brna); |
2054 rna_def_armature_actuator(brna); | 2061 rna_def_armature_actuator(brna); |
2055 rna_def_steering_actuator(brna); | 2062 rna_def_steering_actuator(brna); |
2056 } | 2063 } |
2057 | 2064 |
2058 #endif | 2065 #endif |
2059 | 2066 |
OLD | NEW |