Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorWilliam Reynish <billrey@me.com>2019-02-26 15:02:50 +0300
committerWilliam Reynish <billrey@me.com>2019-02-26 15:03:38 +0300
commit95b7d2be2c8dd87744f9d6ac5bb98f33f4f0875a (patch)
treef5bee9ae206a04b4d223b5bbdc71907e992fa9e1 /source
parent96f894ae34fc322a299435e995781334a84033d6 (diff)
Units: GP Canvas Offset
Use PROP_TRANSLATION for this to make it correctly display units in the UI.
Diffstat (limited to 'source')
-rw-r--r--source/blender/makesrna/intern/rna_gpencil.c2
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);