diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2014-04-28 15:20:37 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2014-04-28 15:25:14 +0400 |
commit | 912151763d0a217ba53e3d566fae655d1f8b8553 (patch) | |
tree | c4f1d658cc4f69939e99b0c942e2c2cad8f90f9b /source/blender/makesrna/intern/rna_constraint.c | |
parent | 2aa9d33404ca96e6bd42224ebac19696e03550f8 (diff) |
Followup to rB8714ae09f894: better not have several RNA properties affect a single DNA one.
Diffstat (limited to 'source/blender/makesrna/intern/rna_constraint.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_constraint.c | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/source/blender/makesrna/intern/rna_constraint.c b/source/blender/makesrna/intern/rna_constraint.c index 1a18a1d8a31..5fbaae71482 100644 --- a/source/blender/makesrna/intern/rna_constraint.c +++ b/source/blender/makesrna/intern/rna_constraint.c @@ -1719,146 +1719,146 @@ static void rna_def_constraint_transform(BlenderRNA *brna) /* Rot */ prop = RNA_def_property(srna, "from_min_x_rot", PROP_FLOAT, PROP_ANGLE); - RNA_def_property_float_sdna(prop, NULL, "from_min[0]"); + RNA_def_property_float_sdna(prop, NULL, "from_min_rot[0]"); RNA_def_property_ui_range(prop, DEG2RADF(-180.0f), DEG2RADF(180.0f), 10, 3); RNA_def_property_ui_text(prop, "From Minimum X", "Bottom range of X axis source motion"); RNA_def_property_update(prop, NC_OBJECT | ND_CONSTRAINT, "rna_Constraint_update"); prop = RNA_def_property(srna, "from_min_y_rot", PROP_FLOAT, PROP_ANGLE); - RNA_def_property_float_sdna(prop, NULL, "from_min[1]"); + RNA_def_property_float_sdna(prop, NULL, "from_min_rot[1]"); RNA_def_property_ui_range(prop, DEG2RADF(-180.0f), DEG2RADF(180.0f), 10, 3); RNA_def_property_ui_text(prop, "From Minimum Y", "Bottom range of Y axis source motion"); RNA_def_property_update(prop, NC_OBJECT | ND_CONSTRAINT, "rna_Constraint_update"); prop = RNA_def_property(srna, "from_min_z_rot", PROP_FLOAT, PROP_ANGLE); - RNA_def_property_float_sdna(prop, NULL, "from_min[2]"); + RNA_def_property_float_sdna(prop, NULL, "from_min_rot[2]"); RNA_def_property_ui_range(prop, DEG2RADF(-180.0f), DEG2RADF(180.0f), 10, 3); RNA_def_property_ui_text(prop, "From Minimum Z", "Bottom range of Z axis source motion"); RNA_def_property_update(prop, NC_OBJECT | ND_CONSTRAINT, "rna_Constraint_update"); prop = RNA_def_property(srna, "from_max_x_rot", PROP_FLOAT, PROP_ANGLE); - RNA_def_property_float_sdna(prop, NULL, "from_max[0]"); + RNA_def_property_float_sdna(prop, NULL, "from_max_rot[0]"); RNA_def_property_ui_range(prop, DEG2RADF(-180.0f), DEG2RADF(180.0f), 10, 3); RNA_def_property_ui_text(prop, "From Maximum X", "Top range of X axis source motion"); RNA_def_property_update(prop, NC_OBJECT | ND_CONSTRAINT, "rna_Constraint_update"); prop = RNA_def_property(srna, "from_max_y_rot", PROP_FLOAT, PROP_ANGLE); - RNA_def_property_float_sdna(prop, NULL, "from_max[1]"); + RNA_def_property_float_sdna(prop, NULL, "from_max_rot[1]"); RNA_def_property_ui_range(prop, DEG2RADF(-180.0f), DEG2RADF(180.0f), 10, 3); RNA_def_property_ui_text(prop, "From Maximum Y", "Top range of Y axis source motion"); RNA_def_property_update(prop, NC_OBJECT | ND_CONSTRAINT, "rna_Constraint_update"); prop = RNA_def_property(srna, "from_max_z_rot", PROP_FLOAT, PROP_ANGLE); - RNA_def_property_float_sdna(prop, NULL, "from_max[2]"); + RNA_def_property_float_sdna(prop, NULL, "from_max_rot[2]"); RNA_def_property_ui_range(prop, DEG2RADF(-180.0f), DEG2RADF(180.0f), 10, 3); RNA_def_property_ui_text(prop, "From Maximum Z", "Top range of Z axis source motion"); RNA_def_property_update(prop, NC_OBJECT | ND_CONSTRAINT, "rna_Constraint_update"); prop = RNA_def_property(srna, "to_min_x_rot", PROP_FLOAT, PROP_ANGLE); - RNA_def_property_float_sdna(prop, NULL, "to_min[0]"); + RNA_def_property_float_sdna(prop, NULL, "to_min_rot[0]"); RNA_def_property_ui_range(prop, DEG2RADF(-180.0f), DEG2RADF(180.0f), 10, 3); RNA_def_property_ui_text(prop, "To Minimum X", "Bottom range of X axis destination motion"); RNA_def_property_update(prop, NC_OBJECT | ND_CONSTRAINT, "rna_Constraint_update"); prop = RNA_def_property(srna, "to_min_y_rot", PROP_FLOAT, PROP_ANGLE); - RNA_def_property_float_sdna(prop, NULL, "to_min[1]"); + RNA_def_property_float_sdna(prop, NULL, "to_min_rot[1]"); RNA_def_property_ui_range(prop, DEG2RADF(-180.0f), DEG2RADF(180.0f), 10, 3); RNA_def_property_ui_text(prop, "To Minimum Y", "Bottom range of Y axis destination motion"); RNA_def_property_update(prop, NC_OBJECT | ND_CONSTRAINT, "rna_Constraint_update"); prop = RNA_def_property(srna, "to_min_z_rot", PROP_FLOAT, PROP_ANGLE); - RNA_def_property_float_sdna(prop, NULL, "to_min[2]"); + RNA_def_property_float_sdna(prop, NULL, "to_min_rot[2]"); RNA_def_property_ui_range(prop, DEG2RADF(-180.0f), DEG2RADF(180.0f), 10, 3); RNA_def_property_ui_text(prop, "To Minimum Z", "Bottom range of Z axis destination motion"); RNA_def_property_update(prop, NC_OBJECT | ND_CONSTRAINT, "rna_Constraint_update"); prop = RNA_def_property(srna, "to_max_x_rot", PROP_FLOAT, PROP_ANGLE); - RNA_def_property_float_sdna(prop, NULL, "to_max[0]"); + RNA_def_property_float_sdna(prop, NULL, "to_max_rot[0]"); RNA_def_property_ui_range(prop, DEG2RADF(-180.0f), DEG2RADF(180.0f), 10, 3); RNA_def_property_ui_text(prop, "To Maximum X", "Top range of X axis destination motion"); RNA_def_property_update(prop, NC_OBJECT | ND_CONSTRAINT, "rna_Constraint_update"); prop = RNA_def_property(srna, "to_max_y_rot", PROP_FLOAT, PROP_ANGLE); - RNA_def_property_float_sdna(prop, NULL, "to_max[1]"); + RNA_def_property_float_sdna(prop, NULL, "to_max_rot[1]"); RNA_def_property_ui_range(prop, DEG2RADF(-180.0f), DEG2RADF(180.0f), 10, 3); RNA_def_property_ui_text(prop, "To Maximum Y", "Top range of Y axis destination motion"); RNA_def_property_update(prop, NC_OBJECT | ND_CONSTRAINT, "rna_Constraint_update"); prop = RNA_def_property(srna, "to_max_z_rot", PROP_FLOAT, PROP_ANGLE); - RNA_def_property_float_sdna(prop, NULL, "to_max[2]"); + RNA_def_property_float_sdna(prop, NULL, "to_max_rot[2]"); RNA_def_property_ui_range(prop, DEG2RADF(-180.0f), DEG2RADF(180.0f), 10, 3); RNA_def_property_ui_text(prop, "To Maximum Z", "Top range of Z axis destination motion"); RNA_def_property_update(prop, NC_OBJECT | ND_CONSTRAINT, "rna_Constraint_update"); /* Scale */ prop = RNA_def_property(srna, "from_min_x_scale", PROP_FLOAT, PROP_NONE); - RNA_def_property_float_sdna(prop, NULL, "from_min[0]"); + RNA_def_property_float_sdna(prop, NULL, "from_min_scale[0]"); RNA_def_property_ui_range(prop, -1000.0f, 1000.0f, 10, 3); RNA_def_property_ui_text(prop, "From Minimum X", "Bottom range of X axis source motion"); RNA_def_property_update(prop, NC_OBJECT | ND_CONSTRAINT, "rna_Constraint_update"); prop = RNA_def_property(srna, "from_min_y_scale", PROP_FLOAT, PROP_NONE); - RNA_def_property_float_sdna(prop, NULL, "from_min[1]"); + RNA_def_property_float_sdna(prop, NULL, "from_min_scale[1]"); RNA_def_property_ui_range(prop, -1000.0f, 1000.0f, 10, 3); RNA_def_property_ui_text(prop, "From Minimum Y", "Bottom range of Y axis source motion"); RNA_def_property_update(prop, NC_OBJECT | ND_CONSTRAINT, "rna_Constraint_update"); prop = RNA_def_property(srna, "from_min_z_scale", PROP_FLOAT, PROP_NONE); - RNA_def_property_float_sdna(prop, NULL, "from_min[2]"); + RNA_def_property_float_sdna(prop, NULL, "from_min_scale[2]"); RNA_def_property_ui_range(prop, -1000.0f, 1000.0f, 10, 3); RNA_def_property_ui_text(prop, "From Minimum Z", "Bottom range of Z axis source motion"); RNA_def_property_update(prop, NC_OBJECT | ND_CONSTRAINT, "rna_Constraint_update"); prop = RNA_def_property(srna, "from_max_x_scale", PROP_FLOAT, PROP_NONE); - RNA_def_property_float_sdna(prop, NULL, "from_max[0]"); + RNA_def_property_float_sdna(prop, NULL, "from_max_scale[0]"); RNA_def_property_ui_range(prop, -1000.0f, 1000.0f, 10, 3); RNA_def_property_ui_text(prop, "From Maximum X", "Top range of X axis source motion"); RNA_def_property_update(prop, NC_OBJECT | ND_CONSTRAINT, "rna_Constraint_update"); prop = RNA_def_property(srna, "from_max_y_scale", PROP_FLOAT, PROP_NONE); - RNA_def_property_float_sdna(prop, NULL, "from_max[1]"); + RNA_def_property_float_sdna(prop, NULL, "from_max_scale[1]"); RNA_def_property_ui_range(prop, -1000.0f, 1000.0f, 10, 3); RNA_def_property_ui_text(prop, "From Maximum Y", "Top range of Y axis source motion"); RNA_def_property_update(prop, NC_OBJECT | ND_CONSTRAINT, "rna_Constraint_update"); prop = RNA_def_property(srna, "from_max_z_scale", PROP_FLOAT, PROP_NONE); - RNA_def_property_float_sdna(prop, NULL, "from_max[2]"); + RNA_def_property_float_sdna(prop, NULL, "from_max_scale[2]"); RNA_def_property_ui_range(prop, -1000.0f, 1000.0f, 10, 3); RNA_def_property_ui_text(prop, "From Maximum Z", "Top range of Z axis source motion"); RNA_def_property_update(prop, NC_OBJECT | ND_CONSTRAINT, "rna_Constraint_update"); prop = RNA_def_property(srna, "to_min_x_scale", PROP_FLOAT, PROP_NONE); - RNA_def_property_float_sdna(prop, NULL, "to_min[0]"); + RNA_def_property_float_sdna(prop, NULL, "to_min_scale[0]"); RNA_def_property_ui_range(prop, -1000.0f, 1000.0f, 10, 3); RNA_def_property_ui_text(prop, "To Minimum X", "Bottom range of X axis destination motion"); RNA_def_property_update(prop, NC_OBJECT | ND_CONSTRAINT, "rna_Constraint_update"); prop = RNA_def_property(srna, "to_min_y_scale", PROP_FLOAT, PROP_NONE); - RNA_def_property_float_sdna(prop, NULL, "to_min[1]"); + RNA_def_property_float_sdna(prop, NULL, "to_min_scale[1]"); RNA_def_property_ui_range(prop, -1000.0f, 1000.0f, 10, 3); RNA_def_property_ui_text(prop, "To Minimum Y", "Bottom range of Y axis destination motion"); RNA_def_property_update(prop, NC_OBJECT | ND_CONSTRAINT, "rna_Constraint_update"); prop = RNA_def_property(srna, "to_min_z_scale", PROP_FLOAT, PROP_NONE); - RNA_def_property_float_sdna(prop, NULL, "to_min[2]"); + RNA_def_property_float_sdna(prop, NULL, "to_min_scale[2]"); RNA_def_property_ui_range(prop, -1000.0f, 1000.0f, 10, 3); RNA_def_property_ui_text(prop, "To Minimum Z", "Bottom range of Z axis destination motion"); RNA_def_property_update(prop, NC_OBJECT | ND_CONSTRAINT, "rna_Constraint_update"); prop = RNA_def_property(srna, "to_max_x_scale", PROP_FLOAT, PROP_NONE); - RNA_def_property_float_sdna(prop, NULL, "to_max[0]"); + RNA_def_property_float_sdna(prop, NULL, "to_max_scale[0]"); RNA_def_property_ui_range(prop, -1000.0f, 1000.0f, 10, 3); RNA_def_property_ui_text(prop, "To Maximum X", "Top range of X axis destination motion"); RNA_def_property_update(prop, NC_OBJECT | ND_CONSTRAINT, "rna_Constraint_update"); prop = RNA_def_property(srna, "to_max_y_scale", PROP_FLOAT, PROP_NONE); - RNA_def_property_float_sdna(prop, NULL, "to_max[1]"); + RNA_def_property_float_sdna(prop, NULL, "to_max_scale[1]"); RNA_def_property_ui_range(prop, -1000.0f, 1000.0f, 10, 3); RNA_def_property_ui_text(prop, "To Maximum Y", "Top range of Y axis destination motion"); RNA_def_property_update(prop, NC_OBJECT | ND_CONSTRAINT, "rna_Constraint_update"); prop = RNA_def_property(srna, "to_max_z_scale", PROP_FLOAT, PROP_NONE); - RNA_def_property_float_sdna(prop, NULL, "to_max[2]"); + RNA_def_property_float_sdna(prop, NULL, "to_max_scale[2]"); RNA_def_property_ui_range(prop, -1000.0f, 1000.0f, 10, 3); RNA_def_property_ui_text(prop, "To Maximum Z", "Top range of Z axis destination motion"); RNA_def_property_update(prop, NC_OBJECT | ND_CONSTRAINT, "rna_Constraint_update"); |