UI: icon set updates Andrzej Ambroz, and various fixes.
* Text editor word wrap, line numbers & syntax toggles now use consistent icons that don’t change when you enable or disable them. * Replaced icon toggle buttons in the snapping popover with normal checkboxes and descriptive text labels. This makes it clearer which item is the main radio button, is more consistent with other popovers, and allows us to use more descriptive text. * Added correct icons for grease pencil add menu. * Added bespoke icons for grease pencil modifiers. * Added icon for particle instance modifier. * Added icon for fake user on & off states. * Added correct icons for enabling/disabling modifiers in the dopesheet & f-curve editor. * Made it so the restrict viewport & restrict render toggles for modifier update correctly when enabled or disabled, by flipping the order in the icon sheet. This also required changing the outliner to match. * Removed the few old remaining icons in the old style and made sure to replace the last places where they were used. * Updated many icons to be clearer & more consistent.
This commit is contained in:
committed by
Brecht Van Lommel
parent
b5667c2ca7
commit
b18ac77df3
@@ -4282,8 +4282,7 @@ static void draw_setting_widget(bAnimContext *ac, bAnimListElem *ale, const bAni
|
||||
break;
|
||||
|
||||
case ACHANNEL_SETTING_MOD_OFF: /* modifiers disabled */
|
||||
icon = ICON_MODIFIER;
|
||||
usetoggle = false;
|
||||
icon = ICON_MODIFIER_OFF;
|
||||
tooltip = TIP_("F-Curve modifiers are disabled");
|
||||
break;
|
||||
|
||||
|
||||
@@ -760,7 +760,7 @@ bool ANIM_driver_vars_paste(ReportList *reports, FCurve *fcu, bool replace)
|
||||
/* NOTE: Used by ANIM_OT_driver_button_add and UI_OT_eyedropper_driver */
|
||||
// XXX: These names need reviewing
|
||||
EnumPropertyItem prop_driver_create_mapping_types[] = {
|
||||
{CREATEDRIVER_MAPPING_1_N, "SINGLE_MANY", ICON_UI, "All from Target",
|
||||
{CREATEDRIVER_MAPPING_1_N, "SINGLE_MANY", 0, "All from Target",
|
||||
"Drive all components of this property using the target picked"},
|
||||
{CREATEDRIVER_MAPPING_1_1, "DIRECT", 0, "Single from Target",
|
||||
"Drive this component of this property using the target picked"},
|
||||
|
||||
@@ -71,15 +71,15 @@ DEF_ICON(GRIP)
|
||||
DEF_ICON(DOT)
|
||||
DEF_ICON(COLLAPSEMENU)
|
||||
DEF_ICON(X)
|
||||
DEF_ICON_BLANK(5) /* XXX 'DOWNARROW' icon! */
|
||||
DEF_ICON_COLOR(GO_LEFT)
|
||||
DEF_ICON_COLOR(PLUG)
|
||||
DEF_ICON_COLOR(UI)
|
||||
DEF_ICON_BLANK(74)
|
||||
DEF_ICON_BLANK(75)
|
||||
DEF_ICON_BLANK(76)
|
||||
DEF_ICON_BLANK(77)
|
||||
DEF_ICON(NODE)
|
||||
DEF_ICON(NODE_SEL)
|
||||
|
||||
/* ui */
|
||||
DEF_ICON_COLOR(FULLSCREEN)
|
||||
DEF_ICON_BLANK(FULLSCREEN)
|
||||
DEF_ICON(WORKSPACE)
|
||||
DEF_ICON(RIGHTARROW_THIN)
|
||||
DEF_ICON(BORDERMOVE)
|
||||
@@ -89,7 +89,7 @@ DEF_ICON(REMOVE)
|
||||
DEF_ICON(PANEL_CLOSE)
|
||||
DEF_ICON_COLOR(COPY_ID)
|
||||
DEF_ICON(EYEDROPPER)
|
||||
DEF_ICON_COLOR(LINK_AREA)
|
||||
DEF_ICON_BLANK(92)
|
||||
DEF_ICON(AUTO)
|
||||
DEF_ICON(CHECKBOX_DEHLT) /* de-Hilight - Checkbox OFF */
|
||||
DEF_ICON(CHECKBOX_HLT) /* Hilight - Checkbox ON */
|
||||
@@ -100,27 +100,27 @@ DEF_ICON(PINNED)
|
||||
DEF_ICON(SCREEN_BACK)
|
||||
DEF_ICON(RIGHTARROW)
|
||||
DEF_ICON(DOWNARROW_HLT)
|
||||
DEF_ICON_COLOR(DOTSUP)
|
||||
DEF_ICON_COLOR(DOTSDOWN)
|
||||
DEF_ICON(LINK)
|
||||
DEF_ICON(INLINK)
|
||||
DEF_ICON_COLOR(PLUGIN)
|
||||
DEF_ICON_BLANK(103)
|
||||
DEF_ICON_BLANK(104)
|
||||
DEF_ICON_BLANK(105)
|
||||
DEF_ICON_BLANK(106)
|
||||
DEF_ICON(PLUGIN)
|
||||
|
||||
/* various ui */
|
||||
DEF_ICON(HELP)
|
||||
DEF_ICON(GHOST_ENABLED)
|
||||
DEF_ICON(COLOR) /* see COLOR_RED/GREEN/BLUE */
|
||||
DEF_ICON(LINKED)
|
||||
DEF_ICON(UNLINKED)
|
||||
DEF_ICON(LINKED)
|
||||
DEF_ICON(HAND)
|
||||
DEF_ICON(ZOOM_ALL)
|
||||
DEF_ICON(ZOOM_SELECTED)
|
||||
DEF_ICON(ZOOM_PREVIOUS)
|
||||
DEF_ICON(ZOOM_IN)
|
||||
DEF_ICON(ZOOM_OUT)
|
||||
DEF_ICON_COLOR(RENDER_REGION)
|
||||
DEF_ICON_COLOR(BORDER_RECT)
|
||||
DEF_ICON_COLOR(BORDER_LASSO)
|
||||
DEF_ICON_BLANK(121)
|
||||
DEF_ICON_BLANK(122)
|
||||
DEF_ICON_BLANK(123)
|
||||
DEF_ICON(FREEZE)
|
||||
DEF_ICON(STYLUS_PRESSURE)
|
||||
DEF_ICON(GHOST_DISABLED)
|
||||
@@ -129,10 +129,10 @@ DEF_ICON(FILE_TICK)
|
||||
DEF_ICON(QUIT)
|
||||
DEF_ICON(URL)
|
||||
DEF_ICON(RECOVER_LAST)
|
||||
DEF_ICON(30)
|
||||
DEF_ICON(THREE_DOTS)
|
||||
DEF_ICON(FULLSCREEN_ENTER)
|
||||
DEF_ICON(FULLSCREEN_EXIT)
|
||||
DEF_ICON_BLANK(33)
|
||||
DEF_ICON_BLANK(135)
|
||||
|
||||
/* BUTTONS */
|
||||
DEF_ICON_SHADING(LIGHT)
|
||||
@@ -141,26 +141,26 @@ DEF_ICON_SHADING(TEXTURE)
|
||||
DEF_ICON(ANIM)
|
||||
DEF_ICON_SHADING(WORLD)
|
||||
DEF_ICON(SCENE)
|
||||
DEF_ICON(EDIT)
|
||||
DEF_ICON(GAME)
|
||||
DEF_ICON(RADIO)
|
||||
DEF_ICON_COLOR(SCRIPT)
|
||||
DEF_ICON_BLANK(144)
|
||||
DEF_ICON_BLANK(145)
|
||||
DEF_ICON_BLANK(146)
|
||||
DEF_ICON(SCRIPT)
|
||||
DEF_ICON_MODIFIER(PARTICLES)
|
||||
DEF_ICON(PHYSICS)
|
||||
DEF_ICON(SPEAKER)
|
||||
DEF_ICON(TEXTURE_SHADED)
|
||||
DEF_ICON_BLANK(151)
|
||||
DEF_ICON(TOOL_SETTINGS)
|
||||
DEF_ICON(SHADERFX)
|
||||
DEF_ICON_BLANK(44)
|
||||
DEF_ICON_BLANK(45)
|
||||
DEF_ICON_BLANK(46)
|
||||
DEF_ICON_BLANK(47)
|
||||
DEF_ICON_BLANK(48)
|
||||
DEF_ICON_BLANK(49)
|
||||
DEF_ICON_BLANK(50)
|
||||
DEF_ICON_BLANK(51)
|
||||
DEF_ICON_BLANK(52)
|
||||
DEF_ICON_COLOR(BLANK1) // Not actually blank - this is used all over the place
|
||||
DEF_ICON_BLANK(154)
|
||||
DEF_ICON_BLANK(155)
|
||||
DEF_ICON_BLANK(156)
|
||||
DEF_ICON_BLANK(157)
|
||||
DEF_ICON_BLANK(158)
|
||||
DEF_ICON_BLANK(159)
|
||||
DEF_ICON_BLANK(160)
|
||||
DEF_ICON(BLANK1) // Not actually blank - this is used all over the place
|
||||
DEF_ICON(FAKE_USER_OFF)
|
||||
DEF_ICON(FAKE_USER_ON)
|
||||
/* EDITORS */
|
||||
DEF_ICON(VIEW3D)
|
||||
DEF_ICON(GRAPH)
|
||||
@@ -171,23 +171,23 @@ DEF_ICON(IMAGE)
|
||||
DEF_ICON(INFO)
|
||||
DEF_ICON(SEQUENCE)
|
||||
DEF_ICON(TEXT)
|
||||
DEF_ICON_BLANK(62)
|
||||
DEF_ICON_BLANK(174)
|
||||
DEF_ICON(SOUND)
|
||||
DEF_ICON(ACTION)
|
||||
DEF_ICON(NLA)
|
||||
DEF_ICON(PREFERENCES)
|
||||
DEF_ICON(TIME)
|
||||
DEF_ICON(NODETREE)
|
||||
DEF_ICON(LOGIC)
|
||||
DEF_ICON_BLANK(181)
|
||||
DEF_ICON(CONSOLE)
|
||||
DEF_ICON_BLANK(54)
|
||||
DEF_ICON_BLANK(183)
|
||||
DEF_ICON(CLIP)
|
||||
DEF_ICON(ASSET_MANAGER)
|
||||
DEF_ICON(NODE_COMPOSITING)
|
||||
DEF_ICON(NODE_TEXTURE)
|
||||
DEF_ICON(NODE_MATERIAL)
|
||||
DEF_ICON_BLANK(60)
|
||||
DEF_ICON_BLANK(61)
|
||||
DEF_ICON_BLANK(189)
|
||||
DEF_ICON_BLANK(190)
|
||||
|
||||
/* MODES */
|
||||
DEF_ICON(OBJECT_DATAMODE) // XXX fix this up
|
||||
@@ -199,13 +199,13 @@ DEF_ICON(WPAINT_HLT)
|
||||
DEF_ICON(SCULPTMODE_HLT)
|
||||
DEF_ICON(POSE_HLT)
|
||||
DEF_ICON(PARTICLEMODE)
|
||||
DEF_ICON_COLOR(LIGHTPAINT)
|
||||
DEF_ICON_COLOR(GREASEPENCIL_STROKE_PAINT)
|
||||
DEF_ICON_BLANK(64)
|
||||
DEF_ICON_BLANK(65)
|
||||
DEF_ICON_BLANK(66)
|
||||
DEF_ICON_BLANK(67)
|
||||
DEF_ICON_BLANK(68)
|
||||
DEF_ICON_BLANK(202)
|
||||
DEF_ICON_BLANK(203)
|
||||
DEF_ICON_BLANK(204)
|
||||
DEF_ICON_BLANK(205)
|
||||
DEF_ICON_BLANK(206)
|
||||
DEF_ICON_BLANK(207)
|
||||
DEF_ICON_BLANK(208)
|
||||
DEF_ICON(TRACKING)
|
||||
DEF_ICON(TRACKING_BACKWARDS)
|
||||
DEF_ICON(TRACKING_FORWARDS)
|
||||
@@ -238,12 +238,12 @@ DEF_ICON(ARMATURE_DATA)
|
||||
DEF_ICON(POSE_DATA)
|
||||
DEF_ICON(BONE_DATA)
|
||||
DEF_ICON_MODIFIER(CONSTRAINT)
|
||||
DEF_ICON_COLOR(SHAPEKEY_DATA)
|
||||
DEF_ICON(SHAPEKEY_DATA)
|
||||
DEF_ICON_MODIFIER(CONSTRAINT_BONE)
|
||||
DEF_ICON(CAMERA_STEREO)
|
||||
DEF_ICON(PACKAGE)
|
||||
DEF_ICON(UGLYPACKAGE)
|
||||
DEF_ICON_BLANK(79b)
|
||||
DEF_ICON_BLANK(246)
|
||||
|
||||
/* DATA */
|
||||
DEF_ICON_SHADING(BRUSH_DATA)
|
||||
@@ -254,11 +254,11 @@ DEF_ICON(FONT_DATA)
|
||||
DEF_ICON(RENDER_RESULT)
|
||||
DEF_ICON(SURFACE_DATA)
|
||||
DEF_ICON(EMPTY_DATA)
|
||||
DEF_ICON_BLANK(88)
|
||||
DEF_ICON(PRESET)
|
||||
DEF_ICON(RENDER_ANIMATION)
|
||||
DEF_ICON(RENDER_STILL)
|
||||
DEF_ICON(LIBRARY_DATA_BROKEN)
|
||||
DEF_ICON_COLOR(BOIDS)
|
||||
DEF_ICON(BOIDS)
|
||||
DEF_ICON(STRANDS)
|
||||
DEF_ICON(LIBRARY_DATA_INDIRECT)
|
||||
DEF_ICON(GREASEPENCIL)
|
||||
@@ -269,7 +269,7 @@ DEF_ICON(GROUP_VERTEX)
|
||||
DEF_ICON(GROUP_VCOL)
|
||||
DEF_ICON(GROUP_UVS)
|
||||
DEF_ICON(FACE_MAPS)
|
||||
DEF_ICON_BLANK(90)
|
||||
DEF_ICON_BLANK(272)
|
||||
DEF_ICON(RNA)
|
||||
DEF_ICON(RNA_ADD)
|
||||
|
||||
@@ -281,21 +281,21 @@ DEF_ICON(MOUSE_MOVE)
|
||||
DEF_ICON(MOUSE_LMB_DRAG)
|
||||
DEF_ICON(MOUSE_MMB_DRAG)
|
||||
DEF_ICON(MOUSE_RMB_DRAG)
|
||||
DEF_ICON_BLANK(99)
|
||||
DEF_ICON(PRESET)
|
||||
DEF_ICON_BLANK(101)
|
||||
DEF_ICON_BLANK(284)
|
||||
DEF_ICON_BLANK(285)
|
||||
DEF_ICON_BLANK(286)
|
||||
DEF_ICON(DECORATE)
|
||||
DEF_ICON(DECORATE_KEYFRAME)
|
||||
DEF_ICON(DECORATE_ANIMATE)
|
||||
DEF_ICON(DECORATE_DRIVER)
|
||||
DEF_ICON(DECORATE_LINKED)
|
||||
DEF_ICON(DECORATE_OVERRIDE)
|
||||
DEF_ICON(DECORATE_LIBRARY_OVERRIDE)
|
||||
DEF_ICON(DECORATE_UNLOCKED)
|
||||
DEF_ICON(DECORATE_LOCKED)
|
||||
DEF_ICON_BLANK(110)
|
||||
DEF_ICON(DECORATE_OVERRIDE)
|
||||
DEF_ICON_BLANK(111)
|
||||
DEF_ICON_BLANK(112)
|
||||
DEF_ICON(FAKE_USER)
|
||||
DEF_ICON(SEALED)
|
||||
DEF_ICON(HEART)
|
||||
DEF_ICON(ORPHAN_DATA)
|
||||
DEF_ICON(USER)
|
||||
DEF_ICON(SYSTEM)
|
||||
@@ -318,7 +318,7 @@ DEF_ICON_OBJECT(OUTLINER_OB_GROUP_INSTANCE)
|
||||
DEF_ICON_OBJECT(OUTLINER_OB_GREASEPENCIL)
|
||||
DEF_ICON_OBJECT(OUTLINER_OB_LIGHTPROBE)
|
||||
DEF_ICON_OBJECT(OUTLINER_OB_IMAGE)
|
||||
DEF_ICON_BLANK(125)
|
||||
DEF_ICON_BLANK(321)
|
||||
DEF_ICON(RESTRICT_COLOR_OFF)
|
||||
DEF_ICON(RESTRICT_COLOR_ON)
|
||||
DEF_ICON(HIDE_OFF)
|
||||
@@ -327,10 +327,10 @@ DEF_ICON(RESTRICT_SELECT_OFF)
|
||||
DEF_ICON(RESTRICT_SELECT_ON)
|
||||
DEF_ICON(RESTRICT_RENDER_OFF)
|
||||
DEF_ICON(RESTRICT_RENDER_ON)
|
||||
DEF_ICON_BLANK(127b)
|
||||
DEF_ICON_BLANK(330)
|
||||
|
||||
/* OUTLINER */
|
||||
DEF_ICON_BLANK(128)
|
||||
DEF_ICON_OBJECT_DATA(OUTLINER_DATA_EMPTY)
|
||||
DEF_ICON_OBJECT_DATA(OUTLINER_DATA_MESH)
|
||||
DEF_ICON_OBJECT_DATA(OUTLINER_DATA_CURVE)
|
||||
DEF_ICON_OBJECT_DATA(OUTLINER_DATA_LATTICE)
|
||||
@@ -342,20 +342,20 @@ DEF_ICON_OBJECT_DATA(OUTLINER_DATA_FONT)
|
||||
DEF_ICON_OBJECT_DATA(OUTLINER_DATA_SURFACE)
|
||||
DEF_ICON_OBJECT_DATA(OUTLINER_DATA_SPEAKER)
|
||||
DEF_ICON_OBJECT_DATA(OUTLINER_DATA_POSE)
|
||||
DEF_ICON_BLANK(130)
|
||||
DEF_ICON_BLANK(345)
|
||||
DEF_ICON_OBJECT_DATA(OUTLINER_DATA_GREASEPENCIL)
|
||||
DEF_ICON(GP_SELECT_POINTS)
|
||||
DEF_ICON(GP_SELECT_STROKES)
|
||||
DEF_ICON(GP_MULTIFRAME_EDITING)
|
||||
DEF_ICON(GP_ONLY_SELECTED)
|
||||
DEF_ICON_BLANK(136)
|
||||
DEF_ICON_BLANK(137)
|
||||
DEF_ICON_BLANK(138)
|
||||
DEF_ICON_BLANK(351)
|
||||
DEF_ICON(MODIFIER_OFF)
|
||||
DEF_ICON(MODIFIER_ON)
|
||||
DEF_ICON(ONIONSKIN_OFF)
|
||||
DEF_ICON(ONIONSKIN_ON)
|
||||
DEF_ICON(RESTRICT_VIEW_OFF)
|
||||
DEF_ICON(RESTRICT_VIEW_ON)
|
||||
DEF_ICON_BLANK(142b)
|
||||
DEF_ICON_BLANK(353)
|
||||
|
||||
/* PRIMITIVES */
|
||||
DEF_ICON(MESH_PLANE)
|
||||
@@ -369,15 +369,15 @@ DEF_ICON(MESH_CYLINDER)
|
||||
DEF_ICON(MESH_TORUS)
|
||||
DEF_ICON(MESH_CONE)
|
||||
DEF_ICON(MESH_CAPSULE)
|
||||
DEF_ICON_BLANK(611)
|
||||
DEF_ICON_BLANK(372)
|
||||
DEF_ICON_SHADING(LIGHT_POINT)
|
||||
DEF_ICON_SHADING(LIGHT_SUN)
|
||||
DEF_ICON_SHADING(LIGHT_SPOT)
|
||||
DEF_ICON_SHADING(LIGHT_HEMI)
|
||||
DEF_ICON_SHADING(LIGHT_AREA)
|
||||
DEF_ICON_BLANK(617)
|
||||
DEF_ICON_BLANK(618)
|
||||
DEF_ICON_COLOR(META_EMPTY)
|
||||
DEF_ICON_BLANK(278)
|
||||
DEF_ICON_BLANK(379)
|
||||
DEF_ICON(META_EMPTY)
|
||||
DEF_ICON(META_PLANE)
|
||||
DEF_ICON(META_CUBE)
|
||||
DEF_ICON(META_BALL)
|
||||
@@ -394,7 +394,7 @@ DEF_ICON(SURFACE_NSPHERE)
|
||||
DEF_ICON(SURFACE_NTORUS)
|
||||
DEF_ICON(GP_EMPTY)
|
||||
DEF_ICON(GP_STROKE)
|
||||
DEF_ICON_BLANK(638)
|
||||
DEF_ICON_BLANK(397)
|
||||
DEF_ICON(CURVE_BEZCURVE)
|
||||
DEF_ICON(CURVE_BEZCIRCLE)
|
||||
DEF_ICON(CURVE_NCURVE)
|
||||
@@ -403,8 +403,8 @@ DEF_ICON(CURVE_PATH)
|
||||
DEF_ICON_SHADING(LIGHTPROBE_CUBEMAP)
|
||||
DEF_ICON_SHADING(LIGHTPROBE_PLANAR)
|
||||
DEF_ICON_SHADING(LIGHTPROBE_GRID)
|
||||
DEF_ICON_BLANK(647)
|
||||
DEF_ICON_BLANK(648)
|
||||
DEF_ICON_BLANK(406)
|
||||
DEF_ICON_BLANK(407)
|
||||
DEF_ICON(COLOR_RED)
|
||||
DEF_ICON(COLOR_GREEN)
|
||||
DEF_ICON(COLOR_BLUE)
|
||||
@@ -442,9 +442,9 @@ DEF_ICON_BLANK(684)
|
||||
DEF_ICON_BLANK(685)
|
||||
|
||||
/* EMPTY */
|
||||
DEF_ICON_COLOR(TEMPERATURE) /* XXX 'Temperature' icon! */
|
||||
DEF_ICON_BLANK(691) /* XXX 'Temperature' icon! */
|
||||
DEF_ICON_COLOR(GEAR) /* XXX 'Gear' icon! */
|
||||
DEF_ICON_BLANK(445)
|
||||
DEF_ICON_BLANK(446)
|
||||
DEF_ICON_BLANK(447)
|
||||
DEF_ICON(NODE_INSERT_ON)
|
||||
DEF_ICON(NODE_INSERT_OFF)
|
||||
DEF_ICON(NODE_TOP)
|
||||
@@ -498,32 +498,32 @@ DEF_ICON_BLANK(754)
|
||||
DEF_ICON_BLANK(755)
|
||||
|
||||
/* EMPTY */
|
||||
DEF_ICON_BLANK(760)
|
||||
DEF_ICON_BLANK(761)
|
||||
DEF_ICON_BLANK(762)
|
||||
DEF_ICON_BLANK(763)
|
||||
DEF_ICON_BLANK(764)
|
||||
DEF_ICON_BLANK(765)
|
||||
DEF_ICON_BLANK(766)
|
||||
DEF_ICON_BLANK(767)
|
||||
DEF_ICON_BLANK(768)
|
||||
DEF_ICON_BLANK(769)
|
||||
DEF_ICON_BLANK(770)
|
||||
DEF_ICON_BLANK(771)
|
||||
DEF_ICON_BLANK(772)
|
||||
DEF_ICON_BLANK(773)
|
||||
DEF_ICON_BLANK(774)
|
||||
DEF_ICON_BLANK(775)
|
||||
DEF_ICON_BLANK(776)
|
||||
DEF_ICON_BLANK(777)
|
||||
DEF_ICON_BLANK(778)
|
||||
DEF_ICON_BLANK(779)
|
||||
DEF_ICON_BLANK(780)
|
||||
DEF_ICON_BLANK(781)
|
||||
DEF_ICON_BLANK(782)
|
||||
DEF_ICON_BLANK(783)
|
||||
DEF_ICON_BLANK(784)
|
||||
DEF_ICON_BLANK(785)
|
||||
DEF_ICON_BLANK(501)
|
||||
DEF_ICON_BLANK(502)
|
||||
DEF_ICON_BLANK(503)
|
||||
DEF_ICON_BLANK(504)
|
||||
DEF_ICON_BLANK(505)
|
||||
DEF_ICON_BLANK(506)
|
||||
DEF_ICON_BLANK(507)
|
||||
DEF_ICON_BLANK(508)
|
||||
DEF_ICON_BLANK(509)
|
||||
DEF_ICON_BLANK(510)
|
||||
DEF_ICON_BLANK(511)
|
||||
DEF_ICON_BLANK(512)
|
||||
DEF_ICON_BLANK(513)
|
||||
DEF_ICON_BLANK(514)
|
||||
DEF_ICON_BLANK(515)
|
||||
DEF_ICON_BLANK(516)
|
||||
DEF_ICON_BLANK(517)
|
||||
DEF_ICON_BLANK(518)
|
||||
DEF_ICON_BLANK(519)
|
||||
DEF_ICON_BLANK(520)
|
||||
DEF_ICON_BLANK(521)
|
||||
DEF_ICON_BLANK(522)
|
||||
DEF_ICON_BLANK(523)
|
||||
DEF_ICON_BLANK(524)
|
||||
DEF_ICON_BLANK(525)
|
||||
DEF_ICON_BLANK(526)
|
||||
|
||||
/* MODIFIERS */
|
||||
DEF_ICON_MODIFIER(MODIFIER)
|
||||
@@ -543,7 +543,7 @@ DEF_ICON_MODIFIER(MOD_UVPROJECT)
|
||||
DEF_ICON_MODIFIER(MOD_DISPLACE)
|
||||
DEF_ICON_MODIFIER(MOD_CURVE)
|
||||
DEF_ICON_MODIFIER(MOD_LATTICE)
|
||||
DEF_ICON_COLOR(CONSTRAINT_DATA)
|
||||
DEF_ICON_MODIFIER(MOD_TINT)
|
||||
DEF_ICON_MODIFIER(MOD_ARMATURE)
|
||||
DEF_ICON_MODIFIER(MOD_SHRINKWRAP)
|
||||
DEF_ICON_MODIFIER(MOD_CAST)
|
||||
@@ -571,15 +571,15 @@ DEF_ICON_MODIFIER(MOD_TRIANGULATE)
|
||||
DEF_ICON_MODIFIER(MOD_WIREFRAME)
|
||||
DEF_ICON_MODIFIER(MOD_DATA_TRANSFER)
|
||||
DEF_ICON_MODIFIER(MOD_NORMALEDIT)
|
||||
DEF_ICON_BLANK(169)
|
||||
DEF_ICON_BLANK(170)
|
||||
DEF_ICON_BLANK(171)
|
||||
DEF_ICON_BLANK(172)
|
||||
DEF_ICON_BLANK(173)
|
||||
DEF_ICON_BLANK(174)
|
||||
DEF_ICON_BLANK(175)
|
||||
DEF_ICON_BLANK(176)
|
||||
DEF_ICON_BLANK(177)
|
||||
DEF_ICON_MODIFIER(MOD_PARTICLE_INSTANCE)
|
||||
DEF_ICON_MODIFIER(MOD_HUE_SATURATION)
|
||||
DEF_ICON_MODIFIER(MOD_NOISE)
|
||||
DEF_ICON_MODIFIER(MOD_OFFSET)
|
||||
DEF_ICON_MODIFIER(MOD_SIMPLIFY)
|
||||
DEF_ICON_MODIFIER(MOD_THICKNESS)
|
||||
DEF_ICON_MODIFIER(MOD_INSTANCE)
|
||||
DEF_ICON_MODIFIER(MOD_TIME)
|
||||
DEF_ICON_MODIFIER(MOD_OPACITY)
|
||||
|
||||
/* ANIMATION */
|
||||
DEF_ICON(REC)
|
||||
@@ -595,7 +595,7 @@ DEF_ICON(PREVIEW_RANGE)
|
||||
DEF_ICON(ACTION_TWEAK)
|
||||
DEF_ICON(PMARKER_ACT)
|
||||
DEF_ICON(PMARKER_SEL)
|
||||
DEF_ICON_COLOR(PMARKER)
|
||||
DEF_ICON(PMARKER)
|
||||
DEF_ICON(MARKER_HLT)
|
||||
DEF_ICON(MARKER)
|
||||
DEF_ICON(KEYFRAME_HLT)
|
||||
@@ -632,10 +632,10 @@ DEF_ICON(IPO_EASE_IN)
|
||||
DEF_ICON(IPO_EASE_OUT)
|
||||
DEF_ICON(IPO_EASE_IN_OUT)
|
||||
DEF_ICON(NORMALIZE_FCURVES)
|
||||
DEF_ICON_BLANK(204)
|
||||
DEF_ICON_BLANK(205)
|
||||
DEF_ICON_BLANK(206)
|
||||
DEF_ICON_BLANK(207)
|
||||
DEF_ICON_BLANK(635)
|
||||
DEF_ICON_BLANK(636)
|
||||
DEF_ICON_BLANK(637)
|
||||
DEF_ICON_BLANK(638)
|
||||
|
||||
/* EDITING */
|
||||
DEF_ICON(VERTEXSEL)
|
||||
@@ -649,7 +649,7 @@ DEF_ICON(PIVOT_INDIVIDUAL)
|
||||
DEF_ICON(PIVOT_MEDIAN)
|
||||
DEF_ICON(PIVOT_ACTIVE)
|
||||
DEF_ICON(CENTER_ONLY)
|
||||
DEF_ICON_BLANK(211)
|
||||
DEF_ICON_BLANK(652)
|
||||
DEF_ICON(SMOOTHCURVE)
|
||||
DEF_ICON(SPHERECURVE)
|
||||
DEF_ICON(ROOTCURVE)
|
||||
@@ -666,10 +666,10 @@ DEF_ICON(PARTICLE_TIP)
|
||||
DEF_ICON(PARTICLE_PATH)
|
||||
|
||||
/* EDITING */
|
||||
DEF_ICON_COLOR(MAN_TRANS)
|
||||
DEF_ICON_COLOR(MAN_ROT)
|
||||
DEF_ICON_COLOR(MAN_SCALE)
|
||||
DEF_ICON_COLOR(MANIPUL)
|
||||
DEF_ICON_BLANK(669)
|
||||
DEF_ICON_BLANK(670)
|
||||
DEF_ICON_BLANK(671)
|
||||
DEF_ICON_BLANK(672)
|
||||
DEF_ICON(SNAP_OFF)
|
||||
DEF_ICON(SNAP_ON)
|
||||
DEF_ICON(SNAP_NORMAL)
|
||||
@@ -705,7 +705,7 @@ DEF_ICON(VIS_SEL_00)
|
||||
DEF_ICON_BLANK(231)
|
||||
DEF_ICON(AUTOMERGE_ON)
|
||||
DEF_ICON(AUTOMERGE_OFF)
|
||||
DEF_ICON_COLOR(RETOPO)
|
||||
DEF_ICON_BLANK(234)
|
||||
DEF_ICON(UV_VERTEXSEL)
|
||||
DEF_ICON(UV_EDGESEL)
|
||||
DEF_ICON(UV_FACESEL)
|
||||
@@ -763,18 +763,18 @@ DEF_ICON_BLANK(268)
|
||||
DEF_ICON_BLANK(269)
|
||||
DEF_ICON_BLANK(270)
|
||||
DEF_ICON_BLANK(271)
|
||||
DEF_ICON_BLANK(272)
|
||||
DEF_ICON_BLANK(273)
|
||||
DEF_ICON_BLANK(766)
|
||||
DEF_ICON_BLANK(767)
|
||||
DEF_ICON_BLANK(274)
|
||||
DEF_ICON_BLANK(275)
|
||||
DEF_ICON_BLANK(276)
|
||||
DEF_ICON_BLANK(277)
|
||||
DEF_ICON_BLANK(278)
|
||||
DEF_ICON_BLANK(279)
|
||||
DEF_ICON_BLANK(280)
|
||||
DEF_ICON_BLANK(281)
|
||||
DEF_ICON_BLANK(282)
|
||||
DEF_ICON_BLANK(282b)
|
||||
DEF_ICON_BLANK(772)
|
||||
DEF_ICON_BLANK(773)
|
||||
DEF_ICON_BLANK(774)
|
||||
DEF_ICON_BLANK(775)
|
||||
DEF_ICON_BLANK(776)
|
||||
DEF_ICON_BLANK(777)
|
||||
|
||||
/* FILE SELECT */
|
||||
DEF_ICON(SORTALPHA)
|
||||
@@ -783,15 +783,15 @@ DEF_ICON(SORTTIME)
|
||||
DEF_ICON(SORTSIZE)
|
||||
DEF_ICON(SHORTDISPLAY)
|
||||
DEF_ICON(LONGDISPLAY)
|
||||
DEF_ICON_COLOR(GHOST)
|
||||
DEF_ICON_COLOR(IMGDISPLAY)
|
||||
DEF_ICON_BLANK(292)
|
||||
DEF_ICON_BLANK(293)
|
||||
DEF_ICON_BLANK(786)
|
||||
DEF_ICON(IMGDISPLAY)
|
||||
DEF_ICON_BLANK(788)
|
||||
DEF_ICON_BLANK(789)
|
||||
DEF_ICON(BOOKMARKS)
|
||||
DEF_ICON(FONTPREVIEW)
|
||||
DEF_ICON(FILTER)
|
||||
DEF_ICON(NEWFOLDER)
|
||||
DEF_ICON(OPEN_RECENT)
|
||||
DEF_ICON_BLANK(794)
|
||||
DEF_ICON(FILE_PARENT)
|
||||
DEF_ICON(FILE_REFRESH)
|
||||
DEF_ICON(FILE_FOLDER)
|
||||
@@ -811,21 +811,21 @@ DEF_ICON(LINK_BLEND)
|
||||
DEF_ICON(APPEND_BLEND)
|
||||
DEF_ICON(IMPORT)
|
||||
DEF_ICON(EXPORT)
|
||||
DEF_ICON_COLOR(EXTERNAL_DATA)
|
||||
DEF_ICON_BLANK(299)
|
||||
DEF_ICON_BLANK(300)
|
||||
DEF_ICON_BLANK(301)
|
||||
DEF_ICON_BLANK(302)
|
||||
DEF_ICON_BLANK(303)
|
||||
DEF_ICON_BLANK(304)
|
||||
DEF_ICON_BLANK(814)
|
||||
DEF_ICON_BLANK(815)
|
||||
DEF_ICON_BLANK(816)
|
||||
DEF_ICON_BLANK(817)
|
||||
DEF_ICON_BLANK(818)
|
||||
DEF_ICON_BLANK(819)
|
||||
DEF_ICON_BLANK(820)
|
||||
DEF_ICON(LOOP_BACK)
|
||||
DEF_ICON(LOOP_FORWARDS)
|
||||
DEF_ICON(BACK)
|
||||
DEF_ICON(FORWARD)
|
||||
DEF_ICON_BLANK(309)
|
||||
DEF_ICON_BLANK(310)
|
||||
DEF_ICON_BLANK(311)
|
||||
DEF_ICON_BLANK(312)
|
||||
DEF_ICON_BLANK(825)
|
||||
DEF_ICON_BLANK(826)
|
||||
DEF_ICON_BLANK(827)
|
||||
DEF_ICON_BLANK(828)
|
||||
DEF_ICON(ALEMBIC)
|
||||
DEF_ICON(VOLUME)
|
||||
DEF_ICON(FILE_HIDDEN)
|
||||
@@ -841,24 +841,24 @@ DEF_ICON(HAIR)
|
||||
DEF_ICON(ALIASED)
|
||||
DEF_ICON(ANTIALIASED)
|
||||
DEF_ICON(MAT_SPHERE_SKY)
|
||||
DEF_ICON_BLANK(319)
|
||||
DEF_ICON_BLANK(320)
|
||||
DEF_ICON_BLANK(321)
|
||||
DEF_ICON_BLANK(322)
|
||||
DEF_ICON(MATSHADERBALL)
|
||||
DEF_ICON(MATCLOTH)
|
||||
DEF_ICON(MATFLUID)
|
||||
DEF_ICON_BLANK(847)
|
||||
DEF_ICON(WORDWRAP_OFF)
|
||||
DEF_ICON(WORDWRAP_ON)
|
||||
DEF_ICON(SYNTAX_OFF)
|
||||
DEF_ICON(SYNTAX_ON)
|
||||
DEF_ICON(LINENUMBERS_OFF)
|
||||
DEF_ICON(LINENUMBERS_ON)
|
||||
DEF_ICON(SCRIPTPLUGINS) // XXX CREATE NEW
|
||||
DEF_ICON_BLANK(323)
|
||||
DEF_ICON_BLANK(324)
|
||||
DEF_ICON_BLANK(325)
|
||||
DEF_ICON_BLANK(326)
|
||||
DEF_ICON_BLANK(327)
|
||||
DEF_ICON_BLANK(328)
|
||||
DEF_ICON_BLANK(328b)
|
||||
DEF_ICON(SCRIPTPLUGINS)
|
||||
DEF_ICON_BLANK(855)
|
||||
DEF_ICON_BLANK(856)
|
||||
DEF_ICON_BLANK(857)
|
||||
DEF_ICON_BLANK(858)
|
||||
DEF_ICON_BLANK(859)
|
||||
DEF_ICON_BLANK(860)
|
||||
DEF_ICON_BLANK(861)
|
||||
|
||||
/* SEQUENCE / IMAGE EDITOR */
|
||||
DEF_ICON(SEQ_SEQUENCER)
|
||||
@@ -867,21 +867,21 @@ DEF_ICON(SEQ_LUMA_WAVEFORM)
|
||||
DEF_ICON(SEQ_CHROMA_SCOPE)
|
||||
DEF_ICON(SEQ_HISTOGRAM)
|
||||
DEF_ICON(SEQ_SPLITVIEW)
|
||||
DEF_ICON_BLANK(331)
|
||||
DEF_ICON_BLANK(332)
|
||||
DEF_ICON_BLANK(333)
|
||||
DEF_ICON_BLANK(870)
|
||||
DEF_ICON_BLANK(871)
|
||||
DEF_ICON_BLANK(872)
|
||||
DEF_ICON(IMAGE_RGB) // XXX CHANGE TO STRAIGHT ALPHA, Z ETC
|
||||
DEF_ICON(IMAGE_RGB_ALPHA)
|
||||
DEF_ICON(IMAGE_ALPHA)
|
||||
DEF_ICON(IMAGE_ZDEPTH)
|
||||
DEF_ICON_COLOR(IMAGEFILE)
|
||||
DEF_ICON_BLANK(336)
|
||||
DEF_ICON_BLANK(337)
|
||||
DEF_ICON_BLANK(338)
|
||||
DEF_ICON_BLANK(339)
|
||||
DEF_ICON_BLANK(340)
|
||||
DEF_ICON_BLANK(341)
|
||||
DEF_ICON_BLANK(342)
|
||||
DEF_ICON_BLANK(877)
|
||||
DEF_ICON_BLANK(878)
|
||||
DEF_ICON_BLANK(879)
|
||||
DEF_ICON_BLANK(880)
|
||||
DEF_ICON_BLANK(881)
|
||||
DEF_ICON_BLANK(882)
|
||||
DEF_ICON_BLANK(883)
|
||||
DEF_ICON_BLANK(884)
|
||||
DEF_ICON(VIEW_PERSPECTIVE)
|
||||
DEF_ICON(VIEW_ORTHO)
|
||||
DEF_ICON(VIEW_CAMERA)
|
||||
|
||||
@@ -1798,7 +1798,7 @@ int UI_rnaptr_icon_get(bContext *C, PointerRNA *ptr, int rnaicon, const bool big
|
||||
DynamicPaintSurface *surface = ptr->data;
|
||||
|
||||
if (surface->format == MOD_DPAINT_SURFACE_F_PTEX)
|
||||
return ICON_TEXTURE_SHADED;
|
||||
return ICON_SHADING_TEXTURE;
|
||||
else if (surface->format == MOD_DPAINT_SURFACE_F_VERTEX)
|
||||
return ICON_OUTLINER_DATA_MESH;
|
||||
else if (surface->format == MOD_DPAINT_SURFACE_F_IMAGESEQ)
|
||||
|
||||
@@ -748,7 +748,7 @@ static void template_ID(
|
||||
if (user_alert) UI_but_flag_enable(but, UI_BUT_REDALERT);
|
||||
|
||||
if (id->lib == NULL && !(ELEM(GS(id->name), ID_GR, ID_SCE, ID_SCR, ID_TXT, ID_OB, ID_WS))) {
|
||||
uiDefButR(block, UI_BTYPE_TOGGLE, 0, "F", 0, 0, UI_UNIT_X, UI_UNIT_Y, &idptr, "use_fake_user", -1, 0, 0, -1, -1, NULL);
|
||||
uiDefIconButR(block, UI_BTYPE_ICON_TOGGLE, 0, ICON_FAKE_USER_OFF, 0, 0, UI_UNIT_X, UI_UNIT_Y, &idptr, "use_fake_user", -1, 0, 0, -1, -1, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2010,7 +2010,7 @@ static uiLayout *draw_constraint(uiLayout *layout, Object *ob, bConstraint *con)
|
||||
UI_block_emboss_set(block, UI_EMBOSS_NONE);
|
||||
|
||||
/* draw a ghost icon (for proxy) and also a lock beside it, to show that constraint is "proxy locked" */
|
||||
uiDefIconBut(block, UI_BTYPE_BUT, B_CONSTRAINT_TEST, ICON_GHOST, xco + 12.2f * UI_UNIT_X, yco, 0.95f * UI_UNIT_X, 0.95f * UI_UNIT_Y,
|
||||
uiDefIconBut(block, UI_BTYPE_BUT, B_CONSTRAINT_TEST, ICON_GHOST_ENABLED, xco + 12.2f * UI_UNIT_X, yco, 0.95f * UI_UNIT_X, 0.95f * UI_UNIT_Y,
|
||||
NULL, 0.0, 0.0, 0.0, 0.0, TIP_("Proxy Protected"));
|
||||
uiDefIconBut(block, UI_BTYPE_BUT, B_CONSTRAINT_TEST, ICON_LOCKED, xco + 13.1f * UI_UNIT_X, yco, 0.95f * UI_UNIT_X, 0.95f * UI_UNIT_Y,
|
||||
NULL, 0.0, 0.0, 0.0, 0.0, TIP_("Proxy Protected"));
|
||||
@@ -3063,14 +3063,14 @@ static void curvemap_buttons_layout(
|
||||
UI_but_func_set(bt, curvemap_buttons_zoom_out, cumap, NULL);
|
||||
|
||||
if (brush)
|
||||
bt = uiDefIconBlockBut(block, curvemap_brush_tools_func, cumap, 0, ICON_MODIFIER, 0, 0, dx, dx, TIP_("Tools"));
|
||||
bt = uiDefIconBlockBut(block, curvemap_brush_tools_func, cumap, 0, ICON_DOWNARROW_HLT, 0, 0, dx, dx, TIP_("Tools"));
|
||||
else if (neg_slope)
|
||||
bt = uiDefIconBlockBut(
|
||||
block, curvemap_tools_negslope_func, cumap, 0, ICON_MODIFIER,
|
||||
block, curvemap_tools_negslope_func, cumap, 0, ICON_DOWNARROW_HLT,
|
||||
0, 0, dx, dx, TIP_("Tools"));
|
||||
else
|
||||
bt = uiDefIconBlockBut(
|
||||
block, curvemap_tools_posslope_func, cumap, 0, ICON_MODIFIER,
|
||||
block, curvemap_tools_posslope_func, cumap, 0, ICON_DOWNARROW_HLT,
|
||||
0, 0, dx, dx, TIP_("Tools"));
|
||||
|
||||
UI_but_funcN_set(bt, rna_update_cb, MEM_dupallocN(cb), NULL);
|
||||
|
||||
@@ -200,14 +200,6 @@ static void restrictbutton_r_lay_cb(bContext *C, void *poin, void *UNUSED(poin2)
|
||||
WM_event_add_notifier(C, NC_SCENE | ND_RENDER_OPTIONS, poin);
|
||||
}
|
||||
|
||||
static void restrictbutton_modifier_cb(bContext *C, void *UNUSED(poin), void *poin2)
|
||||
{
|
||||
Object *ob = (Object *)poin2;
|
||||
|
||||
DEG_id_tag_update(&ob->id, OB_RECALC_DATA);
|
||||
WM_event_add_notifier(C, NC_OBJECT | ND_MODIFIER, ob);
|
||||
}
|
||||
|
||||
static void restrictbutton_bone_visibility_cb(bContext *C, void *UNUSED(poin), void *poin2)
|
||||
{
|
||||
Bone *bone = (Bone *)poin2;
|
||||
@@ -483,26 +475,31 @@ static void namebutton_cb(bContext *C, void *tsep, char *oldname)
|
||||
static void outliner_draw_restrictbuts(
|
||||
uiBlock *block, Scene *scene, ViewLayer *view_layer, ARegion *ar, SpaceOops *soops, ListBase *lb)
|
||||
{
|
||||
/* Get RNA properties (once for speed). */
|
||||
static struct RestrictProperties {
|
||||
bool initialized;
|
||||
|
||||
PropertyRNA *object_hide_viewport, *object_hide_select, *object_hide_render;
|
||||
PropertyRNA *collection_hide_viewport, *collection_hide_select, *collection_hide_render;
|
||||
PropertyRNA *modifier_show_viewport, *modifier_show_render;
|
||||
} props = {false};
|
||||
|
||||
if (!props.initialized) {
|
||||
props.object_hide_viewport = RNA_struct_type_find_property(&RNA_Object, "hide_viewport");
|
||||
props.object_hide_select = RNA_struct_type_find_property(&RNA_Object, "hide_select");
|
||||
props.object_hide_render = RNA_struct_type_find_property(&RNA_Object, "hide_render");
|
||||
props.collection_hide_select = RNA_struct_type_find_property(&RNA_Collection, "hide_select");
|
||||
props.collection_hide_viewport = RNA_struct_type_find_property(&RNA_Collection, "hide_viewport");
|
||||
props.collection_hide_render = RNA_struct_type_find_property(&RNA_Collection, "hide_render");
|
||||
props.modifier_show_viewport = RNA_struct_type_find_property(&RNA_Modifier, "show_viewport");
|
||||
props.modifier_show_render = RNA_struct_type_find_property(&RNA_Modifier, "show_render");
|
||||
|
||||
props.initialized = true;
|
||||
}
|
||||
|
||||
/* Create buttons. */
|
||||
uiBut *bt;
|
||||
|
||||
/* get RNA properties (once for speed) */
|
||||
PropertyRNA *object_prop_hide_viewport, *object_prop_hide_select, *object_prop_hide_render;
|
||||
PropertyRNA *collection_prop_hide_viewport, *collection_prop_hide_select, *collection_prop_hide_render;
|
||||
|
||||
object_prop_hide_viewport = RNA_struct_type_find_property(&RNA_Object, "hide_viewport");
|
||||
object_prop_hide_select = RNA_struct_type_find_property(&RNA_Object, "hide_select");
|
||||
object_prop_hide_render = RNA_struct_type_find_property(&RNA_Object, "hide_render");
|
||||
collection_prop_hide_select = RNA_struct_type_find_property(&RNA_Collection, "hide_select");
|
||||
collection_prop_hide_viewport = RNA_struct_type_find_property(&RNA_Collection, "hide_viewport");
|
||||
collection_prop_hide_render = RNA_struct_type_find_property(&RNA_Collection, "hide_render");
|
||||
|
||||
BLI_assert(object_prop_hide_viewport &&
|
||||
object_prop_hide_select &&
|
||||
object_prop_hide_render &&
|
||||
collection_prop_hide_viewport &&
|
||||
collection_prop_hide_select &&
|
||||
collection_prop_hide_render);
|
||||
|
||||
for (TreeElement *te = lb->first; te; te = te->next) {
|
||||
TreeStoreElem *tselem = TREESTORE(te);
|
||||
if (te->ys + 2 * UI_UNIT_Y >= ar->v2d.cur.ymin && te->ys <= ar->v2d.cur.ymax) {
|
||||
@@ -511,11 +508,12 @@ static void outliner_draw_restrictbuts(
|
||||
ViewLayer *layer = te->directdata;
|
||||
|
||||
bt = uiDefIconButBitS(
|
||||
block, UI_BTYPE_ICON_TOGGLE_N, VIEW_LAYER_RENDER, 0, ICON_RESTRICT_RENDER_OFF,
|
||||
block, UI_BTYPE_ICON_TOGGLE_N, VIEW_LAYER_RENDER, 0, ICON_RESTRICT_RENDER_ON,
|
||||
(int)(ar->v2d.cur.xmax - OL_TOG_RESTRICT_RENDERX), te->ys, UI_UNIT_X,
|
||||
UI_UNIT_Y, &layer->flag, 0, 0, 0, 0, TIP_("Use view layer for rendering"));
|
||||
UI_but_func_set(bt, restrictbutton_r_lay_cb, tselem->id, NULL);
|
||||
UI_but_flag_enable(bt, UI_BUT_DRAG_LOCK);
|
||||
UI_but_drawflag_enable(bt, UI_BUT_ICON_REVERSE);
|
||||
}
|
||||
else if (tselem->type == 0 && te->idcode == ID_OB) {
|
||||
Object *ob = (Object *)tselem->id;
|
||||
@@ -523,53 +521,50 @@ static void outliner_draw_restrictbuts(
|
||||
|
||||
if (base) {
|
||||
bt = uiDefIconButBitS(
|
||||
block, UI_BTYPE_ICON_TOGGLE, BASE_HIDDEN, 0, ICON_HIDE_OFF,
|
||||
block, UI_BTYPE_ICON_TOGGLE, BASE_HIDDEN, 0, ICON_HIDE_ON,
|
||||
(int)(ar->v2d.cur.xmax - OL_TOG_HIDEX), te->ys, UI_UNIT_X,
|
||||
UI_UNIT_Y, &base->flag, 0, 0, 0, 0,
|
||||
TIP_("Hide object in viewport (Ctrl to isolate)"));
|
||||
UI_but_func_set(bt, hidebutton_base_flag_cb, view_layer, base);
|
||||
UI_but_flag_enable(bt, UI_BUT_DRAG_LOCK);
|
||||
UI_but_drawflag_enable(bt, UI_BUT_ICON_REVERSE);
|
||||
}
|
||||
|
||||
PointerRNA ptr;
|
||||
RNA_pointer_create((ID *)ob, &RNA_Object, ob, &ptr);
|
||||
RNA_pointer_create(&ob->id, &RNA_Object, ob, &ptr);
|
||||
|
||||
bt = uiDefIconButR_prop(block, UI_BTYPE_ICON_TOGGLE, 0, ICON_RESTRICT_VIEW_OFF,
|
||||
bt = uiDefIconButR_prop(block, UI_BTYPE_ICON_TOGGLE, 0, 0,
|
||||
(int)(ar->v2d.cur.xmax - OL_TOG_RESTRICT_VIEWX), te->ys, UI_UNIT_X, UI_UNIT_Y,
|
||||
&ptr, object_prop_hide_viewport, -1, 0, 0, -1, -1,
|
||||
TIP_("Restrict viewport visibility"));
|
||||
&ptr, props.object_hide_viewport, -1, 0, 0, -1, -1, NULL);
|
||||
UI_but_flag_enable(bt, UI_BUT_DRAG_LOCK);
|
||||
|
||||
bt = uiDefIconButR_prop(block, UI_BTYPE_ICON_TOGGLE, 0, ICON_RESTRICT_SELECT_OFF,
|
||||
bt = uiDefIconButR_prop(block, UI_BTYPE_ICON_TOGGLE, 0, 0,
|
||||
(int)(ar->v2d.cur.xmax - OL_TOG_RESTRICT_SELECTX), te->ys, UI_UNIT_X, UI_UNIT_Y,
|
||||
&ptr, object_prop_hide_select, -1, 0, 0, -1, -1,
|
||||
TIP_("Restrict viewport selection"));
|
||||
&ptr, props.object_hide_select, -1, 0, 0, -1, -1, NULL);
|
||||
UI_but_flag_enable(bt, UI_BUT_DRAG_LOCK);
|
||||
|
||||
bt = uiDefIconButR_prop(block, UI_BTYPE_ICON_TOGGLE, 0, ICON_RESTRICT_RENDER_OFF,
|
||||
bt = uiDefIconButR_prop(block, UI_BTYPE_ICON_TOGGLE, 0, 0,
|
||||
(int)(ar->v2d.cur.xmax - OL_TOG_RESTRICT_RENDERX), te->ys, UI_UNIT_X, UI_UNIT_Y,
|
||||
&ptr, object_prop_hide_render, -1, 0, 0, -1, -1,
|
||||
TIP_("Restrict render visibility"));
|
||||
&ptr, props.object_hide_render, -1, 0, 0, -1, -1, NULL);
|
||||
UI_but_flag_enable(bt, UI_BUT_DRAG_LOCK);
|
||||
|
||||
}
|
||||
else if (tselem->type == TSE_MODIFIER) {
|
||||
ModifierData *md = (ModifierData *)te->directdata;
|
||||
Object *ob = (Object *)tselem->id;
|
||||
|
||||
bt = uiDefIconButBitI(
|
||||
block, UI_BTYPE_ICON_TOGGLE_N, eModifierMode_Realtime, 0, ICON_RESTRICT_VIEW_OFF,
|
||||
(int)(ar->v2d.cur.xmax - OL_TOG_RESTRICT_VIEWX), te->ys, UI_UNIT_X,
|
||||
UI_UNIT_Y, &(md->mode), 0, 0, 0, 0,
|
||||
TIP_("Restrict/Allow visibility in the 3D View"));
|
||||
UI_but_func_set(bt, restrictbutton_modifier_cb, scene, ob);
|
||||
PointerRNA ptr;
|
||||
RNA_pointer_create(tselem->id, &RNA_Modifier, md, &ptr);
|
||||
|
||||
bt = uiDefIconButR_prop(
|
||||
block, UI_BTYPE_ICON_TOGGLE, 0, 0,
|
||||
(int)(ar->v2d.cur.xmax - OL_TOG_RESTRICT_VIEWX), te->ys, UI_UNIT_X, UI_UNIT_Y,
|
||||
&ptr, props.modifier_show_viewport, -1, 0, 0, -1, -1, NULL);
|
||||
UI_but_flag_enable(bt, UI_BUT_DRAG_LOCK);
|
||||
|
||||
bt = uiDefIconButBitI(
|
||||
block, UI_BTYPE_ICON_TOGGLE_N, eModifierMode_Render, 0, ICON_RESTRICT_RENDER_OFF,
|
||||
(int)(ar->v2d.cur.xmax - OL_TOG_RESTRICT_RENDERX), te->ys, UI_UNIT_X,
|
||||
UI_UNIT_Y, &(md->mode), 0, 0, 0, 0, TIP_("Restrict/Allow renderability"));
|
||||
UI_but_func_set(bt, restrictbutton_modifier_cb, scene, ob);
|
||||
bt = uiDefIconButR_prop(
|
||||
block, UI_BTYPE_ICON_TOGGLE, 0, 0,
|
||||
(int)(ar->v2d.cur.xmax - OL_TOG_RESTRICT_RENDERX), te->ys, UI_UNIT_X, UI_UNIT_Y,
|
||||
&ptr, props.modifier_show_render, -1, 0, 0, -1, -1, NULL);
|
||||
UI_but_flag_enable(bt, UI_BUT_DRAG_LOCK);
|
||||
}
|
||||
else if (tselem->type == TSE_POSE_CHANNEL) {
|
||||
@@ -578,50 +573,55 @@ static void outliner_draw_restrictbuts(
|
||||
Object *ob = (Object *)tselem->id;
|
||||
|
||||
bt = uiDefIconButBitI(
|
||||
block, UI_BTYPE_ICON_TOGGLE, BONE_HIDDEN_P, 0, ICON_HIDE_OFF,
|
||||
block, UI_BTYPE_ICON_TOGGLE, BONE_HIDDEN_P, 0, ICON_HIDE_ON,
|
||||
(int)(ar->v2d.cur.xmax - OL_TOG_RESTRICT_VIEWX), te->ys, UI_UNIT_X,
|
||||
UI_UNIT_Y, &(bone->flag), 0, 0, 0, 0,
|
||||
TIP_("Restrict/Allow visibility in the 3D View"));
|
||||
UI_but_func_set(bt, restrictbutton_bone_visibility_cb, ob->data, bone);
|
||||
UI_but_flag_enable(bt, UI_BUT_DRAG_LOCK);
|
||||
UI_but_drawflag_enable(bt, UI_BUT_ICON_REVERSE);
|
||||
|
||||
bt = uiDefIconButBitI(
|
||||
block, UI_BTYPE_ICON_TOGGLE, BONE_UNSELECTABLE, 0, ICON_RESTRICT_SELECT_OFF,
|
||||
block, UI_BTYPE_ICON_TOGGLE, BONE_UNSELECTABLE, 0, ICON_RESTRICT_SELECT_ON,
|
||||
(int)(ar->v2d.cur.xmax - OL_TOG_RESTRICT_SELECTX), te->ys, UI_UNIT_X,
|
||||
UI_UNIT_Y, &(bone->flag), 0, 0, 0, 0,
|
||||
TIP_("Restrict/Allow selection in the 3D View"));
|
||||
UI_but_func_set(bt, restrictbutton_bone_select_cb, ob->data, bone);
|
||||
UI_but_flag_enable(bt, UI_BUT_DRAG_LOCK);
|
||||
UI_but_drawflag_enable(bt, UI_BUT_ICON_REVERSE);
|
||||
}
|
||||
else if (tselem->type == TSE_EBONE) {
|
||||
EditBone *ebone = (EditBone *)te->directdata;
|
||||
|
||||
bt = uiDefIconButBitI(
|
||||
block, UI_BTYPE_ICON_TOGGLE, BONE_HIDDEN_A, 0, ICON_RESTRICT_VIEW_OFF,
|
||||
block, UI_BTYPE_ICON_TOGGLE, BONE_HIDDEN_A, 0, ICON_RESTRICT_VIEW_ON,
|
||||
(int)(ar->v2d.cur.xmax - OL_TOG_RESTRICT_VIEWX), te->ys, UI_UNIT_X,
|
||||
UI_UNIT_Y, &(ebone->flag), 0, 0, 0, 0,
|
||||
TIP_("Restrict/Allow visibility in the 3D View"));
|
||||
UI_but_func_set(bt, restrictbutton_ebone_visibility_cb, NULL, ebone);
|
||||
UI_but_flag_enable(bt, UI_BUT_DRAG_LOCK);
|
||||
UI_but_drawflag_enable(bt, UI_BUT_ICON_REVERSE);
|
||||
|
||||
bt = uiDefIconButBitI(
|
||||
block, UI_BTYPE_ICON_TOGGLE, BONE_UNSELECTABLE, 0, ICON_RESTRICT_SELECT_OFF,
|
||||
block, UI_BTYPE_ICON_TOGGLE, BONE_UNSELECTABLE, 0, ICON_RESTRICT_SELECT_ON,
|
||||
(int)(ar->v2d.cur.xmax - OL_TOG_RESTRICT_SELECTX), te->ys, UI_UNIT_X,
|
||||
UI_UNIT_Y, &(ebone->flag), 0, 0, 0, 0,
|
||||
TIP_("Restrict/Allow selection in the 3D View"));
|
||||
UI_but_func_set(bt, restrictbutton_ebone_select_cb, NULL, ebone);
|
||||
UI_but_flag_enable(bt, UI_BUT_DRAG_LOCK);
|
||||
UI_but_drawflag_enable(bt, UI_BUT_ICON_REVERSE);
|
||||
}
|
||||
else if (tselem->type == TSE_GP_LAYER) {
|
||||
bGPDlayer *gpl = (bGPDlayer *)te->directdata;
|
||||
|
||||
bt = uiDefIconButBitS(
|
||||
block, UI_BTYPE_ICON_TOGGLE, GP_LAYER_HIDE, 0, ICON_HIDE_OFF,
|
||||
block, UI_BTYPE_ICON_TOGGLE, GP_LAYER_HIDE, 0, ICON_HIDE_ON,
|
||||
(int)(ar->v2d.cur.xmax - OL_TOG_RESTRICT_VIEWX), te->ys, UI_UNIT_X,
|
||||
UI_UNIT_Y, &gpl->flag, 0, 0, 0, 0,
|
||||
TIP_("Restrict/Allow visibility in the 3D View"));
|
||||
UI_but_func_set(bt, restrictbutton_gp_layer_flag_cb, NULL, gpl);
|
||||
UI_but_flag_enable(bt, UI_BUT_DRAG_LOCK);
|
||||
UI_but_drawflag_enable(bt, UI_BUT_ICON_REVERSE);
|
||||
|
||||
bt = uiDefIconButBitS(
|
||||
block, UI_BTYPE_ICON_TOGGLE, GP_LAYER_LOCKED, 0, ICON_UNLOCKED,
|
||||
@@ -642,33 +642,34 @@ static void outliner_draw_restrictbuts(
|
||||
{
|
||||
if (lc && (lc->runtime_flag & LAYER_COLLECTION_HAS_ENABLED_OBJECTS)) {
|
||||
bt = uiDefIconButBitS(
|
||||
block, UI_BTYPE_ICON_TOGGLE_N, LAYER_COLLECTION_HAS_VISIBLE_OBJECTS, 0, ICON_HIDE_OFF,
|
||||
block, UI_BTYPE_ICON_TOGGLE_N, LAYER_COLLECTION_HAS_VISIBLE_OBJECTS, 0, ICON_HIDE_ON,
|
||||
(int)(ar->v2d.cur.xmax - OL_TOG_HIDEX), te->ys, UI_UNIT_X,
|
||||
UI_UNIT_Y, &lc->runtime_flag, 0, 0, 0, 0,
|
||||
TIP_("Hide collection in viewport (Ctrl to isolate)"));
|
||||
UI_but_func_set(bt, hidebutton_layer_collection_flag_cb, view_layer, lc);
|
||||
UI_but_flag_enable(bt, UI_BUT_DRAG_LOCK);
|
||||
UI_but_drawflag_enable(bt, UI_BUT_ICON_REVERSE);
|
||||
}
|
||||
|
||||
PointerRNA collection_ptr;
|
||||
RNA_id_pointer_create(&collection->id, &collection_ptr);
|
||||
|
||||
bt = uiDefIconButR_prop(
|
||||
block, UI_BTYPE_ICON_TOGGLE, 0, ICON_RESTRICT_VIEW_OFF,
|
||||
block, UI_BTYPE_ICON_TOGGLE, 0, 0,
|
||||
(int)(ar->v2d.cur.xmax - OL_TOG_RESTRICT_VIEWX), te->ys, UI_UNIT_X,
|
||||
UI_UNIT_Y, &collection_ptr, collection_prop_hide_viewport, -1, 0, 0, 0, 0, NULL);
|
||||
UI_UNIT_Y, &collection_ptr, props.collection_hide_viewport, -1, 0, 0, 0, 0, NULL);
|
||||
UI_but_flag_enable(bt, UI_BUT_DRAG_LOCK);
|
||||
|
||||
bt = uiDefIconButR_prop(
|
||||
block, UI_BTYPE_ICON_TOGGLE, 0, ICON_RESTRICT_RENDER_OFF,
|
||||
block, UI_BTYPE_ICON_TOGGLE, 0, 0,
|
||||
(int)(ar->v2d.cur.xmax - OL_TOG_RESTRICT_RENDERX), te->ys, UI_UNIT_X,
|
||||
UI_UNIT_Y, &collection_ptr, collection_prop_hide_render, -1, 0, 0, 0, 0, NULL);
|
||||
UI_UNIT_Y, &collection_ptr, props.collection_hide_render, -1, 0, 0, 0, 0, NULL);
|
||||
UI_but_flag_enable(bt, UI_BUT_DRAG_LOCK);
|
||||
|
||||
bt = uiDefIconButR_prop(
|
||||
block, UI_BTYPE_ICON_TOGGLE, 0, ICON_RESTRICT_SELECT_OFF,
|
||||
block, UI_BTYPE_ICON_TOGGLE, 0, 0,
|
||||
(int)(ar->v2d.cur.xmax - OL_TOG_RESTRICT_SELECTX), te->ys, UI_UNIT_X,
|
||||
UI_UNIT_Y, &collection_ptr, collection_prop_hide_select, -1, 0, 0, 0, 0, NULL);
|
||||
UI_UNIT_Y, &collection_ptr, props.collection_hide_select, -1, 0, 0, 0, 0, NULL);
|
||||
UI_but_flag_enable(bt, UI_BUT_DRAG_LOCK);
|
||||
}
|
||||
}
|
||||
@@ -1059,10 +1060,10 @@ TreeElementIcon tree_element_get_icon(TreeStoreElem *tselem, TreeElement *te)
|
||||
data.icon = ICON_MOD_SUBSURF;
|
||||
break;
|
||||
case eGpencilModifierType_Thick:
|
||||
data.icon = ICON_MAN_ROT;
|
||||
data.icon = ICON_MOD_THICKNESS;
|
||||
break;
|
||||
case eGpencilModifierType_Tint:
|
||||
data.icon = ICON_COLOR;
|
||||
data.icon = ICON_MOD_TINT;
|
||||
break;
|
||||
case eGpencilModifierType_Array:
|
||||
data.icon = ICON_MOD_ARRAY;
|
||||
@@ -1074,7 +1075,7 @@ TreeElementIcon tree_element_get_icon(TreeStoreElem *tselem, TreeElement *te)
|
||||
data.icon = ICON_MOD_MASK;
|
||||
break;
|
||||
case eGpencilModifierType_Color:
|
||||
data.icon = ICON_GROUP_VCOL;
|
||||
data.icon = ICON_MOD_TINT;
|
||||
break;
|
||||
case eGpencilModifierType_Lattice:
|
||||
data.icon = ICON_MOD_LATTICE;
|
||||
@@ -1083,7 +1084,7 @@ TreeElementIcon tree_element_get_icon(TreeStoreElem *tselem, TreeElement *te)
|
||||
data.icon = ICON_MOD_MIRROR;
|
||||
break;
|
||||
case eGpencilModifierType_Simplify:
|
||||
data.icon = ICON_MOD_DECIM;
|
||||
data.icon = ICON_MOD_SIMPLIFY;
|
||||
break;
|
||||
case eGpencilModifierType_Smooth:
|
||||
data.icon = ICON_MOD_SMOOTH;
|
||||
@@ -1092,7 +1093,7 @@ TreeElementIcon tree_element_get_icon(TreeStoreElem *tselem, TreeElement *te)
|
||||
data.icon = ICON_HOOK;
|
||||
break;
|
||||
case eGpencilModifierType_Offset:
|
||||
data.icon = ICON_MOD_DISPLACE;
|
||||
data.icon = ICON_MOD_OFFSET;
|
||||
break;
|
||||
case eGpencilModifierType_Armature:
|
||||
data.icon = ICON_MOD_ARMATURE;
|
||||
@@ -1113,7 +1114,7 @@ TreeElementIcon tree_element_get_icon(TreeStoreElem *tselem, TreeElement *te)
|
||||
data.icon = ICON_BONE_DATA;
|
||||
break;
|
||||
case TSE_PROXY:
|
||||
data.icon = ICON_GHOST;
|
||||
data.icon = ICON_GHOST_ENABLED;
|
||||
break;
|
||||
case TSE_R_LAYER_BASE:
|
||||
data.icon = ICON_RENDERLAYERS;
|
||||
|
||||
@@ -81,7 +81,7 @@ const EnumPropertyItem rna_enum_id_type_items[] = {
|
||||
{ID_SPK, "SPEAKER", ICON_SPEAKER, "Speaker", ""},
|
||||
{ID_TXT, "TEXT", ICON_TEXT, "Text", ""},
|
||||
{ID_TE, "TEXTURE", ICON_TEXTURE_DATA, "Texture", ""},
|
||||
{ID_WM, "WINDOWMANAGER", ICON_FULLSCREEN, "Window Manager", ""},
|
||||
{ID_WM, "WINDOWMANAGER", ICON_WORKSPACE, "Window Manager", ""},
|
||||
{ID_WO, "WORLD", ICON_WORLD_DATA, "World", ""},
|
||||
{ID_WS, "WORKSPACE", ICON_WORKSPACE, "Workspace", ""},
|
||||
{0, NULL, 0, NULL, NULL}
|
||||
@@ -1173,6 +1173,7 @@ static void rna_def_ID(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "use_fake_user", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", LIB_FAKEUSER);
|
||||
RNA_def_property_ui_text(prop, "Fake User", "Save this data-block even if it has no users");
|
||||
RNA_def_property_ui_icon(prop, ICON_FAKE_USER_OFF, true);
|
||||
RNA_def_property_boolean_funcs(prop, NULL, "rna_ID_fake_user_set");
|
||||
|
||||
prop = RNA_def_property(srna, "tag", PROP_BOOLEAN, PROP_NONE);
|
||||
|
||||
@@ -301,7 +301,7 @@ static void rna_def_dopesheet(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "show_only_selected", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "filterflag", ADS_FILTER_ONLYSEL);
|
||||
RNA_def_property_ui_text(prop, "Only Selected", "Only include channels relating to selected objects and data");
|
||||
RNA_def_property_ui_icon(prop, ICON_RESTRICT_SELECT_OFF, 0);
|
||||
RNA_def_property_ui_icon(prop, ICON_RESTRICT_SELECT_ON, 0);
|
||||
RNA_def_property_update(prop, NC_ANIMATION | ND_ANIMCHAN | NA_EDITED, NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "show_hidden", PROP_BOOLEAN, PROP_NONE);
|
||||
@@ -383,7 +383,7 @@ static void rna_def_dopesheet(BlenderRNA *brna)
|
||||
RNA_def_property_boolean_negative_sdna(prop, NULL, "filterflag", ADS_FILTER_NOOBJ);
|
||||
RNA_def_property_ui_text(prop, "Display Transforms",
|
||||
"Include visualization of object-level animation data (mostly transforms)");
|
||||
RNA_def_property_ui_icon(prop, ICON_MANIPUL, 0); /* XXX? */
|
||||
RNA_def_property_ui_icon(prop, ICON_ORIENTATION_GLOBAL, 0); /* XXX? */
|
||||
RNA_def_property_update(prop, NC_ANIMATION | ND_ANIMCHAN | NA_EDITED, NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "show_shapekeys", PROP_BOOLEAN, PROP_NONE);
|
||||
@@ -402,19 +402,19 @@ static void rna_def_dopesheet(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "show_meshes", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_negative_sdna(prop, NULL, "filterflag", ADS_FILTER_NOMESH);
|
||||
RNA_def_property_ui_text(prop, "Display Meshes", "Include visualization of mesh related animation data");
|
||||
RNA_def_property_ui_icon(prop, ICON_MESH_DATA, 0);
|
||||
RNA_def_property_ui_icon(prop, ICON_OUTLINER_OB_MESH, 0);
|
||||
RNA_def_property_update(prop, NC_ANIMATION | ND_ANIMCHAN | NA_EDITED, NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "show_lattices", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_negative_sdna(prop, NULL, "filterflag", ADS_FILTER_NOLAT);
|
||||
RNA_def_property_ui_text(prop, "Display Lattices", "Include visualization of lattice related animation data");
|
||||
RNA_def_property_ui_icon(prop, ICON_LATTICE_DATA, 0);
|
||||
RNA_def_property_ui_icon(prop, ICON_OUTLINER_OB_LATTICE, 0);
|
||||
RNA_def_property_update(prop, NC_ANIMATION | ND_ANIMCHAN | NA_EDITED, NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "show_cameras", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_negative_sdna(prop, NULL, "filterflag", ADS_FILTER_NOCAM);
|
||||
RNA_def_property_ui_text(prop, "Display Camera", "Include visualization of camera related animation data");
|
||||
RNA_def_property_ui_icon(prop, ICON_CAMERA_DATA, 0);
|
||||
RNA_def_property_ui_icon(prop, ICON_OUTLINER_OB_CAMERA, 0);
|
||||
RNA_def_property_update(prop, NC_ANIMATION | ND_ANIMCHAN | NA_EDITED, NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "show_materials", PROP_BOOLEAN, PROP_NONE);
|
||||
@@ -426,7 +426,7 @@ static void rna_def_dopesheet(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "show_lights", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_negative_sdna(prop, NULL, "filterflag", ADS_FILTER_NOLAM);
|
||||
RNA_def_property_ui_text(prop, "Display Light", "Include visualization of light related animation data");
|
||||
RNA_def_property_ui_icon(prop, ICON_LIGHT_DATA, 0);
|
||||
RNA_def_property_ui_icon(prop, ICON_OUTLINER_OB_LIGHT, 0);
|
||||
RNA_def_property_update(prop, NC_ANIMATION | ND_ANIMCHAN | NA_EDITED, NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "show_linestyles", PROP_BOOLEAN, PROP_NONE);
|
||||
@@ -468,13 +468,13 @@ static void rna_def_dopesheet(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "show_metaballs", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_negative_sdna(prop, NULL, "filterflag", ADS_FILTER_NOMBA);
|
||||
RNA_def_property_ui_text(prop, "Display Metaball", "Include visualization of metaball related animation data");
|
||||
RNA_def_property_ui_icon(prop, ICON_META_DATA, 0);
|
||||
RNA_def_property_ui_icon(prop, ICON_OUTLINER_OB_META, 0);
|
||||
RNA_def_property_update(prop, NC_ANIMATION | ND_ANIMCHAN | NA_EDITED, NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "show_armatures", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_negative_sdna(prop, NULL, "filterflag", ADS_FILTER_NOARM);
|
||||
RNA_def_property_ui_text(prop, "Display Armature", "Include visualization of armature related animation data");
|
||||
RNA_def_property_ui_icon(prop, ICON_ARMATURE_DATA, 0);
|
||||
RNA_def_property_ui_icon(prop, ICON_OUTLINER_OB_ARMATURE, 0);
|
||||
RNA_def_property_update(prop, NC_ANIMATION | ND_ANIMCHAN | NA_EDITED, NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "show_nodes", PROP_BOOLEAN, PROP_NONE);
|
||||
@@ -486,13 +486,13 @@ static void rna_def_dopesheet(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "show_speakers", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_negative_sdna(prop, NULL, "filterflag", ADS_FILTER_NOSPK);
|
||||
RNA_def_property_ui_text(prop, "Display Speaker", "Include visualization of speaker related animation data");
|
||||
RNA_def_property_ui_icon(prop, ICON_SPEAKER, 0);
|
||||
RNA_def_property_ui_icon(prop, ICON_OUTLINER_OB_SPEAKER, 0);
|
||||
RNA_def_property_update(prop, NC_ANIMATION | ND_ANIMCHAN | NA_EDITED, NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "show_gpencil", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_negative_sdna(prop, NULL, "filterflag", ADS_FILTER_NOGPENCIL);
|
||||
RNA_def_property_ui_text(prop, "Display Grease Pencil", "Include visualization of Grease Pencil related animation data and frames");
|
||||
RNA_def_property_ui_icon(prop, ICON_GREASEPENCIL, 0);
|
||||
RNA_def_property_ui_icon(prop, ICON_OUTLINER_OB_GREASEPENCIL, 0);
|
||||
RNA_def_property_update(prop, NC_ANIMATION | ND_ANIMCHAN | NA_EDITED, NULL);
|
||||
|
||||
/* GPencil Mode Settings */
|
||||
|
||||
@@ -126,7 +126,7 @@ const EnumPropertyItem rna_enum_brush_image_tool_items[] = {
|
||||
|
||||
#ifndef RNA_RUNTIME
|
||||
static EnumPropertyItem rna_enum_gpencil_brush_types_items[] = {
|
||||
{ GP_BRUSH_TYPE_DRAW, "DRAW", ICON_GREASEPENCIL_STROKE_PAINT, "Draw", "The brush is of type used for drawing strokes" },
|
||||
{ GP_BRUSH_TYPE_DRAW, "DRAW", ICON_GP_STROKE, "Draw", "The brush is of type used for drawing strokes" },
|
||||
{ GP_BRUSH_TYPE_FILL, "FILL", ICON_COLOR, "Fill", "The brush is of type used for filling areas" },
|
||||
{ GP_BRUSH_TYPE_ERASE, "ERASE", ICON_PANEL_CLOSE, "Erase", "The brush is used for erasing strokes" },
|
||||
{ 0, NULL, 0, NULL, NULL }
|
||||
|
||||
@@ -359,21 +359,21 @@ void RNA_def_collections(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "hide_select", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", COLLECTION_RESTRICT_SELECT);
|
||||
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_STATIC);
|
||||
RNA_def_property_ui_icon(prop, ICON_RESTRICT_SELECT_OFF, 1);
|
||||
RNA_def_property_ui_icon(prop, ICON_RESTRICT_SELECT_ON, -1);
|
||||
RNA_def_property_ui_text(prop, "Disable Select", "Disable collection for viewport selection");
|
||||
RNA_def_property_update(prop, NC_SCENE | ND_LAYER_CONTENT, "rna_Collection_flag_update");
|
||||
|
||||
prop = RNA_def_property(srna, "hide_viewport", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", COLLECTION_RESTRICT_VIEW);
|
||||
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_STATIC);
|
||||
RNA_def_property_ui_icon(prop, ICON_RESTRICT_VIEW_OFF, 1);
|
||||
RNA_def_property_ui_icon(prop, ICON_RESTRICT_VIEW_ON, -1);
|
||||
RNA_def_property_ui_text(prop, "Disable Viewport", "Disable collection in viewport");
|
||||
RNA_def_property_update(prop, NC_SCENE | ND_LAYER_CONTENT, "rna_Collection_flag_update");
|
||||
|
||||
prop = RNA_def_property(srna, "hide_render", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", COLLECTION_RESTRICT_RENDER);
|
||||
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_STATIC);
|
||||
RNA_def_property_ui_icon(prop, ICON_RESTRICT_RENDER_OFF, 1);
|
||||
RNA_def_property_ui_icon(prop, ICON_RESTRICT_RENDER_ON, -1);
|
||||
RNA_def_property_ui_text(prop, "Disable Render", "Disable collection in renders");
|
||||
RNA_def_property_update(prop, NC_SCENE | ND_LAYER_CONTENT, "rna_Collection_flag_update");
|
||||
}
|
||||
|
||||
@@ -1554,7 +1554,7 @@ static void rna_def_drivervar(BlenderRNA *brna)
|
||||
|
||||
static const EnumPropertyItem prop_type_items[] = {
|
||||
{DVAR_TYPE_SINGLE_PROP, "SINGLE_PROP", ICON_RNA, "Single Property", "Use the value from some RNA property (Default)"},
|
||||
{DVAR_TYPE_TRANSFORM_CHAN, "TRANSFORMS", ICON_MANIPUL, "Transform Channel",
|
||||
{DVAR_TYPE_TRANSFORM_CHAN, "TRANSFORMS", ICON_ORIENTATION_GLOBAL, "Transform Channel",
|
||||
"Final transformation value of object or bone"},
|
||||
{DVAR_TYPE_ROT_DIFF, "ROTATION_DIFF", ICON_PARTICLE_TIP, "Rotational Difference", "Use the angle between two bones"}, /* XXX: Icon... */
|
||||
{DVAR_TYPE_LOC_DIFF, "LOC_DIFF", ICON_FULLSCREEN_ENTER, "Distance", "Distance between two bones or objects"}, /* XXX: Icon... */
|
||||
|
||||
@@ -64,21 +64,21 @@ const EnumPropertyItem rna_enum_object_greasepencil_modifier_type_items[] = {
|
||||
{eGpencilModifierType_Array, "GP_ARRAY", ICON_MOD_ARRAY, "Array", "Create array of duplicate instances"},
|
||||
{eGpencilModifierType_Build, "GP_BUILD", ICON_MOD_BUILD, "Build", "Create duplication of strokes"},
|
||||
{eGpencilModifierType_Mirror, "GP_MIRROR", ICON_MOD_MIRROR, "Mirror", "Duplicate strokes like a mirror"},
|
||||
{eGpencilModifierType_Simplify, "GP_SIMPLIFY", ICON_MOD_DECIM, "Simplify", "Simplify stroke reducing number of points"},
|
||||
{eGpencilModifierType_Simplify, "GP_SIMPLIFY", ICON_MOD_SIMPLIFY, "Simplify", "Simplify stroke reducing number of points"},
|
||||
{eGpencilModifierType_Subdiv, "GP_SUBDIV", ICON_MOD_SUBSURF, "Subdivide", "Subdivide stroke adding more control points"},
|
||||
{0, "", 0, N_("Deform"), "" },
|
||||
{eGpencilModifierType_Armature, "GP_ARMATURE", ICON_MOD_ARMATURE, "Armature", "Deform stroke points using armature object"},
|
||||
{eGpencilModifierType_Hook, "GP_HOOK", ICON_HOOK, "Hook", "Deform stroke points using objects"},
|
||||
{eGpencilModifierType_Lattice, "GP_LATTICE", ICON_MOD_LATTICE, "Lattice", "Deform strokes using lattice"},
|
||||
{eGpencilModifierType_Noise, "GP_NOISE", ICON_RNDCURVE, "Noise", "Add noise to strokes"},
|
||||
{eGpencilModifierType_Offset, "GP_OFFSET", ICON_MOD_DISPLACE, "Offset", "Change stroke location, rotation or scale"},
|
||||
{eGpencilModifierType_Noise, "GP_NOISE", ICON_MOD_NOISE, "Noise", "Add noise to strokes"},
|
||||
{eGpencilModifierType_Offset, "GP_OFFSET", ICON_MOD_OFFSET, "Offset", "Change stroke location, rotation or scale"},
|
||||
{eGpencilModifierType_Smooth, "GP_SMOOTH", ICON_MOD_SMOOTH, "Smooth", "Smooth stroke"},
|
||||
{eGpencilModifierType_Thick, "GP_THICK", ICON_MAN_ROT, "Thickness", "Change stroke thickness"},
|
||||
{eGpencilModifierType_Time, "GP_TIME", ICON_MOD_DISPLACE, "Time Offset", "Offset keyframes"},
|
||||
{eGpencilModifierType_Thick, "GP_THICK", ICON_MOD_THICKNESS, "Thickness", "Change stroke thickness"},
|
||||
{eGpencilModifierType_Time, "GP_TIME", ICON_MOD_TIME, "Time Offset", "Offset keyframes"},
|
||||
{0, "", 0, N_("Color"), "" },
|
||||
{eGpencilModifierType_Color, "GP_COLOR", ICON_GROUP_VCOL, "Hue/Saturation", "Apply changes to stroke colors"},
|
||||
{eGpencilModifierType_Opacity, "GP_OPACITY", ICON_MOD_MASK, "Opacity", "Opacity of the strokes"},
|
||||
{eGpencilModifierType_Tint, "GP_TINT", ICON_COLOR, "Tint", "Tint strokes with new color"},
|
||||
{eGpencilModifierType_Color, "GP_COLOR", ICON_MOD_TINT, "Hue/Saturation", "Apply changes to stroke colors"},
|
||||
{eGpencilModifierType_Opacity, "GP_OPACITY", ICON_MOD_OPACITY, "Opacity", "Opacity of the strokes"},
|
||||
{eGpencilModifierType_Tint, "GP_TINT", ICON_MOD_TINT, "Tint", "Tint strokes with new color"},
|
||||
{0, NULL, 0, NULL, NULL}
|
||||
};
|
||||
|
||||
@@ -283,7 +283,7 @@ static void rna_def_modifier_gpencilnoise(BlenderRNA *brna)
|
||||
srna = RNA_def_struct(brna, "NoiseGpencilModifier", "GpencilModifier");
|
||||
RNA_def_struct_ui_text(srna, "Noise Modifier", "Noise effect modifier");
|
||||
RNA_def_struct_sdna(srna, "NoiseGpencilModifierData");
|
||||
RNA_def_struct_ui_icon(srna, ICON_RNDCURVE);
|
||||
RNA_def_struct_ui_icon(srna, ICON_MOD_NOISE);
|
||||
|
||||
prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_sdna(prop, NULL, "layername");
|
||||
@@ -532,7 +532,7 @@ static void rna_def_modifier_gpencilsimplify(BlenderRNA *brna)
|
||||
srna = RNA_def_struct(brna, "SimplifyGpencilModifier", "GpencilModifier");
|
||||
RNA_def_struct_ui_text(srna, "Simplify Modifier", "Simplify Stroke modifier");
|
||||
RNA_def_struct_sdna(srna, "SimplifyGpencilModifierData");
|
||||
RNA_def_struct_ui_icon(srna, ICON_MOD_DECIM);
|
||||
RNA_def_struct_ui_icon(srna, ICON_MOD_SIMPLIFY);
|
||||
|
||||
prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_sdna(prop, NULL, "layername");
|
||||
@@ -594,7 +594,7 @@ static void rna_def_modifier_gpencilthick(BlenderRNA *brna)
|
||||
srna = RNA_def_struct(brna, "ThickGpencilModifier", "GpencilModifier");
|
||||
RNA_def_struct_ui_text(srna, "Thick Modifier", "Subdivide and Smooth Stroke modifier");
|
||||
RNA_def_struct_sdna(srna, "ThickGpencilModifierData");
|
||||
RNA_def_struct_ui_icon(srna, ICON_MAN_ROT);
|
||||
RNA_def_struct_ui_icon(srna, ICON_MOD_THICKNESS);
|
||||
|
||||
prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_sdna(prop, NULL, "layername");
|
||||
@@ -669,7 +669,7 @@ static void rna_def_modifier_gpenciloffset(BlenderRNA *brna)
|
||||
srna = RNA_def_struct(brna, "OffsetGpencilModifier", "GpencilModifier");
|
||||
RNA_def_struct_ui_text(srna, "Offset Modifier", "Offset Stroke modifier");
|
||||
RNA_def_struct_sdna(srna, "OffsetGpencilModifierData");
|
||||
RNA_def_struct_ui_icon(srna, ICON_MOD_DISPLACE);
|
||||
RNA_def_struct_ui_icon(srna, ICON_MOD_OFFSET);
|
||||
|
||||
prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_sdna(prop, NULL, "layername");
|
||||
@@ -807,7 +807,7 @@ static void rna_def_modifier_gpenciltime(BlenderRNA *brna)
|
||||
srna = RNA_def_struct(brna, "TimeGpencilModifier", "GpencilModifier");
|
||||
RNA_def_struct_ui_text(srna, "Time Offset Modifier", "Time offset modifier");
|
||||
RNA_def_struct_sdna(srna, "TimeGpencilModifierData");
|
||||
RNA_def_struct_ui_icon(srna, ICON_MOD_DISPLACE);
|
||||
RNA_def_struct_ui_icon(srna, ICON_MOD_TIME);
|
||||
|
||||
prop = RNA_def_property(srna, "mode", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, NULL, "mode");
|
||||
@@ -864,7 +864,7 @@ static void rna_def_modifier_gpencilcolor(BlenderRNA *brna)
|
||||
srna = RNA_def_struct(brna, "ColorGpencilModifier", "GpencilModifier");
|
||||
RNA_def_struct_ui_text(srna, "Hue/Saturation Modifier", "Change Hue/Saturation modifier");
|
||||
RNA_def_struct_sdna(srna, "ColorGpencilModifierData");
|
||||
RNA_def_struct_ui_icon(srna, ICON_GROUP_VCOL);
|
||||
RNA_def_struct_ui_icon(srna, ICON_MOD_TINT);
|
||||
|
||||
prop = RNA_def_property(srna, "modify_color", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_items(prop, modifier_modify_color_items); /* share the enum */
|
||||
@@ -938,7 +938,7 @@ static void rna_def_modifier_gpencilopacity(BlenderRNA *brna)
|
||||
srna = RNA_def_struct(brna, "OpacityGpencilModifier", "GpencilModifier");
|
||||
RNA_def_struct_ui_text(srna, "Opacity Modifier", "Opacity of Strokes modifier");
|
||||
RNA_def_struct_sdna(srna, "OpacityGpencilModifierData");
|
||||
RNA_def_struct_ui_icon(srna, ICON_MOD_MASK);
|
||||
RNA_def_struct_ui_icon(srna, ICON_MOD_OPACITY);
|
||||
|
||||
prop = RNA_def_property(srna, "modify_color", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_items(prop, modifier_modify_color_items); /* share the enum */
|
||||
|
||||
@@ -116,7 +116,7 @@ const EnumPropertyItem rna_enum_object_modifier_type_items[] = {
|
||||
{eModifierType_Explode, "EXPLODE", ICON_MOD_EXPLODE, "Explode", ""},
|
||||
{eModifierType_Fluidsim, "FLUID_SIMULATION", ICON_MOD_FLUIDSIM, "Fluid Simulation", ""},
|
||||
{eModifierType_Ocean, "OCEAN", ICON_MOD_OCEAN, "Ocean", ""},
|
||||
{eModifierType_ParticleInstance, "PARTICLE_INSTANCE", ICON_MOD_PARTICLES, "Particle Instance", ""},
|
||||
{eModifierType_ParticleInstance, "PARTICLE_INSTANCE", ICON_MOD_PARTICLE_INSTANCE, "Particle Instance", ""},
|
||||
{eModifierType_ParticleSystem, "PARTICLE_SYSTEM", ICON_MOD_PARTICLES, "Particle System", ""},
|
||||
{eModifierType_Smoke, "SMOKE", ICON_MOD_SMOKE, "Smoke", ""},
|
||||
{eModifierType_Softbody, "SOFT_BODY", ICON_MOD_SOFT, "Soft Body", ""},
|
||||
@@ -5061,13 +5061,13 @@ void RNA_def_modifier(BlenderRNA *brna)
|
||||
RNA_def_property_flag(prop, PROP_LIB_EXCEPTION);
|
||||
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_STATIC);
|
||||
RNA_def_property_update(prop, 0, "rna_Modifier_update");
|
||||
RNA_def_property_ui_icon(prop, ICON_RESTRICT_VIEW_OFF, 0);
|
||||
RNA_def_property_ui_icon(prop, ICON_RESTRICT_VIEW_OFF, 1);
|
||||
|
||||
prop = RNA_def_property(srna, "show_render", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "mode", eModifierMode_Render);
|
||||
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_STATIC);
|
||||
RNA_def_property_ui_text(prop, "Render", "Use modifier during render");
|
||||
RNA_def_property_ui_icon(prop, ICON_SCENE, 0);
|
||||
RNA_def_property_ui_icon(prop, ICON_RESTRICT_RENDER_OFF, 1);
|
||||
RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "show_in_editmode", PROP_BOOLEAN, PROP_NONE);
|
||||
|
||||
@@ -7094,7 +7094,7 @@ static void rna_def_node_socket(BlenderRNA *brna)
|
||||
RNA_def_struct_ui_text(srna, "Node Socket", "Input or output socket of a node");
|
||||
RNA_def_struct_sdna(srna, "bNodeSocket");
|
||||
RNA_def_struct_refine_func(srna, "rna_NodeSocket_refine");
|
||||
RNA_def_struct_ui_icon(srna, ICON_PLUG);
|
||||
RNA_def_struct_ui_icon(srna, ICON_PLUGIN);
|
||||
RNA_def_struct_path_func(srna, "rna_NodeSocket_path");
|
||||
RNA_def_struct_register_funcs(srna, "rna_NodeSocket_register", "rna_NodeSocket_unregister", NULL);
|
||||
RNA_def_struct_idprops_func(srna, "rna_NodeSocket_idprops");
|
||||
|
||||
@@ -111,8 +111,8 @@ const EnumPropertyItem rna_enum_object_empty_drawtype_items[] = {
|
||||
};
|
||||
|
||||
const EnumPropertyItem rna_enum_object_gpencil_type_items[] = {
|
||||
{ GP_EMPTY, "EMPTY", ICON_OUTLINER_OB_GREASEPENCIL, "Blank", "Create an empty grease pencil object" },
|
||||
{ GP_STROKE, "STROKE", ICON_OUTLINER_OB_CURVE, "Stroke", "Create a simple stroke with basic colors" },
|
||||
{ GP_EMPTY, "EMPTY", ICON_GP_EMPTY, "Blank", "Create an empty grease pencil object" },
|
||||
{ GP_STROKE, "STROKE", ICON_GP_STROKE, "Stroke", "Create a simple stroke with basic colors" },
|
||||
{ GP_MONKEY, "MONKEY", ICON_MONKEY, "Monkey", "Construct a Suzanne grease pencil object" },
|
||||
{ 0, NULL, 0, NULL, NULL }
|
||||
};
|
||||
@@ -2540,21 +2540,21 @@ static void rna_def_object(BlenderRNA *brna)
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "restrictflag", OB_RESTRICT_VIEW);
|
||||
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_STATIC);
|
||||
RNA_def_property_ui_text(prop, "Disable View", "Disable object in the viewport");
|
||||
RNA_def_property_ui_icon(prop, ICON_RESTRICT_VIEW_OFF, 1);
|
||||
RNA_def_property_ui_icon(prop, ICON_RESTRICT_VIEW_ON, -1);
|
||||
RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Object_hide_update");
|
||||
|
||||
prop = RNA_def_property(srna, "hide_select", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "restrictflag", OB_RESTRICT_SELECT);
|
||||
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_STATIC);
|
||||
RNA_def_property_ui_text(prop, "Disable Select", "Disable object selection in the viewport");
|
||||
RNA_def_property_ui_icon(prop, ICON_RESTRICT_SELECT_OFF, 1);
|
||||
RNA_def_property_ui_icon(prop, ICON_RESTRICT_SELECT_ON, -1);
|
||||
RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Object_hide_update");
|
||||
|
||||
prop = RNA_def_property(srna, "hide_render", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "restrictflag", OB_RESTRICT_RENDER);
|
||||
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_STATIC);
|
||||
RNA_def_property_ui_text(prop, "Disable Render", "Disable object in renders");
|
||||
RNA_def_property_ui_icon(prop, ICON_RESTRICT_RENDER_OFF, 1);
|
||||
RNA_def_property_ui_icon(prop, ICON_RESTRICT_RENDER_ON, -1);
|
||||
RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Object_hide_update");
|
||||
|
||||
prop = RNA_def_property(srna, "show_duplicator_for_render", PROP_BOOLEAN, PROP_NONE);
|
||||
|
||||
@@ -2224,7 +2224,7 @@ static void rna_def_tool_settings(BlenderRNA *brna)
|
||||
static const EnumPropertyItem gpencil_stroke_placement_items[] = {
|
||||
{GP_PROJECT_VIEWSPACE, "ORIGIN", ICON_OBJECT_ORIGIN, "Origin", "Draw stroke at Object origin"},
|
||||
{GP_PROJECT_VIEWSPACE | GP_PROJECT_CURSOR, "CURSOR", ICON_PIVOT_CURSOR, "3D Cursor", "Draw stroke at 3D cursor location" },
|
||||
{GP_PROJECT_VIEWSPACE | GP_PROJECT_DEPTH_VIEW, "SURFACE", ICON_FACESEL, "Surface", "Stick stroke to surfaces"},
|
||||
{GP_PROJECT_VIEWSPACE | GP_PROJECT_DEPTH_VIEW, "SURFACE", ICON_SNAP_FACE, "Surface", "Stick stroke to surfaces"},
|
||||
{0, NULL, 0, NULL, NULL}
|
||||
};
|
||||
|
||||
@@ -2415,15 +2415,13 @@ static void rna_def_tool_settings(BlenderRNA *brna)
|
||||
|
||||
prop = RNA_def_property(srna, "use_snap_align_rotation", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "snap_flag", SCE_SNAP_ROTATE);
|
||||
RNA_def_property_ui_text(prop, "Snap Align Rotation", "Align rotation with the snapping target");
|
||||
RNA_def_property_ui_icon(prop, ICON_SNAP_NORMAL, 0);
|
||||
RNA_def_property_ui_text(prop, "Align Rotation to Target", "Align rotation with the snapping target");
|
||||
RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); /* header redraw */
|
||||
|
||||
prop = RNA_def_property(srna, "use_snap_grid_absolute", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "snap_flag", SCE_SNAP_ABS_GRID);
|
||||
RNA_def_property_ui_text(prop, "Absolute Grid Snap",
|
||||
"Absolute grid alignment while translating (based on the pivot center)");
|
||||
RNA_def_property_ui_icon(prop, ICON_SNAP_GRID, 0);
|
||||
RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); /* header redraw */
|
||||
|
||||
prop = RNA_def_property(srna, "snap_elements", PROP_ENUM, PROP_NONE);
|
||||
@@ -2457,20 +2455,17 @@ static void rna_def_tool_settings(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "use_snap_peel_object", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "snap_flag", SCE_SNAP_PEEL_OBJECT);
|
||||
RNA_def_property_ui_text(prop, "Snap Peel Object", "Consider objects as whole when finding volume center");
|
||||
RNA_def_property_ui_icon(prop, ICON_SNAP_PEEL_OBJECT, 0);
|
||||
RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); /* header redraw */
|
||||
|
||||
prop = RNA_def_property(srna, "use_snap_project", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "snap_flag", SCE_SNAP_PROJECT);
|
||||
RNA_def_property_ui_text(prop, "Project Individual Elements",
|
||||
"Project individual elements on the surface of other objects");
|
||||
RNA_def_property_ui_icon(prop, ICON_RETOPO, 0);
|
||||
RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); /* header redraw */
|
||||
|
||||
prop = RNA_def_property(srna, "use_snap_self", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_negative_sdna(prop, NULL, "snap_flag", SCE_SNAP_NO_SELF);
|
||||
RNA_def_property_ui_text(prop, "Project to Self", "Snap onto itself (editmode)");
|
||||
RNA_def_property_ui_icon(prop, ICON_XRAY, 0);
|
||||
RNA_def_property_ui_text(prop, "Project onto Self", "Snap onto itself (Edit Mode Only)");
|
||||
RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); /* header redraw */
|
||||
|
||||
prop = RNA_def_property(srna, "use_gizmo_mode", PROP_ENUM, PROP_NONE);
|
||||
|
||||
@@ -3802,19 +3802,19 @@ static void rna_def_space_text(BlenderRNA *brna)
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "wordwrap", 0);
|
||||
RNA_def_property_boolean_funcs(prop, NULL, "rna_SpaceTextEditor_word_wrap_set");
|
||||
RNA_def_property_ui_text(prop, "Word Wrap", "Wrap words if there is not enough horizontal space");
|
||||
RNA_def_property_ui_icon(prop, ICON_WORDWRAP_OFF, 1);
|
||||
RNA_def_property_ui_icon(prop, ICON_WORDWRAP_ON, 0);
|
||||
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_TEXT, NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "show_line_numbers", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "showlinenrs", 0);
|
||||
RNA_def_property_ui_text(prop, "Line Numbers", "Show line numbers next to the text");
|
||||
RNA_def_property_ui_icon(prop, ICON_LINENUMBERS_OFF, 1);
|
||||
RNA_def_property_ui_icon(prop, ICON_LINENUMBERS_ON, 0);
|
||||
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_TEXT, NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "show_syntax_highlight", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "showsyntax", 0);
|
||||
RNA_def_property_ui_text(prop, "Syntax Highlight", "Syntax highlight for scripting");
|
||||
RNA_def_property_ui_icon(prop, ICON_SYNTAX_OFF, 1);
|
||||
RNA_def_property_ui_icon(prop, ICON_SYNTAX_ON, 0);
|
||||
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_TEXT, NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "show_line_highlight", PROP_BOOLEAN, PROP_NONE);
|
||||
|
||||
Reference in New Issue
Block a user