fake-bpy-module 20240516__py3-none-any.whl → 20240517__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of fake-bpy-module might be problematic. Click here for more details.
- _bpy_internal/freedesktop/__init__.pyi +2 -2
- addon_utils/__init__.pyi +43 -12
- animsys_refactor/__init__.pyi +4 -4
- aud/__init__.pyi +7 -7
- bgl/__init__.pyi +121 -183
- bl_app_override/__init__.pyi +5 -5
- bl_app_override/helpers/__init__.pyi +3 -1
- bl_app_template_utils/__init__.pyi +5 -5
- bl_console_utils/autocomplete/complete_calltip/__init__.pyi +48 -10
- bl_console_utils/autocomplete/complete_import/__init__.pyi +27 -6
- bl_console_utils/autocomplete/complete_namespace/__init__.pyi +40 -8
- bl_console_utils/autocomplete/intellisense/__init__.pyi +31 -4
- bl_i18n_utils/bl_extract_messages/__init__.pyi +5 -5
- bl_i18n_utils/settings/__init__.pyi +4 -2
- bl_i18n_utils/utils/__init__.pyi +86 -58
- bl_i18n_utils/utils_rtl/__init__.pyi +8 -2
- bl_keymap_utils/io/__init__.pyi +4 -4
- bl_keymap_utils/keymap_from_toolbar/__init__.pyi +2 -2
- bl_keymap_utils/platform_helpers/__init__.pyi +2 -2
- bl_operators/add_mesh_torus/__init__.pyi +126 -41
- bl_operators/anim/__init__.pyi +1001 -328
- bl_operators/assets/__init__.pyi +376 -123
- bl_operators/bmesh/find_adjacent/__init__.pyi +3 -3
- bl_operators/clip/__init__.pyi +1250 -409
- bl_operators/console/__init__.pyi +626 -205
- bl_operators/constraint/__init__.pyi +502 -165
- bl_operators/file/__init__.pyi +376 -123
- bl_operators/freestyle/__init__.pyi +501 -164
- bl_operators/geometry_nodes/__init__.pyi +501 -164
- bl_operators/image/__init__.pyi +621 -200
- bl_operators/mesh/__init__.pyi +376 -123
- bl_operators/node/__init__.pyi +1243 -402
- bl_operators/object/__init__.pyi +1876 -615
- bl_operators/object_align/__init__.pyi +126 -41
- bl_operators/object_quick_effects/__init__.pyi +502 -165
- bl_operators/object_randomize_transform/__init__.pyi +126 -41
- bl_operators/presets/__init__.pyi +3069 -1027
- bl_operators/rigidbody/__init__.pyi +376 -123
- bl_operators/screen_play_rendered_anim/__init__.pyi +126 -41
- bl_operators/sequencer/__init__.pyi +1009 -331
- bl_operators/spreadsheet/__init__.pyi +126 -41
- bl_operators/userpref/__init__.pyi +3263 -1078
- bl_operators/uvcalc_follow_active/__init__.pyi +126 -41
- bl_operators/uvcalc_lightmap/__init__.pyi +137 -47
- bl_operators/uvcalc_transform/__init__.pyi +289 -90
- bl_operators/vertexpaint_dirt/__init__.pyi +126 -41
- bl_operators/view3d/__init__.pyi +868 -279
- bl_operators/wm/__init__.pyi +5777 -1934
- bl_operators/world/__init__.pyi +126 -41
- bl_previews_utils/bl_previews_render/__init__.pyi +1 -1
- bl_rna_utils/data_path/__init__.pyi +8 -3
- bl_ui/__init__.pyi +338 -131
- bl_ui/anim/__init__.pyi +164 -64
- bl_ui/asset_shelf/__init__.pyi +129 -42
- bl_ui/generic_ui_list/__init__.pyi +412 -135
- bl_ui/node_add_menu/__init__.pyi +168 -68
- bl_ui/node_add_menu_compositor/__init__.pyi +2921 -1138
- bl_ui/node_add_menu_geometry/__init__.pyi +7785 -3032
- bl_ui/node_add_menu_shader/__init__.pyi +1621 -630
- bl_ui/node_add_menu_texture/__init__.pyi +1459 -567
- bl_ui/properties_animviz/__init__.pyi +2 -2
- bl_ui/properties_collection/__init__.pyi +806 -274
- bl_ui/properties_constraint/__init__.pyi +10253 -3458
- bl_ui/properties_data_armature/__init__.pyi +1615 -552
- bl_ui/properties_data_bone/__init__.pyi +1288 -425
- bl_ui/properties_data_camera/__init__.pyi +1854 -631
- bl_ui/properties_data_curve/__init__.pyi +1929 -636
- bl_ui/properties_data_curves/__init__.pyi +806 -274
- bl_ui/properties_data_empty/__init__.pyi +257 -84
- bl_ui/properties_data_gpencil/__init__.pyi +2380 -803
- bl_ui/properties_data_grease_pencil/__init__.pyi +1902 -656
- bl_ui/properties_data_lattice/__init__.pyi +388 -127
- bl_ui/properties_data_light/__init__.pyi +1541 -506
- bl_ui/properties_data_lightprobe/__init__.pyi +1667 -548
- bl_ui/properties_data_mesh/__init__.pyi +2704 -929
- bl_ui/properties_data_metaball/__init__.pyi +644 -211
- bl_ui/properties_data_modifier/__init__.pyi +1353 -502
- bl_ui/properties_data_pointcloud/__init__.pyi +679 -233
- bl_ui/properties_data_shaderfx/__init__.pyi +129 -42
- bl_ui/properties_data_speaker/__init__.pyi +644 -211
- bl_ui/properties_data_volume/__init__.pyi +1030 -339
- bl_ui/properties_freestyle/__init__.pyi +3113 -1035
- bl_ui/properties_grease_pencil_common/__init__.pyi +2464 -933
- bl_ui/properties_mask_common/__init__.pyi +1101 -420
- bl_ui/properties_material/__init__.pyi +2091 -699
- bl_ui/properties_material_gpencil/__init__.pyi +1350 -466
- bl_ui/properties_object/__init__.pyi +1838 -618
- bl_ui/properties_output/__init__.pyi +2414 -831
- bl_ui/properties_paint_common/__init__.pyi +412 -289
- bl_ui/properties_particle/__init__.pyi +6737 -2241
- bl_ui/properties_physics_cloth/__init__.pyi +1825 -612
- bl_ui/properties_physics_common/__init__.pyi +129 -42
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +2821 -928
- bl_ui/properties_physics_field/__init__.pyi +1283 -422
- bl_ui/properties_physics_fluid/__init__.pyi +3620 -1203
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +129 -42
- bl_ui/properties_physics_rigidbody/__init__.pyi +1027 -338
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +1667 -548
- bl_ui/properties_physics_softbody/__init__.pyi +1924 -633
- bl_ui/properties_render/__init__.pyi +6830 -2263
- bl_ui/properties_scene/__init__.pyi +1929 -636
- bl_ui/properties_texture/__init__.pyi +3370 -1118
- bl_ui/properties_view_layer/__init__.pyi +2346 -782
- bl_ui/properties_workspace/__init__.pyi +516 -169
- bl_ui/properties_world/__init__.pyi +1284 -421
- bl_ui/space_clip/__init__.pyi +10134 -3639
- bl_ui/space_console/__init__.pyi +939 -357
- bl_ui/space_dopesheet/__init__.pyi +4327 -1562
- bl_ui/space_filebrowser/__init__.pyi +4164 -1499
- bl_ui/space_graph/__init__.pyi +3108 -1179
- bl_ui/space_image/__init__.pyi +9766 -3596
- bl_ui/space_info/__init__.pyi +939 -357
- bl_ui/space_nla/__init__.pyi +2620 -988
- bl_ui/space_node/__init__.pyi +3994 -1434
- bl_ui/space_outliner/__init__.pyi +2203 -842
- bl_ui/space_properties/__init__.pyi +386 -127
- bl_ui/space_sequencer/__init__.pyi +10773 -3878
- bl_ui/space_spreadsheet/__init__.pyi +130 -43
- bl_ui/space_statusbar/__init__.pyi +129 -42
- bl_ui/space_text/__init__.pyi +2458 -925
- bl_ui/space_time/__init__.pyi +1033 -378
- bl_ui/space_toolsystem_common/__init__.pyi +20 -16
- bl_ui/space_toolsystem_toolbar/__init__.pyi +37 -21
- bl_ui/space_topbar/__init__.pyi +3980 -1496
- bl_ui/space_userpref/__init__.pyi +11373 -3797
- bl_ui/space_view3d/__init__.pyi +40865 -15356
- bl_ui/space_view3d_toolbar/__init__.pyi +12520 -4647
- bl_ui/temp_anim_layers/__init__.pyi +129 -42
- bl_ui/utils/__init__.pyi +28 -20
- bl_ui_utils/bug_report_url/__init__.pyi +1 -1
- bl_ui_utils/layout/__init__.pyi +1 -1
- blend_render_info/__init__.pyi +1 -1
- blf/__init__.pyi +4 -4
- bmesh/geometry/__init__.pyi +2 -3
- bmesh/ops/__init__.pyi +372 -419
- bmesh/types/__init__.pyi +38 -38
- bmesh/utils/__init__.pyi +10 -13
- bpy/app/__init__.pyi +4 -4
- bpy/app/handlers/__init__.pyi +36 -36
- bpy/app/icons/__init__.pyi +8 -8
- bpy/app/timers/__init__.pyi +10 -10
- bpy/app/translations/__init__.pyi +20 -22
- bpy/msgbus/__init__.pyi +2 -4
- bpy/ops/action/__init__.pyi +316 -394
- bpy/ops/anim/__init__.pyi +442 -548
- bpy/ops/armature/__init__.pyi +374 -470
- bpy/ops/asset/__init__.pyi +152 -184
- bpy/ops/bl_pkg/__init__.pyi +221 -272
- bpy/ops/boid/__init__.pyi +50 -66
- bpy/ops/brush/__init__.pyi +72 -90
- bpy/ops/buttons/__init__.pyi +132 -144
- bpy/ops/cachefile/__init__.pyi +128 -138
- bpy/ops/camera/__init__.pyi +26 -30
- bpy/ops/clip/__init__.pyi +777 -964
- bpy/ops/cloth/__init__.pyi +12 -14
- bpy/ops/collection/__init__.pyi +68 -86
- bpy/ops/console/__init__.pyi +158 -200
- bpy/ops/constraint/__init__.pyi +178 -214
- bpy/ops/curve/__init__.pyi +473 -576
- bpy/ops/curves/__init__.pyi +247 -302
- bpy/ops/cycles/__init__.pyi +28 -34
- bpy/ops/dpaint/__init__.pyi +34 -44
- bpy/ops/ed/__init__.pyi +126 -150
- bpy/ops/export_anim/__init__.pyi +22 -24
- bpy/ops/export_scene/__init__.pyi +302 -336
- bpy/ops/file/__init__.pyi +352 -432
- bpy/ops/fluid/__init__.pyi +90 -118
- bpy/ops/font/__init__.pyi +258 -304
- bpy/ops/geometry/__init__.pyi +100 -120
- bpy/ops/gizmogroup/__init__.pyi +22 -26
- bpy/ops/gpencil/__init__.pyi +1469 -1778
- bpy/ops/graph/__init__.pyi +644 -776
- bpy/ops/grease_pencil/__init__.pyi +597 -748
- bpy/ops/image/__init__.pyi +648 -744
- bpy/ops/import_anim/__init__.pyi +30 -32
- bpy/ops/import_curve/__init__.pyi +10 -12
- bpy/ops/import_scene/__init__.pyi +88 -96
- bpy/ops/info/__init__.pyi +60 -74
- bpy/ops/lattice/__init__.pyi +64 -80
- bpy/ops/marker/__init__.pyi +108 -130
- bpy/ops/mask/__init__.pyi +322 -402
- bpy/ops/material/__init__.pyi +18 -24
- bpy/ops/mball/__init__.pyi +70 -86
- bpy/ops/mesh/__init__.pyi +1986 -2322
- bpy/ops/nla/__init__.pyi +333 -411
- bpy/ops/node/__init__.pyi +886 -1100
- bpy/ops/object/__init__.pyi +2585 -3078
- bpy/ops/outliner/__init__.pyi +498 -636
- bpy/ops/paint/__init__.pyi +565 -680
- bpy/ops/paintcurve/__init__.pyi +64 -80
- bpy/ops/palette/__init__.pyi +50 -64
- bpy/ops/particle/__init__.pyi +267 -340
- bpy/ops/pose/__init__.pyi +336 -414
- bpy/ops/poselib/__init__.pyi +72 -90
- bpy/ops/preferences/__init__.pyi +386 -463
- bpy/ops/ptcache/__init__.pyi +46 -60
- bpy/ops/render/__init__.pyi +130 -154
- bpy/ops/rigidbody/__init__.pyi +102 -128
- bpy/ops/scene/__init__.pyi +280 -358
- bpy/ops/screen/__init__.pyi +382 -460
- bpy/ops/script/__init__.pyi +24 -30
- bpy/ops/sculpt/__init__.pyi +458 -532
- bpy/ops/sculpt_curves/__init__.pyi +41 -50
- bpy/ops/sequencer/__init__.pyi +1066 -1244
- bpy/ops/sound/__init__.pyi +216 -230
- bpy/ops/spreadsheet/__init__.pyi +30 -38
- bpy/ops/surface/__init__.pyi +108 -120
- bpy/ops/text/__init__.pyi +390 -476
- bpy/ops/text_editor/__init__.pyi +12 -14
- bpy/ops/texture/__init__.pyi +26 -34
- bpy/ops/transform/__init__.pyi +792 -878
- bpy/ops/ui/__init__.pyi +228 -294
- bpy/ops/uilist/__init__.pyi +32 -38
- bpy/ops/uv/__init__.pyi +602 -704
- bpy/ops/view2d/__init__.pyi +156 -184
- bpy/ops/view3d/__init__.pyi +582 -718
- bpy/ops/wm/__init__.pyi +2680 -2928
- bpy/ops/workspace/__init__.pyi +46 -60
- bpy/ops/world/__init__.pyi +12 -16
- bpy/path/__init__.pyi +179 -75
- bpy/props/__init__.pyi +261 -263
- bpy/types/__init__.pyi +17056 -21951
- bpy/utils/__init__.pyi +242 -118
- bpy/utils/previews/__init__.pyi +58 -28
- bpy/utils/units/__init__.pyi +20 -20
- bpy_extras/anim_utils/__init__.pyi +68 -28
- bpy_extras/bmesh_utils/__init__.pyi +8 -2
- bpy_extras/extensions/junction_module/__init__.pyi +5 -2
- bpy_extras/id_map_utils/__init__.pyi +3 -3
- bpy_extras/image_utils/__init__.pyi +44 -11
- bpy_extras/io_utils/__init__.pyi +113 -18
- bpy_extras/keyconfig_utils/__init__.pyi +2 -2
- bpy_extras/mesh_utils/__init__.pyi +71 -19
- bpy_extras/node_shader_utils/__init__.pyi +9 -4
- bpy_extras/node_utils/__init__.pyi +9 -2
- bpy_extras/object_utils/__init__.pyi +71 -12
- bpy_extras/view3d_utils/__init__.pyi +80 -10
- bpy_extras/wm_utils/progress_report/__init__.pyi +13 -10
- bpy_types/__init__.pyi +4197 -1333
- console_python/__init__.pyi +6 -1
- {fake_bpy_module-20240516.dist-info → fake_bpy_module-20240517.dist-info}/METADATA +1 -1
- fake_bpy_module-20240517.dist-info/RECORD +353 -0
- freestyle/chainingiterators/__init__.pyi +4 -4
- freestyle/shaders/__init__.pyi +2 -2
- freestyle/types/__init__.pyi +84 -96
- freestyle/utils/ContextFunctions/__init__.pyi +2 -2
- freestyle/utils/__init__.pyi +3 -3
- gpu/matrix/__init__.pyi +6 -8
- gpu/state/__init__.pyi +2 -2
- gpu/types/__init__.pyi +12 -12
- gpu_extras/presets/__init__.pyi +2 -5
- graphviz_export/__init__.pyi +4 -2
- idprop/types/__init__.pyi +2 -2
- imbuf/__init__.pyi +4 -4
- keyingsets_builtins/__init__.pyi +2688 -839
- mathutils/__init__.pyi +194 -238
- mathutils/bvhtree/__init__.pyi +4 -4
- mathutils/geometry/__init__.pyi +153 -155
- mathutils/kdtree/__init__.pyi +8 -12
- mathutils/noise/__init__.pyi +26 -26
- nodeitems_utils/__init__.pyi +1 -1
- rna_info/__init__.pyi +17 -15
- rna_keymap_ui/__init__.pyi +1 -1
- rna_prop_ui/__init__.pyi +16 -14
- rna_xml/__init__.pyi +12 -12
- _bpy_internal/freedesktop/py.typed +0 -0
- bl_app_override/helpers/py.typed +0 -0
- bl_console_utils/autocomplete/complete_calltip/py.typed +0 -0
- bl_console_utils/autocomplete/complete_import/py.typed +0 -0
- bl_console_utils/autocomplete/complete_namespace/py.typed +0 -0
- bl_console_utils/autocomplete/intellisense/py.typed +0 -0
- bl_console_utils/autocomplete/py.typed +0 -0
- bl_i18n_utils/bl_extract_messages/py.typed +0 -0
- bl_i18n_utils/merge_po/py.typed +0 -0
- bl_i18n_utils/settings/py.typed +0 -0
- bl_i18n_utils/utils/py.typed +0 -0
- bl_i18n_utils/utils_cli/py.typed +0 -0
- bl_i18n_utils/utils_languages_menu/py.typed +0 -0
- bl_i18n_utils/utils_rtl/py.typed +0 -0
- bl_keymap_utils/io/py.typed +0 -0
- bl_keymap_utils/keymap_from_toolbar/py.typed +0 -0
- bl_keymap_utils/keymap_hierarchy/py.typed +0 -0
- bl_keymap_utils/platform_helpers/py.typed +0 -0
- bl_keymap_utils/versioning/py.typed +0 -0
- bl_operators/add_mesh_torus/py.typed +0 -0
- bl_operators/anim/py.typed +0 -0
- bl_operators/assets/py.typed +0 -0
- bl_operators/bmesh/find_adjacent/py.typed +0 -0
- bl_operators/bmesh/py.typed +0 -0
- bl_operators/clip/py.typed +0 -0
- bl_operators/console/py.typed +0 -0
- bl_operators/constraint/py.typed +0 -0
- bl_operators/file/py.typed +0 -0
- bl_operators/freestyle/py.typed +0 -0
- bl_operators/geometry_nodes/py.typed +0 -0
- bl_operators/image/py.typed +0 -0
- bl_operators/mesh/py.typed +0 -0
- bl_operators/node/py.typed +0 -0
- bl_operators/object/py.typed +0 -0
- bl_operators/object_align/py.typed +0 -0
- bl_operators/object_quick_effects/py.typed +0 -0
- bl_operators/object_randomize_transform/py.typed +0 -0
- bl_operators/presets/py.typed +0 -0
- bl_operators/rigidbody/py.typed +0 -0
- bl_operators/screen_play_rendered_anim/py.typed +0 -0
- bl_operators/sequencer/py.typed +0 -0
- bl_operators/spreadsheet/py.typed +0 -0
- bl_operators/userpref/py.typed +0 -0
- bl_operators/uvcalc_follow_active/py.typed +0 -0
- bl_operators/uvcalc_lightmap/py.typed +0 -0
- bl_operators/uvcalc_transform/py.typed +0 -0
- bl_operators/vertexpaint_dirt/py.typed +0 -0
- bl_operators/view3d/py.typed +0 -0
- bl_operators/wm/py.typed +0 -0
- bl_operators/world/py.typed +0 -0
- bl_previews_utils/bl_previews_render/py.typed +0 -0
- bl_rna_utils/data_path/py.typed +0 -0
- bl_text_utils/external_editor/py.typed +0 -0
- bl_ui/anim/py.typed +0 -0
- bl_ui/asset_shelf/py.typed +0 -0
- bl_ui/generic_ui_list/py.typed +0 -0
- bl_ui/node_add_menu/py.typed +0 -0
- bl_ui/node_add_menu_compositor/py.typed +0 -0
- bl_ui/node_add_menu_geometry/py.typed +0 -0
- bl_ui/node_add_menu_shader/py.typed +0 -0
- bl_ui/node_add_menu_texture/py.typed +0 -0
- bl_ui/properties_animviz/py.typed +0 -0
- bl_ui/properties_collection/py.typed +0 -0
- bl_ui/properties_constraint/py.typed +0 -0
- bl_ui/properties_data_armature/py.typed +0 -0
- bl_ui/properties_data_bone/py.typed +0 -0
- bl_ui/properties_data_camera/py.typed +0 -0
- bl_ui/properties_data_curve/py.typed +0 -0
- bl_ui/properties_data_curves/py.typed +0 -0
- bl_ui/properties_data_empty/py.typed +0 -0
- bl_ui/properties_data_gpencil/py.typed +0 -0
- bl_ui/properties_data_grease_pencil/py.typed +0 -0
- bl_ui/properties_data_lattice/py.typed +0 -0
- bl_ui/properties_data_light/py.typed +0 -0
- bl_ui/properties_data_lightprobe/py.typed +0 -0
- bl_ui/properties_data_mesh/py.typed +0 -0
- bl_ui/properties_data_metaball/py.typed +0 -0
- bl_ui/properties_data_modifier/py.typed +0 -0
- bl_ui/properties_data_pointcloud/py.typed +0 -0
- bl_ui/properties_data_shaderfx/py.typed +0 -0
- bl_ui/properties_data_speaker/py.typed +0 -0
- bl_ui/properties_data_volume/py.typed +0 -0
- bl_ui/properties_freestyle/py.typed +0 -0
- bl_ui/properties_grease_pencil_common/py.typed +0 -0
- bl_ui/properties_mask_common/py.typed +0 -0
- bl_ui/properties_material/py.typed +0 -0
- bl_ui/properties_material_gpencil/py.typed +0 -0
- bl_ui/properties_object/py.typed +0 -0
- bl_ui/properties_output/py.typed +0 -0
- bl_ui/properties_paint_common/py.typed +0 -0
- bl_ui/properties_particle/py.typed +0 -0
- bl_ui/properties_physics_cloth/py.typed +0 -0
- bl_ui/properties_physics_common/py.typed +0 -0
- bl_ui/properties_physics_dynamicpaint/py.typed +0 -0
- bl_ui/properties_physics_field/py.typed +0 -0
- bl_ui/properties_physics_fluid/py.typed +0 -0
- bl_ui/properties_physics_geometry_nodes/py.typed +0 -0
- bl_ui/properties_physics_rigidbody/py.typed +0 -0
- bl_ui/properties_physics_rigidbody_constraint/py.typed +0 -0
- bl_ui/properties_physics_softbody/py.typed +0 -0
- bl_ui/properties_render/py.typed +0 -0
- bl_ui/properties_scene/py.typed +0 -0
- bl_ui/properties_texture/py.typed +0 -0
- bl_ui/properties_view_layer/py.typed +0 -0
- bl_ui/properties_workspace/py.typed +0 -0
- bl_ui/properties_world/py.typed +0 -0
- bl_ui/space_clip/py.typed +0 -0
- bl_ui/space_console/py.typed +0 -0
- bl_ui/space_dopesheet/py.typed +0 -0
- bl_ui/space_filebrowser/py.typed +0 -0
- bl_ui/space_graph/py.typed +0 -0
- bl_ui/space_image/py.typed +0 -0
- bl_ui/space_info/py.typed +0 -0
- bl_ui/space_nla/py.typed +0 -0
- bl_ui/space_node/py.typed +0 -0
- bl_ui/space_outliner/py.typed +0 -0
- bl_ui/space_properties/py.typed +0 -0
- bl_ui/space_sequencer/py.typed +0 -0
- bl_ui/space_spreadsheet/py.typed +0 -0
- bl_ui/space_statusbar/py.typed +0 -0
- bl_ui/space_text/py.typed +0 -0
- bl_ui/space_time/py.typed +0 -0
- bl_ui/space_toolsystem_common/py.typed +0 -0
- bl_ui/space_toolsystem_toolbar/py.typed +0 -0
- bl_ui/space_topbar/py.typed +0 -0
- bl_ui/space_userpref/py.typed +0 -0
- bl_ui/space_view3d/py.typed +0 -0
- bl_ui/space_view3d_toolbar/py.typed +0 -0
- bl_ui/temp_anim_layers/py.typed +0 -0
- bl_ui/utils/py.typed +0 -0
- bl_ui_utils/bug_report_url/py.typed +0 -0
- bl_ui_utils/layout/py.typed +0 -0
- bmesh/geometry/py.typed +0 -0
- bmesh/ops/py.typed +0 -0
- bmesh/types/py.typed +0 -0
- bmesh/utils/py.typed +0 -0
- bpy/app/handlers/py.typed +0 -0
- bpy/app/icons/py.typed +0 -0
- bpy/app/py.typed +0 -0
- bpy/app/timers/py.typed +0 -0
- bpy/app/translations/py.typed +0 -0
- bpy/msgbus/py.typed +0 -0
- bpy/ops/action/py.typed +0 -0
- bpy/ops/anim/py.typed +0 -0
- bpy/ops/armature/py.typed +0 -0
- bpy/ops/asset/py.typed +0 -0
- bpy/ops/bl_pkg/py.typed +0 -0
- bpy/ops/boid/py.typed +0 -0
- bpy/ops/brush/py.typed +0 -0
- bpy/ops/buttons/py.typed +0 -0
- bpy/ops/cachefile/py.typed +0 -0
- bpy/ops/camera/py.typed +0 -0
- bpy/ops/clip/py.typed +0 -0
- bpy/ops/cloth/py.typed +0 -0
- bpy/ops/collection/py.typed +0 -0
- bpy/ops/console/py.typed +0 -0
- bpy/ops/constraint/py.typed +0 -0
- bpy/ops/curve/py.typed +0 -0
- bpy/ops/curves/py.typed +0 -0
- bpy/ops/cycles/py.typed +0 -0
- bpy/ops/dpaint/py.typed +0 -0
- bpy/ops/ed/py.typed +0 -0
- bpy/ops/export_anim/py.typed +0 -0
- bpy/ops/export_scene/py.typed +0 -0
- bpy/ops/file/py.typed +0 -0
- bpy/ops/fluid/py.typed +0 -0
- bpy/ops/font/py.typed +0 -0
- bpy/ops/geometry/py.typed +0 -0
- bpy/ops/gizmogroup/py.typed +0 -0
- bpy/ops/gpencil/py.typed +0 -0
- bpy/ops/graph/py.typed +0 -0
- bpy/ops/grease_pencil/py.typed +0 -0
- bpy/ops/image/py.typed +0 -0
- bpy/ops/import_anim/py.typed +0 -0
- bpy/ops/import_curve/py.typed +0 -0
- bpy/ops/import_scene/py.typed +0 -0
- bpy/ops/info/py.typed +0 -0
- bpy/ops/lattice/py.typed +0 -0
- bpy/ops/marker/py.typed +0 -0
- bpy/ops/mask/py.typed +0 -0
- bpy/ops/material/py.typed +0 -0
- bpy/ops/mball/py.typed +0 -0
- bpy/ops/mesh/py.typed +0 -0
- bpy/ops/nla/py.typed +0 -0
- bpy/ops/node/py.typed +0 -0
- bpy/ops/object/py.typed +0 -0
- bpy/ops/outliner/py.typed +0 -0
- bpy/ops/paint/py.typed +0 -0
- bpy/ops/paintcurve/py.typed +0 -0
- bpy/ops/palette/py.typed +0 -0
- bpy/ops/particle/py.typed +0 -0
- bpy/ops/pose/py.typed +0 -0
- bpy/ops/poselib/py.typed +0 -0
- bpy/ops/preferences/py.typed +0 -0
- bpy/ops/ptcache/py.typed +0 -0
- bpy/ops/py.typed +0 -0
- bpy/ops/render/py.typed +0 -0
- bpy/ops/rigidbody/py.typed +0 -0
- bpy/ops/scene/py.typed +0 -0
- bpy/ops/screen/py.typed +0 -0
- bpy/ops/script/py.typed +0 -0
- bpy/ops/sculpt/py.typed +0 -0
- bpy/ops/sculpt_curves/py.typed +0 -0
- bpy/ops/sequencer/py.typed +0 -0
- bpy/ops/sound/py.typed +0 -0
- bpy/ops/spreadsheet/py.typed +0 -0
- bpy/ops/surface/py.typed +0 -0
- bpy/ops/text/py.typed +0 -0
- bpy/ops/text_editor/py.typed +0 -0
- bpy/ops/texture/py.typed +0 -0
- bpy/ops/transform/py.typed +0 -0
- bpy/ops/ui/py.typed +0 -0
- bpy/ops/uilist/py.typed +0 -0
- bpy/ops/uv/py.typed +0 -0
- bpy/ops/view2d/py.typed +0 -0
- bpy/ops/view3d/py.typed +0 -0
- bpy/ops/wm/py.typed +0 -0
- bpy/ops/workspace/py.typed +0 -0
- bpy/ops/world/py.typed +0 -0
- bpy/path/py.typed +0 -0
- bpy/props/py.typed +0 -0
- bpy/types/py.typed +0 -0
- bpy/utils/previews/py.typed +0 -0
- bpy/utils/py.typed +0 -0
- bpy/utils/units/py.typed +0 -0
- bpy_extras/anim_utils/py.typed +0 -0
- bpy_extras/asset_utils/py.typed +0 -0
- bpy_extras/bmesh_utils/py.typed +0 -0
- bpy_extras/extensions/junction_module/py.typed +0 -0
- bpy_extras/extensions/py.typed +0 -0
- bpy_extras/id_map_utils/py.typed +0 -0
- bpy_extras/image_utils/py.typed +0 -0
- bpy_extras/io_utils/py.typed +0 -0
- bpy_extras/keyconfig_utils/py.typed +0 -0
- bpy_extras/mesh_utils/py.typed +0 -0
- bpy_extras/node_shader_utils/py.typed +0 -0
- bpy_extras/node_utils/py.typed +0 -0
- bpy_extras/object_utils/py.typed +0 -0
- bpy_extras/view3d_utils/py.typed +0 -0
- bpy_extras/wm_utils/progress_report/py.typed +0 -0
- bpy_extras/wm_utils/py.typed +0 -0
- fake_bpy_module-20240516.dist-info/RECORD +0 -618
- freestyle/chainingiterators/py.typed +0 -0
- freestyle/functions/py.typed +0 -0
- freestyle/predicates/py.typed +0 -0
- freestyle/shaders/py.typed +0 -0
- freestyle/types/py.typed +0 -0
- freestyle/utils/ContextFunctions/py.typed +0 -0
- freestyle/utils/py.typed +0 -0
- gpu/capabilities/py.typed +0 -0
- gpu/matrix/py.typed +0 -0
- gpu/platform/py.typed +0 -0
- gpu/select/py.typed +0 -0
- gpu/shader/py.typed +0 -0
- gpu/state/py.typed +0 -0
- gpu/texture/py.typed +0 -0
- gpu/types/py.typed +0 -0
- gpu_extras/batch/py.typed +0 -0
- gpu_extras/presets/py.typed +0 -0
- idprop/types/py.typed +0 -0
- imbuf/types/py.typed +0 -0
- mathutils/bvhtree/py.typed +0 -0
- mathutils/geometry/py.typed +0 -0
- mathutils/interpolate/py.typed +0 -0
- mathutils/kdtree/py.typed +0 -0
- mathutils/noise/py.typed +0 -0
- {fake_bpy_module-20240516.dist-info → fake_bpy_module-20240517.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20240516.dist-info → fake_bpy_module-20240517.dist-info}/top_level.txt +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import typing
|
|
2
|
+
import bpy.types
|
|
2
3
|
import bpy_types
|
|
3
4
|
|
|
4
5
|
GenericType = typing.TypeVar("GenericType")
|
|
@@ -30,9 +31,10 @@ class UnifiedPaintPanel:
|
|
|
30
31
|
""" """
|
|
31
32
|
|
|
32
33
|
def get_brush_mode(self, context):
|
|
33
|
-
"""
|
|
34
|
+
"""Get the correct mode for this context. For any context where this returns None,
|
|
35
|
+
no brush options should be displayed.
|
|
34
36
|
|
|
35
|
-
|
|
37
|
+
:param context:
|
|
36
38
|
"""
|
|
37
39
|
...
|
|
38
40
|
|
|
@@ -49,29 +51,30 @@ class UnifiedPaintPanel:
|
|
|
49
51
|
context,
|
|
50
52
|
brush,
|
|
51
53
|
prop_name,
|
|
52
|
-
unified_name,
|
|
53
|
-
pressure_name,
|
|
54
|
-
icon,
|
|
55
|
-
text,
|
|
56
|
-
slider,
|
|
57
|
-
header,
|
|
54
|
+
unified_name=None,
|
|
55
|
+
pressure_name=None,
|
|
56
|
+
icon="NONE",
|
|
57
|
+
text=None,
|
|
58
|
+
slider=False,
|
|
59
|
+
header=False,
|
|
58
60
|
):
|
|
59
|
-
"""
|
|
61
|
+
"""Generalized way of adding brush options to the UI,
|
|
62
|
+
along with their pen pressure setting and global toggle, if they exist.
|
|
60
63
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
64
|
+
:param layout:
|
|
65
|
+
:param context:
|
|
66
|
+
:param brush:
|
|
67
|
+
:param prop_name:
|
|
68
|
+
:param unified_name:
|
|
69
|
+
:param pressure_name:
|
|
70
|
+
:param icon:
|
|
71
|
+
:param text:
|
|
72
|
+
:param slider:
|
|
73
|
+
:param header:
|
|
71
74
|
"""
|
|
72
75
|
...
|
|
73
76
|
|
|
74
|
-
def prop_unified_color(self, parent, context, brush, prop_name, text):
|
|
77
|
+
def prop_unified_color(self, parent, context, brush, prop_name, text=None):
|
|
75
78
|
"""
|
|
76
79
|
|
|
77
80
|
:param parent:
|
|
@@ -83,7 +86,7 @@ class UnifiedPaintPanel:
|
|
|
83
86
|
...
|
|
84
87
|
|
|
85
88
|
def prop_unified_color_picker(
|
|
86
|
-
self, parent, context, brush, prop_name, value_slider
|
|
89
|
+
self, parent, context, brush, prop_name, value_slider=True
|
|
87
90
|
):
|
|
88
91
|
"""
|
|
89
92
|
|
|
@@ -108,22 +111,35 @@ class VIEW3D_MT_tools_projectpaint_clone(bpy_types.Menu, bpy_types._GenericUI):
|
|
|
108
111
|
""" """
|
|
109
112
|
|
|
110
113
|
def append(self, draw_func):
|
|
111
|
-
"""
|
|
114
|
+
"""Append a draw function to this menu,
|
|
115
|
+
takes the same arguments as the menus draw function
|
|
112
116
|
|
|
113
|
-
|
|
117
|
+
:param draw_func:
|
|
114
118
|
"""
|
|
115
119
|
...
|
|
116
120
|
|
|
117
|
-
def as_pointer(self):
|
|
118
|
-
"""
|
|
121
|
+
def as_pointer(self) -> int:
|
|
122
|
+
"""Returns the memory address which holds a pointer to Blender's internal data
|
|
123
|
+
|
|
124
|
+
:return: int (memory address).
|
|
125
|
+
:rtype: int
|
|
126
|
+
"""
|
|
119
127
|
...
|
|
120
128
|
|
|
121
|
-
def bl_rna_get_subclass(self):
|
|
122
|
-
"""
|
|
129
|
+
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
130
|
+
"""
|
|
131
|
+
|
|
132
|
+
:return: The RNA type or default when not found.
|
|
133
|
+
:rtype: bpy.types.Struct
|
|
134
|
+
"""
|
|
123
135
|
...
|
|
124
136
|
|
|
125
|
-
def bl_rna_get_subclass_py(self):
|
|
126
|
-
"""
|
|
137
|
+
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
138
|
+
"""
|
|
139
|
+
|
|
140
|
+
:return: The class or default when not found.
|
|
141
|
+
:rtype: typing.Any
|
|
142
|
+
"""
|
|
127
143
|
...
|
|
128
144
|
|
|
129
145
|
def draw(self, context):
|
|
@@ -142,147 +158,234 @@ class VIEW3D_MT_tools_projectpaint_clone(bpy_types.Menu, bpy_types._GenericUI):
|
|
|
142
158
|
...
|
|
143
159
|
|
|
144
160
|
def draw_preset(self, _context):
|
|
145
|
-
"""
|
|
161
|
+
"""Define these on the subclass:
|
|
162
|
+
- preset_operator (string)
|
|
163
|
+
- preset_subdir (string)Optionally:
|
|
164
|
+
- preset_add_operator (string)
|
|
165
|
+
- preset_extensions (set of strings)
|
|
166
|
+
- preset_operator_defaults (dict of keyword args)
|
|
146
167
|
|
|
147
|
-
|
|
168
|
+
:param _context:
|
|
148
169
|
"""
|
|
149
170
|
...
|
|
150
171
|
|
|
151
|
-
def driver_add(self):
|
|
152
|
-
"""
|
|
172
|
+
def driver_add(self) -> bpy.types.FCurve:
|
|
173
|
+
"""Adds driver(s) to the given property
|
|
174
|
+
|
|
175
|
+
:return: The driver(s) added.
|
|
176
|
+
:rtype: bpy.types.FCurve
|
|
177
|
+
"""
|
|
153
178
|
...
|
|
154
179
|
|
|
155
|
-
def driver_remove(self):
|
|
156
|
-
"""
|
|
180
|
+
def driver_remove(self) -> bool:
|
|
181
|
+
"""Remove driver(s) from the given property
|
|
182
|
+
|
|
183
|
+
:return: Success of driver removal.
|
|
184
|
+
:rtype: bool
|
|
185
|
+
"""
|
|
157
186
|
...
|
|
158
187
|
|
|
159
188
|
def get(self):
|
|
160
|
-
"""
|
|
189
|
+
"""Returns the value of the custom property assigned to key or default
|
|
190
|
+
when not found (matches Python's dictionary function of the same name).
|
|
191
|
+
|
|
192
|
+
"""
|
|
161
193
|
...
|
|
162
194
|
|
|
163
195
|
def id_properties_clear(self):
|
|
164
|
-
"""
|
|
196
|
+
"""
|
|
197
|
+
|
|
198
|
+
:return: Remove the parent group for an RNA struct's custom IDProperties.
|
|
199
|
+
"""
|
|
165
200
|
...
|
|
166
201
|
|
|
167
202
|
def id_properties_ensure(self):
|
|
168
|
-
"""
|
|
203
|
+
"""
|
|
204
|
+
|
|
205
|
+
:return: the parent group for an RNA struct's custom IDProperties.
|
|
206
|
+
"""
|
|
169
207
|
...
|
|
170
208
|
|
|
171
209
|
def id_properties_ui(self):
|
|
172
|
-
"""
|
|
210
|
+
"""
|
|
211
|
+
|
|
212
|
+
:return: Return an object used to manage an IDProperty's UI data.
|
|
213
|
+
"""
|
|
173
214
|
...
|
|
174
215
|
|
|
175
216
|
def is_extended(self):
|
|
176
217
|
""" """
|
|
177
218
|
...
|
|
178
219
|
|
|
179
|
-
def is_property_hidden(self):
|
|
180
|
-
"""
|
|
220
|
+
def is_property_hidden(self) -> bool:
|
|
221
|
+
"""Check if a property is hidden.
|
|
222
|
+
|
|
223
|
+
:return: True when the property is hidden.
|
|
224
|
+
:rtype: bool
|
|
225
|
+
"""
|
|
181
226
|
...
|
|
182
227
|
|
|
183
|
-
def is_property_overridable_library(self):
|
|
184
|
-
"""
|
|
228
|
+
def is_property_overridable_library(self) -> bool:
|
|
229
|
+
"""Check if a property is overridable.
|
|
230
|
+
|
|
231
|
+
:return: True when the property is overridable.
|
|
232
|
+
:rtype: bool
|
|
233
|
+
"""
|
|
185
234
|
...
|
|
186
235
|
|
|
187
|
-
def is_property_readonly(self):
|
|
188
|
-
"""
|
|
236
|
+
def is_property_readonly(self) -> bool:
|
|
237
|
+
"""Check if a property is readonly.
|
|
238
|
+
|
|
239
|
+
:return: True when the property is readonly (not writable).
|
|
240
|
+
:rtype: bool
|
|
241
|
+
"""
|
|
189
242
|
...
|
|
190
243
|
|
|
191
|
-
def is_property_set(self):
|
|
192
|
-
"""
|
|
244
|
+
def is_property_set(self) -> bool:
|
|
245
|
+
"""Check if a property is set, use for testing operator properties.
|
|
246
|
+
|
|
247
|
+
:return: True when the property has been set.
|
|
248
|
+
:rtype: bool
|
|
249
|
+
"""
|
|
193
250
|
...
|
|
194
251
|
|
|
195
252
|
def items(self):
|
|
196
|
-
"""
|
|
253
|
+
"""Returns the items of this objects custom properties (matches Python's
|
|
254
|
+
dictionary function of the same name).
|
|
255
|
+
|
|
256
|
+
:return: custom property key, value pairs.
|
|
257
|
+
"""
|
|
197
258
|
...
|
|
198
259
|
|
|
199
|
-
def keyframe_delete(self):
|
|
200
|
-
"""
|
|
260
|
+
def keyframe_delete(self) -> bool:
|
|
261
|
+
"""Remove a keyframe from this properties fcurve.
|
|
262
|
+
|
|
263
|
+
:return: Success of keyframe deletion.
|
|
264
|
+
:rtype: bool
|
|
265
|
+
"""
|
|
201
266
|
...
|
|
202
267
|
|
|
203
|
-
def keyframe_insert(self):
|
|
204
|
-
"""
|
|
268
|
+
def keyframe_insert(self) -> bool:
|
|
269
|
+
"""Insert a keyframe on the property given, adding fcurves and animation data when necessary.
|
|
270
|
+
|
|
271
|
+
:return: Success of keyframe insertion.
|
|
272
|
+
:rtype: bool
|
|
273
|
+
"""
|
|
205
274
|
...
|
|
206
275
|
|
|
207
276
|
def keys(self):
|
|
208
|
-
"""
|
|
277
|
+
"""Returns the keys of this objects custom properties (matches Python's
|
|
278
|
+
dictionary function of the same name).
|
|
279
|
+
|
|
280
|
+
:return: custom property keys.
|
|
281
|
+
"""
|
|
209
282
|
...
|
|
210
283
|
|
|
211
|
-
def path_from_id(self):
|
|
212
|
-
"""
|
|
284
|
+
def path_from_id(self) -> str:
|
|
285
|
+
"""Returns the data path from the ID to this object (string).
|
|
286
|
+
|
|
287
|
+
:return: The path from `bpy.types.bpy_struct.id_data`
|
|
288
|
+
to this struct and property (when given).
|
|
289
|
+
:rtype: str
|
|
290
|
+
"""
|
|
213
291
|
...
|
|
214
292
|
|
|
215
293
|
def path_menu(
|
|
216
294
|
self,
|
|
217
|
-
searchpaths,
|
|
218
|
-
operator,
|
|
219
|
-
props_default,
|
|
220
|
-
prop_filepath,
|
|
221
|
-
filter_ext,
|
|
222
|
-
filter_path,
|
|
223
|
-
display_name,
|
|
224
|
-
add_operator,
|
|
225
|
-
add_operator_props,
|
|
295
|
+
searchpaths: list[str],
|
|
296
|
+
operator: str,
|
|
297
|
+
props_default: dict = None,
|
|
298
|
+
prop_filepath: str = "filepath",
|
|
299
|
+
filter_ext: typing.Callable = None,
|
|
300
|
+
filter_path=None,
|
|
301
|
+
display_name: typing.Callable = None,
|
|
302
|
+
add_operator=None,
|
|
303
|
+
add_operator_props=None,
|
|
226
304
|
):
|
|
227
|
-
"""
|
|
305
|
+
"""Populate a menu from a list of paths.
|
|
306
|
+
|
|
307
|
+
:param searchpaths: Paths to scan.
|
|
308
|
+
:type searchpaths: list[str]
|
|
309
|
+
:param operator: The operator id to use with each file.
|
|
310
|
+
:type operator: str
|
|
311
|
+
:param props_default: Properties to assign to each operator.
|
|
312
|
+
:type props_default: dict
|
|
313
|
+
:param prop_filepath: Optional operator filepath property (defaults to "filepath").
|
|
314
|
+
:type prop_filepath: str
|
|
315
|
+
:param filter_ext: Optional callback that takes the file extensions.
|
|
228
316
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
:param add_operator:
|
|
237
|
-
:param add_operator_props:
|
|
317
|
+
Returning false excludes the file from the list.
|
|
318
|
+
:type filter_ext: typing.Callable
|
|
319
|
+
:param filter_path:
|
|
320
|
+
:param display_name: Optional callback that takes the full path, returns the name to display.
|
|
321
|
+
:type display_name: typing.Callable
|
|
322
|
+
:param add_operator:
|
|
323
|
+
:param add_operator_props:
|
|
238
324
|
"""
|
|
239
325
|
...
|
|
240
326
|
|
|
241
327
|
def path_resolve(self):
|
|
242
|
-
""" """
|
|
328
|
+
"""Returns the property from the path, raise an exception when not found."""
|
|
243
329
|
...
|
|
244
330
|
|
|
245
331
|
def pop(self):
|
|
246
|
-
"""
|
|
332
|
+
"""Remove and return the value of the custom property assigned to key or default
|
|
333
|
+
when not found (matches Python's dictionary function of the same name).
|
|
334
|
+
|
|
335
|
+
"""
|
|
247
336
|
...
|
|
248
337
|
|
|
249
338
|
def prepend(self, draw_func):
|
|
250
|
-
"""
|
|
339
|
+
"""Prepend a draw function to this menu, takes the same arguments as
|
|
340
|
+
the menus draw function
|
|
251
341
|
|
|
252
|
-
|
|
342
|
+
:param draw_func:
|
|
253
343
|
"""
|
|
254
344
|
...
|
|
255
345
|
|
|
256
|
-
def property_overridable_library_set(self):
|
|
257
|
-
"""
|
|
346
|
+
def property_overridable_library_set(self) -> bool:
|
|
347
|
+
"""Define a property as overridable or not (only for custom properties!).
|
|
348
|
+
|
|
349
|
+
:return: True when the overridable status of the property was successfully set.
|
|
350
|
+
:rtype: bool
|
|
351
|
+
"""
|
|
258
352
|
...
|
|
259
353
|
|
|
260
354
|
def property_unset(self):
|
|
261
|
-
""" """
|
|
355
|
+
"""Unset a property, will use default value afterward."""
|
|
262
356
|
...
|
|
263
357
|
|
|
264
358
|
def remove(self, draw_func):
|
|
265
|
-
"""
|
|
359
|
+
"""Remove a draw function that has been added to this menu
|
|
266
360
|
|
|
267
361
|
:param draw_func:
|
|
268
362
|
"""
|
|
269
363
|
...
|
|
270
364
|
|
|
271
365
|
def type_recast(self):
|
|
272
|
-
"""
|
|
366
|
+
"""Return a new instance, this is needed because types
|
|
367
|
+
such as textures can be changed at runtime.
|
|
368
|
+
|
|
369
|
+
:return: a new instance of this object with the type initialized again.
|
|
370
|
+
"""
|
|
273
371
|
...
|
|
274
372
|
|
|
275
373
|
def values(self):
|
|
276
|
-
"""
|
|
374
|
+
"""Returns the values of this objects custom properties (matches Python's
|
|
375
|
+
dictionary function of the same name).
|
|
376
|
+
|
|
377
|
+
:return: custom property values.
|
|
378
|
+
"""
|
|
277
379
|
...
|
|
278
380
|
|
|
279
381
|
class BrushPanel(UnifiedPaintPanel):
|
|
280
382
|
""" """
|
|
281
383
|
|
|
282
384
|
def get_brush_mode(self, context):
|
|
283
|
-
"""
|
|
385
|
+
"""Get the correct mode for this context. For any context where this returns None,
|
|
386
|
+
no brush options should be displayed.
|
|
284
387
|
|
|
285
|
-
|
|
388
|
+
:param context:
|
|
286
389
|
"""
|
|
287
390
|
...
|
|
288
391
|
|
|
@@ -306,29 +409,30 @@ class BrushPanel(UnifiedPaintPanel):
|
|
|
306
409
|
context,
|
|
307
410
|
brush,
|
|
308
411
|
prop_name,
|
|
309
|
-
unified_name,
|
|
310
|
-
pressure_name,
|
|
311
|
-
icon,
|
|
312
|
-
text,
|
|
313
|
-
slider,
|
|
314
|
-
header,
|
|
412
|
+
unified_name=None,
|
|
413
|
+
pressure_name=None,
|
|
414
|
+
icon="NONE",
|
|
415
|
+
text=None,
|
|
416
|
+
slider=False,
|
|
417
|
+
header=False,
|
|
315
418
|
):
|
|
316
|
-
"""
|
|
419
|
+
"""Generalized way of adding brush options to the UI,
|
|
420
|
+
along with their pen pressure setting and global toggle, if they exist.
|
|
317
421
|
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
422
|
+
:param layout:
|
|
423
|
+
:param context:
|
|
424
|
+
:param brush:
|
|
425
|
+
:param prop_name:
|
|
426
|
+
:param unified_name:
|
|
427
|
+
:param pressure_name:
|
|
428
|
+
:param icon:
|
|
429
|
+
:param text:
|
|
430
|
+
:param slider:
|
|
431
|
+
:param header:
|
|
328
432
|
"""
|
|
329
433
|
...
|
|
330
434
|
|
|
331
|
-
def prop_unified_color(self, parent, context, brush, prop_name, text):
|
|
435
|
+
def prop_unified_color(self, parent, context, brush, prop_name, text=None):
|
|
332
436
|
"""
|
|
333
437
|
|
|
334
438
|
:param parent:
|
|
@@ -340,7 +444,7 @@ class BrushPanel(UnifiedPaintPanel):
|
|
|
340
444
|
...
|
|
341
445
|
|
|
342
446
|
def prop_unified_color_picker(
|
|
343
|
-
self, parent, context, brush, prop_name, value_slider
|
|
447
|
+
self, parent, context, brush, prop_name, value_slider=True
|
|
344
448
|
):
|
|
345
449
|
"""
|
|
346
450
|
|
|
@@ -366,9 +470,10 @@ class BrushSelectPanel(BrushPanel, UnifiedPaintPanel):
|
|
|
366
470
|
...
|
|
367
471
|
|
|
368
472
|
def get_brush_mode(self, context):
|
|
369
|
-
"""
|
|
473
|
+
"""Get the correct mode for this context. For any context where this returns None,
|
|
474
|
+
no brush options should be displayed.
|
|
370
475
|
|
|
371
|
-
|
|
476
|
+
:param context:
|
|
372
477
|
"""
|
|
373
478
|
...
|
|
374
479
|
|
|
@@ -392,29 +497,30 @@ class BrushSelectPanel(BrushPanel, UnifiedPaintPanel):
|
|
|
392
497
|
context,
|
|
393
498
|
brush,
|
|
394
499
|
prop_name,
|
|
395
|
-
unified_name,
|
|
396
|
-
pressure_name,
|
|
397
|
-
icon,
|
|
398
|
-
text,
|
|
399
|
-
slider,
|
|
400
|
-
header,
|
|
500
|
+
unified_name=None,
|
|
501
|
+
pressure_name=None,
|
|
502
|
+
icon="NONE",
|
|
503
|
+
text=None,
|
|
504
|
+
slider=False,
|
|
505
|
+
header=False,
|
|
401
506
|
):
|
|
402
|
-
"""
|
|
507
|
+
"""Generalized way of adding brush options to the UI,
|
|
508
|
+
along with their pen pressure setting and global toggle, if they exist.
|
|
403
509
|
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
510
|
+
:param layout:
|
|
511
|
+
:param context:
|
|
512
|
+
:param brush:
|
|
513
|
+
:param prop_name:
|
|
514
|
+
:param unified_name:
|
|
515
|
+
:param pressure_name:
|
|
516
|
+
:param icon:
|
|
517
|
+
:param text:
|
|
518
|
+
:param slider:
|
|
519
|
+
:param header:
|
|
414
520
|
"""
|
|
415
521
|
...
|
|
416
522
|
|
|
417
|
-
def prop_unified_color(self, parent, context, brush, prop_name, text):
|
|
523
|
+
def prop_unified_color(self, parent, context, brush, prop_name, text=None):
|
|
418
524
|
"""
|
|
419
525
|
|
|
420
526
|
:param parent:
|
|
@@ -426,7 +532,7 @@ class BrushSelectPanel(BrushPanel, UnifiedPaintPanel):
|
|
|
426
532
|
...
|
|
427
533
|
|
|
428
534
|
def prop_unified_color_picker(
|
|
429
|
-
self, parent, context, brush, prop_name, value_slider
|
|
535
|
+
self, parent, context, brush, prop_name, value_slider=True
|
|
430
536
|
):
|
|
431
537
|
"""
|
|
432
538
|
|
|
@@ -462,9 +568,10 @@ class ClonePanel(BrushPanel, UnifiedPaintPanel):
|
|
|
462
568
|
...
|
|
463
569
|
|
|
464
570
|
def get_brush_mode(self, context):
|
|
465
|
-
"""
|
|
571
|
+
"""Get the correct mode for this context. For any context where this returns None,
|
|
572
|
+
no brush options should be displayed.
|
|
466
573
|
|
|
467
|
-
|
|
574
|
+
:param context:
|
|
468
575
|
"""
|
|
469
576
|
...
|
|
470
577
|
|
|
@@ -488,29 +595,30 @@ class ClonePanel(BrushPanel, UnifiedPaintPanel):
|
|
|
488
595
|
context,
|
|
489
596
|
brush,
|
|
490
597
|
prop_name,
|
|
491
|
-
unified_name,
|
|
492
|
-
pressure_name,
|
|
493
|
-
icon,
|
|
494
|
-
text,
|
|
495
|
-
slider,
|
|
496
|
-
header,
|
|
598
|
+
unified_name=None,
|
|
599
|
+
pressure_name=None,
|
|
600
|
+
icon="NONE",
|
|
601
|
+
text=None,
|
|
602
|
+
slider=False,
|
|
603
|
+
header=False,
|
|
497
604
|
):
|
|
498
|
-
"""
|
|
605
|
+
"""Generalized way of adding brush options to the UI,
|
|
606
|
+
along with their pen pressure setting and global toggle, if they exist.
|
|
499
607
|
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
608
|
+
:param layout:
|
|
609
|
+
:param context:
|
|
610
|
+
:param brush:
|
|
611
|
+
:param prop_name:
|
|
612
|
+
:param unified_name:
|
|
613
|
+
:param pressure_name:
|
|
614
|
+
:param icon:
|
|
615
|
+
:param text:
|
|
616
|
+
:param slider:
|
|
617
|
+
:param header:
|
|
510
618
|
"""
|
|
511
619
|
...
|
|
512
620
|
|
|
513
|
-
def prop_unified_color(self, parent, context, brush, prop_name, text):
|
|
621
|
+
def prop_unified_color(self, parent, context, brush, prop_name, text=None):
|
|
514
622
|
"""
|
|
515
623
|
|
|
516
624
|
:param parent:
|
|
@@ -522,7 +630,7 @@ class ClonePanel(BrushPanel, UnifiedPaintPanel):
|
|
|
522
630
|
...
|
|
523
631
|
|
|
524
632
|
def prop_unified_color_picker(
|
|
525
|
-
self, parent, context, brush, prop_name, value_slider
|
|
633
|
+
self, parent, context, brush, prop_name, value_slider=True
|
|
526
634
|
):
|
|
527
635
|
"""
|
|
528
636
|
|
|
@@ -551,9 +659,10 @@ class ColorPalettePanel(BrushPanel, UnifiedPaintPanel):
|
|
|
551
659
|
...
|
|
552
660
|
|
|
553
661
|
def get_brush_mode(self, context):
|
|
554
|
-
"""
|
|
662
|
+
"""Get the correct mode for this context. For any context where this returns None,
|
|
663
|
+
no brush options should be displayed.
|
|
555
664
|
|
|
556
|
-
|
|
665
|
+
:param context:
|
|
557
666
|
"""
|
|
558
667
|
...
|
|
559
668
|
|
|
@@ -577,29 +686,30 @@ class ColorPalettePanel(BrushPanel, UnifiedPaintPanel):
|
|
|
577
686
|
context,
|
|
578
687
|
brush,
|
|
579
688
|
prop_name,
|
|
580
|
-
unified_name,
|
|
581
|
-
pressure_name,
|
|
582
|
-
icon,
|
|
583
|
-
text,
|
|
584
|
-
slider,
|
|
585
|
-
header,
|
|
689
|
+
unified_name=None,
|
|
690
|
+
pressure_name=None,
|
|
691
|
+
icon="NONE",
|
|
692
|
+
text=None,
|
|
693
|
+
slider=False,
|
|
694
|
+
header=False,
|
|
586
695
|
):
|
|
587
|
-
"""
|
|
696
|
+
"""Generalized way of adding brush options to the UI,
|
|
697
|
+
along with their pen pressure setting and global toggle, if they exist.
|
|
588
698
|
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
699
|
+
:param layout:
|
|
700
|
+
:param context:
|
|
701
|
+
:param brush:
|
|
702
|
+
:param prop_name:
|
|
703
|
+
:param unified_name:
|
|
704
|
+
:param pressure_name:
|
|
705
|
+
:param icon:
|
|
706
|
+
:param text:
|
|
707
|
+
:param slider:
|
|
708
|
+
:param header:
|
|
599
709
|
"""
|
|
600
710
|
...
|
|
601
711
|
|
|
602
|
-
def prop_unified_color(self, parent, context, brush, prop_name, text):
|
|
712
|
+
def prop_unified_color(self, parent, context, brush, prop_name, text=None):
|
|
603
713
|
"""
|
|
604
714
|
|
|
605
715
|
:param parent:
|
|
@@ -611,7 +721,7 @@ class ColorPalettePanel(BrushPanel, UnifiedPaintPanel):
|
|
|
611
721
|
...
|
|
612
722
|
|
|
613
723
|
def prop_unified_color_picker(
|
|
614
|
-
self, parent, context, brush, prop_name, value_slider
|
|
724
|
+
self, parent, context, brush, prop_name, value_slider=True
|
|
615
725
|
):
|
|
616
726
|
"""
|
|
617
727
|
|
|
@@ -647,9 +757,10 @@ class DisplayPanel(BrushPanel, UnifiedPaintPanel):
|
|
|
647
757
|
...
|
|
648
758
|
|
|
649
759
|
def get_brush_mode(self, context):
|
|
650
|
-
"""
|
|
760
|
+
"""Get the correct mode for this context. For any context where this returns None,
|
|
761
|
+
no brush options should be displayed.
|
|
651
762
|
|
|
652
|
-
|
|
763
|
+
:param context:
|
|
653
764
|
"""
|
|
654
765
|
...
|
|
655
766
|
|
|
@@ -673,29 +784,30 @@ class DisplayPanel(BrushPanel, UnifiedPaintPanel):
|
|
|
673
784
|
context,
|
|
674
785
|
brush,
|
|
675
786
|
prop_name,
|
|
676
|
-
unified_name,
|
|
677
|
-
pressure_name,
|
|
678
|
-
icon,
|
|
679
|
-
text,
|
|
680
|
-
slider,
|
|
681
|
-
header,
|
|
787
|
+
unified_name=None,
|
|
788
|
+
pressure_name=None,
|
|
789
|
+
icon="NONE",
|
|
790
|
+
text=None,
|
|
791
|
+
slider=False,
|
|
792
|
+
header=False,
|
|
682
793
|
):
|
|
683
|
-
"""
|
|
794
|
+
"""Generalized way of adding brush options to the UI,
|
|
795
|
+
along with their pen pressure setting and global toggle, if they exist.
|
|
684
796
|
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
797
|
+
:param layout:
|
|
798
|
+
:param context:
|
|
799
|
+
:param brush:
|
|
800
|
+
:param prop_name:
|
|
801
|
+
:param unified_name:
|
|
802
|
+
:param pressure_name:
|
|
803
|
+
:param icon:
|
|
804
|
+
:param text:
|
|
805
|
+
:param slider:
|
|
806
|
+
:param header:
|
|
695
807
|
"""
|
|
696
808
|
...
|
|
697
809
|
|
|
698
|
-
def prop_unified_color(self, parent, context, brush, prop_name, text):
|
|
810
|
+
def prop_unified_color(self, parent, context, brush, prop_name, text=None):
|
|
699
811
|
"""
|
|
700
812
|
|
|
701
813
|
:param parent:
|
|
@@ -707,7 +819,7 @@ class DisplayPanel(BrushPanel, UnifiedPaintPanel):
|
|
|
707
819
|
...
|
|
708
820
|
|
|
709
821
|
def prop_unified_color_picker(
|
|
710
|
-
self, parent, context, brush, prop_name, value_slider
|
|
822
|
+
self, parent, context, brush, prop_name, value_slider=True
|
|
711
823
|
):
|
|
712
824
|
"""
|
|
713
825
|
|
|
@@ -736,9 +848,10 @@ class FalloffPanel(BrushPanel, UnifiedPaintPanel):
|
|
|
736
848
|
...
|
|
737
849
|
|
|
738
850
|
def get_brush_mode(self, context):
|
|
739
|
-
"""
|
|
851
|
+
"""Get the correct mode for this context. For any context where this returns None,
|
|
852
|
+
no brush options should be displayed.
|
|
740
853
|
|
|
741
|
-
|
|
854
|
+
:param context:
|
|
742
855
|
"""
|
|
743
856
|
...
|
|
744
857
|
|
|
@@ -762,29 +875,30 @@ class FalloffPanel(BrushPanel, UnifiedPaintPanel):
|
|
|
762
875
|
context,
|
|
763
876
|
brush,
|
|
764
877
|
prop_name,
|
|
765
|
-
unified_name,
|
|
766
|
-
pressure_name,
|
|
767
|
-
icon,
|
|
768
|
-
text,
|
|
769
|
-
slider,
|
|
770
|
-
header,
|
|
878
|
+
unified_name=None,
|
|
879
|
+
pressure_name=None,
|
|
880
|
+
icon="NONE",
|
|
881
|
+
text=None,
|
|
882
|
+
slider=False,
|
|
883
|
+
header=False,
|
|
771
884
|
):
|
|
772
|
-
"""
|
|
885
|
+
"""Generalized way of adding brush options to the UI,
|
|
886
|
+
along with their pen pressure setting and global toggle, if they exist.
|
|
773
887
|
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
888
|
+
:param layout:
|
|
889
|
+
:param context:
|
|
890
|
+
:param brush:
|
|
891
|
+
:param prop_name:
|
|
892
|
+
:param unified_name:
|
|
893
|
+
:param pressure_name:
|
|
894
|
+
:param icon:
|
|
895
|
+
:param text:
|
|
896
|
+
:param slider:
|
|
897
|
+
:param header:
|
|
784
898
|
"""
|
|
785
899
|
...
|
|
786
900
|
|
|
787
|
-
def prop_unified_color(self, parent, context, brush, prop_name, text):
|
|
901
|
+
def prop_unified_color(self, parent, context, brush, prop_name, text=None):
|
|
788
902
|
"""
|
|
789
903
|
|
|
790
904
|
:param parent:
|
|
@@ -796,7 +910,7 @@ class FalloffPanel(BrushPanel, UnifiedPaintPanel):
|
|
|
796
910
|
...
|
|
797
911
|
|
|
798
912
|
def prop_unified_color_picker(
|
|
799
|
-
self, parent, context, brush, prop_name, value_slider
|
|
913
|
+
self, parent, context, brush, prop_name, value_slider=True
|
|
800
914
|
):
|
|
801
915
|
"""
|
|
802
916
|
|
|
@@ -832,9 +946,10 @@ class SmoothStrokePanel(BrushPanel, UnifiedPaintPanel):
|
|
|
832
946
|
...
|
|
833
947
|
|
|
834
948
|
def get_brush_mode(self, context):
|
|
835
|
-
"""
|
|
949
|
+
"""Get the correct mode for this context. For any context where this returns None,
|
|
950
|
+
no brush options should be displayed.
|
|
836
951
|
|
|
837
|
-
|
|
952
|
+
:param context:
|
|
838
953
|
"""
|
|
839
954
|
...
|
|
840
955
|
|
|
@@ -858,29 +973,30 @@ class SmoothStrokePanel(BrushPanel, UnifiedPaintPanel):
|
|
|
858
973
|
context,
|
|
859
974
|
brush,
|
|
860
975
|
prop_name,
|
|
861
|
-
unified_name,
|
|
862
|
-
pressure_name,
|
|
863
|
-
icon,
|
|
864
|
-
text,
|
|
865
|
-
slider,
|
|
866
|
-
header,
|
|
976
|
+
unified_name=None,
|
|
977
|
+
pressure_name=None,
|
|
978
|
+
icon="NONE",
|
|
979
|
+
text=None,
|
|
980
|
+
slider=False,
|
|
981
|
+
header=False,
|
|
867
982
|
):
|
|
868
|
-
"""
|
|
983
|
+
"""Generalized way of adding brush options to the UI,
|
|
984
|
+
along with their pen pressure setting and global toggle, if they exist.
|
|
869
985
|
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
986
|
+
:param layout:
|
|
987
|
+
:param context:
|
|
988
|
+
:param brush:
|
|
989
|
+
:param prop_name:
|
|
990
|
+
:param unified_name:
|
|
991
|
+
:param pressure_name:
|
|
992
|
+
:param icon:
|
|
993
|
+
:param text:
|
|
994
|
+
:param slider:
|
|
995
|
+
:param header:
|
|
880
996
|
"""
|
|
881
997
|
...
|
|
882
998
|
|
|
883
|
-
def prop_unified_color(self, parent, context, brush, prop_name, text):
|
|
999
|
+
def prop_unified_color(self, parent, context, brush, prop_name, text=None):
|
|
884
1000
|
"""
|
|
885
1001
|
|
|
886
1002
|
:param parent:
|
|
@@ -892,7 +1008,7 @@ class SmoothStrokePanel(BrushPanel, UnifiedPaintPanel):
|
|
|
892
1008
|
...
|
|
893
1009
|
|
|
894
1010
|
def prop_unified_color_picker(
|
|
895
|
-
self, parent, context, brush, prop_name, value_slider
|
|
1011
|
+
self, parent, context, brush, prop_name, value_slider=True
|
|
896
1012
|
):
|
|
897
1013
|
"""
|
|
898
1014
|
|
|
@@ -924,9 +1040,10 @@ class StrokePanel(BrushPanel, UnifiedPaintPanel):
|
|
|
924
1040
|
...
|
|
925
1041
|
|
|
926
1042
|
def get_brush_mode(self, context):
|
|
927
|
-
"""
|
|
1043
|
+
"""Get the correct mode for this context. For any context where this returns None,
|
|
1044
|
+
no brush options should be displayed.
|
|
928
1045
|
|
|
929
|
-
|
|
1046
|
+
:param context:
|
|
930
1047
|
"""
|
|
931
1048
|
...
|
|
932
1049
|
|
|
@@ -950,29 +1067,30 @@ class StrokePanel(BrushPanel, UnifiedPaintPanel):
|
|
|
950
1067
|
context,
|
|
951
1068
|
brush,
|
|
952
1069
|
prop_name,
|
|
953
|
-
unified_name,
|
|
954
|
-
pressure_name,
|
|
955
|
-
icon,
|
|
956
|
-
text,
|
|
957
|
-
slider,
|
|
958
|
-
header,
|
|
1070
|
+
unified_name=None,
|
|
1071
|
+
pressure_name=None,
|
|
1072
|
+
icon="NONE",
|
|
1073
|
+
text=None,
|
|
1074
|
+
slider=False,
|
|
1075
|
+
header=False,
|
|
959
1076
|
):
|
|
960
|
-
"""
|
|
1077
|
+
"""Generalized way of adding brush options to the UI,
|
|
1078
|
+
along with their pen pressure setting and global toggle, if they exist.
|
|
961
1079
|
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
1080
|
+
:param layout:
|
|
1081
|
+
:param context:
|
|
1082
|
+
:param brush:
|
|
1083
|
+
:param prop_name:
|
|
1084
|
+
:param unified_name:
|
|
1085
|
+
:param pressure_name:
|
|
1086
|
+
:param icon:
|
|
1087
|
+
:param text:
|
|
1088
|
+
:param slider:
|
|
1089
|
+
:param header:
|
|
972
1090
|
"""
|
|
973
1091
|
...
|
|
974
1092
|
|
|
975
|
-
def prop_unified_color(self, parent, context, brush, prop_name, text):
|
|
1093
|
+
def prop_unified_color(self, parent, context, brush, prop_name, text=None):
|
|
976
1094
|
"""
|
|
977
1095
|
|
|
978
1096
|
:param parent:
|
|
@@ -984,7 +1102,7 @@ class StrokePanel(BrushPanel, UnifiedPaintPanel):
|
|
|
984
1102
|
...
|
|
985
1103
|
|
|
986
1104
|
def prop_unified_color_picker(
|
|
987
|
-
self, parent, context, brush, prop_name, value_slider
|
|
1105
|
+
self, parent, context, brush, prop_name, value_slider=True
|
|
988
1106
|
):
|
|
989
1107
|
"""
|
|
990
1108
|
|
|
@@ -1013,9 +1131,10 @@ class TextureMaskPanel(BrushPanel, UnifiedPaintPanel):
|
|
|
1013
1131
|
...
|
|
1014
1132
|
|
|
1015
1133
|
def get_brush_mode(self, context):
|
|
1016
|
-
"""
|
|
1134
|
+
"""Get the correct mode for this context. For any context where this returns None,
|
|
1135
|
+
no brush options should be displayed.
|
|
1017
1136
|
|
|
1018
|
-
|
|
1137
|
+
:param context:
|
|
1019
1138
|
"""
|
|
1020
1139
|
...
|
|
1021
1140
|
|
|
@@ -1039,29 +1158,30 @@ class TextureMaskPanel(BrushPanel, UnifiedPaintPanel):
|
|
|
1039
1158
|
context,
|
|
1040
1159
|
brush,
|
|
1041
1160
|
prop_name,
|
|
1042
|
-
unified_name,
|
|
1043
|
-
pressure_name,
|
|
1044
|
-
icon,
|
|
1045
|
-
text,
|
|
1046
|
-
slider,
|
|
1047
|
-
header,
|
|
1161
|
+
unified_name=None,
|
|
1162
|
+
pressure_name=None,
|
|
1163
|
+
icon="NONE",
|
|
1164
|
+
text=None,
|
|
1165
|
+
slider=False,
|
|
1166
|
+
header=False,
|
|
1048
1167
|
):
|
|
1049
|
-
"""
|
|
1168
|
+
"""Generalized way of adding brush options to the UI,
|
|
1169
|
+
along with their pen pressure setting and global toggle, if they exist.
|
|
1050
1170
|
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1171
|
+
:param layout:
|
|
1172
|
+
:param context:
|
|
1173
|
+
:param brush:
|
|
1174
|
+
:param prop_name:
|
|
1175
|
+
:param unified_name:
|
|
1176
|
+
:param pressure_name:
|
|
1177
|
+
:param icon:
|
|
1178
|
+
:param text:
|
|
1179
|
+
:param slider:
|
|
1180
|
+
:param header:
|
|
1061
1181
|
"""
|
|
1062
1182
|
...
|
|
1063
1183
|
|
|
1064
|
-
def prop_unified_color(self, parent, context, brush, prop_name, text):
|
|
1184
|
+
def prop_unified_color(self, parent, context, brush, prop_name, text=None):
|
|
1065
1185
|
"""
|
|
1066
1186
|
|
|
1067
1187
|
:param parent:
|
|
@@ -1073,7 +1193,7 @@ class TextureMaskPanel(BrushPanel, UnifiedPaintPanel):
|
|
|
1073
1193
|
...
|
|
1074
1194
|
|
|
1075
1195
|
def prop_unified_color_picker(
|
|
1076
|
-
self, parent, context, brush, prop_name, value_slider
|
|
1196
|
+
self, parent, context, brush, prop_name, value_slider=True
|
|
1077
1197
|
):
|
|
1078
1198
|
"""
|
|
1079
1199
|
|
|
@@ -1090,38 +1210,38 @@ def brush_basic__draw_color_selector(context, layout, brush, gp_settings, props)
|
|
|
1090
1210
|
|
|
1091
1211
|
...
|
|
1092
1212
|
|
|
1093
|
-
def brush_basic_gpencil_paint_settings(layout, context, brush, compact):
|
|
1213
|
+
def brush_basic_gpencil_paint_settings(layout, context, brush, compact=False):
|
|
1094
1214
|
""" """
|
|
1095
1215
|
|
|
1096
1216
|
...
|
|
1097
1217
|
|
|
1098
|
-
def brush_basic_gpencil_sculpt_settings(layout, _context, brush, compact):
|
|
1218
|
+
def brush_basic_gpencil_sculpt_settings(layout, _context, brush, compact=False):
|
|
1099
1219
|
""" """
|
|
1100
1220
|
|
|
1101
1221
|
...
|
|
1102
1222
|
|
|
1103
|
-
def brush_basic_gpencil_vertex_settings(layout, _context, brush, compact):
|
|
1223
|
+
def brush_basic_gpencil_vertex_settings(layout, _context, brush, compact=False):
|
|
1104
1224
|
""" """
|
|
1105
1225
|
|
|
1106
1226
|
...
|
|
1107
1227
|
|
|
1108
|
-
def brush_basic_gpencil_weight_settings(layout, _context, brush, compact):
|
|
1228
|
+
def brush_basic_gpencil_weight_settings(layout, _context, brush, compact=False):
|
|
1109
1229
|
""" """
|
|
1110
1230
|
|
|
1111
1231
|
...
|
|
1112
1232
|
|
|
1113
|
-
def brush_basic_grease_pencil_paint_settings(layout, context, brush, compact):
|
|
1233
|
+
def brush_basic_grease_pencil_paint_settings(layout, context, brush, compact=False):
|
|
1114
1234
|
""" """
|
|
1115
1235
|
|
|
1116
1236
|
...
|
|
1117
1237
|
|
|
1118
|
-
def brush_basic_grease_pencil_weight_settings(layout, context, brush, compact):
|
|
1238
|
+
def brush_basic_grease_pencil_weight_settings(layout, context, brush, compact=False):
|
|
1119
1239
|
""" """
|
|
1120
1240
|
|
|
1121
1241
|
...
|
|
1122
1242
|
|
|
1123
|
-
def brush_basic_texpaint_settings(layout, context, brush, compact):
|
|
1124
|
-
""" """
|
|
1243
|
+
def brush_basic_texpaint_settings(layout, context, brush, compact=False):
|
|
1244
|
+
"""Draw Tool Settings header for Vertex Paint and 2D and 3D Texture Paint modes."""
|
|
1125
1245
|
|
|
1126
1246
|
...
|
|
1127
1247
|
|
|
@@ -1130,18 +1250,21 @@ def brush_mask_texture_settings(layout, brush):
|
|
|
1130
1250
|
|
|
1131
1251
|
...
|
|
1132
1252
|
|
|
1133
|
-
def brush_settings(layout, context, brush, popover):
|
|
1134
|
-
"""
|
|
1253
|
+
def brush_settings(layout, context, brush, popover=False):
|
|
1254
|
+
"""Draw simple brush settings for Sculpt,
|
|
1255
|
+
Texture/Vertex/Weight Paint modes, or skip certain settings for the popover
|
|
1256
|
+
|
|
1257
|
+
"""
|
|
1135
1258
|
|
|
1136
1259
|
...
|
|
1137
1260
|
|
|
1138
|
-
def brush_settings_advanced(layout, context, brush, popover):
|
|
1139
|
-
""" """
|
|
1261
|
+
def brush_settings_advanced(layout, context, brush, popover=False):
|
|
1262
|
+
"""Draw advanced brush settings for Sculpt, Texture/Vertex/Weight Paint modes."""
|
|
1140
1263
|
|
|
1141
1264
|
...
|
|
1142
1265
|
|
|
1143
|
-
def brush_shared_settings(layout, context, brush, popover):
|
|
1144
|
-
""" """
|
|
1266
|
+
def brush_shared_settings(layout, context, brush, popover=False):
|
|
1267
|
+
"""Draw simple brush settings that are shared between different paint modes."""
|
|
1145
1268
|
|
|
1146
1269
|
...
|
|
1147
1270
|
|
|
@@ -1150,7 +1273,7 @@ def brush_texture_settings(layout, brush, sculpt):
|
|
|
1150
1273
|
|
|
1151
1274
|
...
|
|
1152
1275
|
|
|
1153
|
-
def draw_color_settings(context, layout, brush, color_type):
|
|
1154
|
-
""" """
|
|
1276
|
+
def draw_color_settings(context, layout, brush, color_type=False):
|
|
1277
|
+
"""Draw color wheel and gradient settings."""
|
|
1155
1278
|
|
|
1156
1279
|
...
|