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:
authorBastien Montagne <montagne29@wanadoo.fr>2014-04-02 15:09:43 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2014-04-02 15:09:43 +0400
commit9b3bd5582be99e26b6c3651f66db516982bc8461 (patch)
tree66178e37290f42cca50837ecf46c0010a675d8bc /source/blender/editors/interface/interface_layout.c
parent4faef1e10c9d1177eae6350b4471206e91afaff8 (diff)
Replace resize code of image scopes by use of new GRIP button.
This deduplicates/simplifies some code. Also cleanup up a bit scopes UI code! Use new GRIP button for uiList grab-resize. This allows us to greatly simplifies the code, and get rid of a few hacks in uiList event handling! Note autosize mode of uiList is now trigered by any value of list_grip below a given threshold, rather than the fixed zero value... Reviewers: brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D343
Diffstat (limited to 'source/blender/editors/interface/interface_layout.c')
-rw-r--r--source/blender/editors/interface/interface_layout.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c
index be57987ee3c..1686abab9c7 100644
--- a/source/blender/editors/interface/interface_layout.c
+++ b/source/blender/editors/interface/interface_layout.c
@@ -2528,15 +2528,6 @@ uiLayout *uiLayoutListBox(uiLayout *layout, uiList *ui_list, PointerRNA *ptr, Pr
but->rnapoin = *actptr;
but->rnaprop = actprop;
- /* Resizing data. */
- /* Note: we can't use usual "num button" value handling, as it only tries rnapoin when it is non-NULL... :/
- * So just setting but->poin, not but->pointype.
- */
- but->poin = (void *)&ui_list->list_grip;
- but->hardmin = but->softmin = 0.0f;
- but->hardmax = but->softmax = 1000.0f; /* Should be more than enough! */
- but->a1 = 0.0f;
-
/* only for the undo string */
if (but->flag & UI_BUT_UNDO) {
but->tip = RNA_property_description(actprop);