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:
authorCampbell Barton <ideasman42@gmail.com>2011-08-19 00:01:30 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-08-19 00:01:30 +0400
commit0de911210215fb6730977c68c0b310b840638b1d (patch)
tree4a583966194887eff72a2b552f90ee3a94e547b2 /source/blender/editors/interface/interface_intern.h
parent042d4d3509069a2dab9ed3a8f5629099d09548c2 (diff)
store a pointer to the units system in the uiBlock since the button code was doing context lookups for the scene quite a lot.
Diffstat (limited to 'source/blender/editors/interface/interface_intern.h')
-rw-r--r--source/blender/editors/interface/interface_intern.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_intern.h b/source/blender/editors/interface/interface_intern.h
index 242210e01bb..40b98bebcd0 100644
--- a/source/blender/editors/interface/interface_intern.h
+++ b/source/blender/editors/interface/interface_intern.h
@@ -332,7 +332,9 @@ struct uiBlock {
void *evil_C; // XXX hack for dynamic operator enums
float _hsv[3]; // XXX, only access via ui_block_hsv_get()
- char color_profile; // color profile for correcting linear colors for display
+ char color_profile; // color profile for correcting linear colors for display
+ struct UnitSettings *unit; // unit system, used a lot for numeric buttons so include here rather then fetching through the scene every time.
+
};
typedef struct uiSafetyRct {