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
diff options
context:
space:
mode:
authorScott Petrovic <scottpetrovic@gmail.com>2013-12-12 21:39:15 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-12-12 21:40:30 +0400
commitc701082a928b4390f1fb910f2eb7520b45b4cdf1 (patch)
treef4112628d42741beec4b3922a6fdac7811c7949a /source/blender/editors/interface
parent6c96535fd887c96cd013812d53085b28a5203d5a (diff)
RNA: Add pixels property type
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r--source/blender/editors/interface/interface.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c
index 45a73e217fe..0b86743b622 100644
--- a/source/blender/editors/interface/interface.c
+++ b/source/blender/editors/interface/interface.c
@@ -2473,6 +2473,9 @@ void ui_check_but(uiBut *but)
if (pstype == PROP_PERCENTAGE) {
drawstr_suffix = "%";
}
+ else if (pstype == PROP_PIXEL) {
+ drawstr_suffix = " px";
+ }
}
if (drawstr_suffix) {