Page Menu
Home
Search
Configure Global Search
Log In
Paste
P1502
Multires up and down buttons
Active
Public
Actions
Authored by
Hans Goudey (HooglyBoogly)
on Jul 2 2020, 9:11 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Tags
None
Subscribers
None
int
total_levels
=
RNA_int_get
(
&
ptr
,
"total_levels"
);
split
=
uiLayoutSplit
(
layout
,
0.25f
,
false
);
PointerRNA
op_ptr
;
uiItemFullO
(
split
,
"OBJECT_OT_subdivision_set"
,
""
,
ICON_REW
,
NULL
,
WM_OP_INVOKE_DEFAULT
,
UI_ITEM_R_EXPAND
,
&
op_ptr
);
RNA_int_set
(
&
op_ptr
,
"level"
,
total_levels
);
uiItemFullO
(
split
,
"OBJECT_OT_subdivision_set"
,
""
,
ICON_TRIA_LEFT
,
NULL
,
WM_OP_INVOKE_DEFAULT
,
UI_ITEM_R_EXPAND
,
&
op_ptr
);
RNA_int_set
(
&
op_ptr
,
"level"
,
-1
);
RNA_boolean_set
(
&
op_ptr
,
"relative"
,
true
);
uiItemFullO
(
split
,
"OBJECT_OT_subdivision_set"
,
""
,
ICON_TRIA_RIGHT
,
NULL
,
WM_OP_INVOKE_DEFAULT
,
UI_ITEM_R_EXPAND
,
&
op_ptr
);
RNA_int_set
(
&
op_ptr
,
"level"
,
1
);
RNA_boolean_set
(
&
op_ptr
,
"relative"
,
true
);
uiItemFullO
(
split
,
"OBJECT_OT_subdivision_set"
,
""
,
ICON_FF
,
NULL
,
WM_OP_INVOKE_DEFAULT
,
UI_ITEM_R_EXPAND
,
&
op_ptr
);
RNA_int_set
(
&
op_ptr
,
"level"
,
total_levels
);
Event Timeline
Hans Goudey (HooglyBoogly)
created this paste.
Jul 2 2020, 9:11 PM
Hans Goudey (HooglyBoogly)
mentioned this in
D8187: UI: Adjust Multiresolution Modifier Layout
.
Hans Goudey (HooglyBoogly)
edited the content of this paste.
(Show Details)
Jul 20 2020, 9:18 PM
Log In to Comment