diff options
author | William Reynish <billrey@me.com> | 2019-02-26 15:02:50 +0300 |
---|---|---|
committer | William Reynish <billrey@me.com> | 2019-02-26 15:03:38 +0300 |
commit | 95b7d2be2c8dd87744f9d6ac5bb98f33f4f0875a (patch) | |
tree | f5bee9ae206a04b4d223b5bbdc71907e992fa9e1 /source/blender | |
parent | 96f894ae34fc322a299435e995781334a84033d6 (diff) |
Units: GP Canvas Offset
Use PROP_TRANSLATION for this to make it correctly display units in the UI.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/makesrna/intern/rna_gpencil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_gpencil.c b/source/blender/makesrna/intern/rna_gpencil.c index 7b68c9bd203..bc0a28ec883 100644 --- a/source/blender/makesrna/intern/rna_gpencil.c +++ b/source/blender/makesrna/intern/rna_gpencil.c @@ -1455,7 +1455,7 @@ static void rna_def_gpencil_grid(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Grid Subdivisions", "Number of subdivisions in each side of symmetry line"); RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, "rna_GPencil_update"); - prop = RNA_def_property(srna, "offset", PROP_FLOAT, PROP_XYZ); + prop = RNA_def_property(srna, "offset", PROP_FLOAT, PROP_TRANSLATION); RNA_def_property_float_sdna(prop, NULL, "offset"); RNA_def_property_range(prop, -FLT_MAX, FLT_MAX); RNA_def_property_array(prop, 2); |