
    aid$                     V   S \ " 5       ;   a#  SSKJr  \ V s/ s H  n \" U 5      PM     sn \SS& C/ SQrSSKr\R                  R                  R                  (       a  \R                  S5        \
" \\S9  \" 5       r\ Vs/ s H  n\U   PM
     snrC\R                  R                  R                  S 5       rS rS	 r " S
 S\R&                  R(                  5      r " S S\R&                  R,                  5      r " S S\R&                  R,                  5      r\\\4rgs  sn f s  snf )bpy    )reloadN)Lanimasset_shelfnode_add_menunode_add_menu_compositornode_add_menu_geometrynode_add_menu_shadernode_add_menu_textureproperties_animvizproperties_constraintproperties_data_armatureproperties_data_boneproperties_data_cameraproperties_data_curveproperties_data_curvesproperties_data_emptyproperties_data_grease_pencilproperties_data_lightproperties_data_latticeproperties_data_meshproperties_data_metaballproperties_data_modifierproperties_data_pointcloudproperties_data_shaderfxproperties_data_lightprobeproperties_data_speakerproperties_data_volumeproperties_mask_commonproperties_materialproperties_material_gpencilproperties_objectproperties_paint_commonproperties_grease_pencil_commonproperties_particleproperties_physics_clothproperties_physics_commonproperties_physics_dynamicpaintproperties_physics_field!properties_physics_geometry_nodesproperties_physics_rigidbody'properties_physics_rigidbody_constraintproperties_physics_fluidproperties_physics_softbodyproperties_renderproperties_outputproperties_view_layerproperties_sceneproperties_textureproperties_worldproperties_collectionproperties_stripproperties_strip_modifiergeneric_ui_listspace_toolsystem_commonspace_toolsystem_toolbar
space_clipspace_consolespace_dopesheetspace_filebrowserspace_graphspace_image
space_info	space_nla
space_nodespace_outlinerspace_propertiesspace_sequencerspace_spreadsheetspace_statusbar
space_text
space_timespace_topbarspace_userprefspace_view3dspace_view3d_sidebarspace_view3d_toolbarproperties_workspaceproperties_freestyle)namefromlistc                     SSK Jn  S Ul        g )N   )RENDER_PT_format)r0   rV   _frame_rate_args_prev)_rV   s     V/home/wildlama/Downloads/blender-5.1.2-linux-x64/5.1/scripts/startup/bl_ui/__init__.pytranslation_updaterZ   o   s    3-1*    c                     SSK Jn   [         H  nU " U5        M     [         H  nUR                   H  nU " U5        M     M      [        R                  5         SSKJnJn  SSK	J
n  S nU" SSS1S	9Ul        U" US
SS9Ul        SS/n[        R                  R                  S:X  a  UR!                  S5        U" USSSS1S1S9Ul        A[        R                  R$                  R&                  R!                  [(        5        g )Nr   )register_class)EnumPropertyStringProperty)WindowManagerc                    SS K nSS/n[        5       nUR                  SS9 H(  nUR                  U5      nUR	                  US   5        M*     UR                  [        U5       Vs/ s H  owUS4PM	     sn5        U$ s  snf )Nr   )Allrb   zAll Add-ons)Userrc   zAll Add-ons Installed by UserF)refreshcategory )addon_utilssetmodulesmodule_bl_infoaddextendsorted)_self_contextrg   itemsitems_uniquemodbl_infocats           rY   addon_filter_items$register.<locals>.addon_filter_items   s     *=

 u&&u&5C!005GWZ01 6 	|0DE0DCn0DEF Fs   &A=Filterz(Filter by add-on name, author & categoryTEXTEDIT_UPDATE)rR   descriptionoptionsCategoryzFilter add-ons by category)rp   rR   ry   )OFFICIALOfficialzOfficially supported)	COMMUNITY	Communityz"Maintained by community developersalpha)TESTINGTestingz8Newly contributed scripts (excluded from release builds)SupportzDisplay support levelr|   r~   	ENUM_FLAG)rp   rR   ry   defaultrz   )	bpy.utilsr]   classes_modules_loadedr>   register_props	bpy.propsr^   r_   	bpy.typesr`   addon_searchaddon_filterr   appversion_cycleappendaddon_supporthandlerstranslation_update_postrZ   )r]   clsrr   r^   r_   r`   ru   rp   s           rY   registerr   u   s    (s ;;C3   $$&
" "0>"#"M
 ". 0"M 	9HE ww'gh".+[)#M 	GG,,334FGr[   c                     SSK Jn   [        [        5       H:  n[        UR                  5       H  nUR
                  (       d  M  U " U5        M      M<     [        [        5       H  nUR
                  (       d  M  U " U5        M       [        R                  R                  R                  R                  [        5        g ! [         a     g f = f)Nr   )unregister_class)r   r   reversedr   r   is_registeredr   r   r   r   removerZ   
ValueError)r   rr   r   s      rY   
unregisterr      s    *(CKK(C    % ) )  S! !00778JK s   7B> >
C
Cc                   P    \ rS rSr\SS j5       r\SS j5       r\S	S j5       rSr	g)

UI_UL_list   Nc                 v   SSK nSSKnU (       a  U(       d  U=(       d    / $ Uc  S/[        U5      -  nUR                  UR	                  SU -   S-   5      UR
                  5      n[        U5       HE  u  p[        XS5      n[        U=(       a    UR                  U5      5      ULd  M9  XI==   U-  ss'   MG     U$ )a}  
Set FILTER_ITEM for items which name matches filter_name one (case-insensitive).
pattern is the filtering pattern.
propname is the name of the string property to use for filtering.
flags must be a list of integers the same length as items, or None!
return a list of flags (based on given flags if not None),
or an empty list if no flags were given and no filtering has been done.
r   N*)
fnmatchrelencompile	translate
IGNORECASE	enumerategetattrboolmatch)patternbitflagrp   propnameflagsreverser   r   pattern_regexiitemrR   s               rY   filter_items_by_nameUI_UL_list.filter_items_by_name   s     	e;B=C#e*$E 

7#4#4S7]S5H#I2==Y 'GA440DD6]0067wFG#	 (
 r[   c                 v    U R                  XS9  S/[        U 5      -  n[        U 5       H  u  ntpVXCU'   M     U$ )a  
Common sorting utility. Returns a neworder list mapping org_idx -> new_idx.
sort_data must be an (unordered) list of tuples [(org_idx, ...), (org_idx, ...), ...].
key must be the same kind of callable you would use for sorted() builtin function.
reverse will reverse the sorting!
)keyr   N)sortr   r   )	sort_datar   r   newordernewidxorgidxrX   s          rY   sort_items_helperUI_UL_list.sort_items_helper   sE     	306C	N*$-i$8 FLV%V %9r[   c           
          [        U5       VVs/ s H  u  p4U[        XBS5      4PM     nnnU R                  US 5      $ s  snnf )z
Re-order items using their names (case-insensitive).
propname is the name of the string property to use for sorting.
return a list mapping org_idx -> new_idx,
or an empty list if no sorting has been done.
rf   c                 (    U S   R                  5       $ )NrU   )lower)es    rY   <lambda>/UI_UL_list.sort_items_by_name.<locals>.<lambda>  s    adjjlr[   )r   r   r   )r   rp   r   idxit_sorts         rY   sort_items_by_nameUI_UL_list.sort_items_by_name   sI     BK5AQRAQgc#wrR01AQR$$U,BCC Ss   ? )rR   NF)F)rR   )
__name__
__module____qualname____firstlineno__staticmethodr   r   classmethodr   __static_attributes__r   r[   rY   r   r      s>     8   D Dr[   r   c                   &    \ rS rSrSrSrS rS rSrg)UI_MT_list_item_context_menui  z
UI List item context menu definition. Scripts can append/prepend this to
add own operators to the context menu. They must check context though, so
their items only draw in a valid context and for the correct UI list.
	List Itemc                     g )Nr   selfro   s     rY   draw!UI_MT_list_item_context_menu.draw  s     	r[   r   N	r   r   r   r   __doc__bl_label	bl_idnamer   r   r   r[   rY   r   r     s     H.Ir[   r   c                   &    \ rS rSrSrSrS rS rSrg)UI_MT_button_context_menui  z
UI button context menu definition. Scripts can append/prepend this to
add own operators to the context menu. They must check context though, so
their items only draw in a valid context and for the correct buttons.
r   c                 z    [        [        R                  S5      (       a  U R                  R	                  S5        g g )NWM_MT_button_context)hasattrr   typeslayoutmenu_contentsr   s     rY   r   UI_MT_button_context_menu.draw   s.     399455KK%%&<= 6r[   r   Nr   r   r[   rY   r   r     s     H+I>r[   r   )locals	importlibr   r   _modulesr   r   build_options	freestyler   
__import__r   globals
_namespacer   
persistentrZ   r   r   r   UIListr   Menur   r   r   )valrR   s   00rY   <module>r      s    	FH 1@A#&+AOATl 77""OO*+ 
8 ,Y
089:d#9 2 2
@HJ&6D!! 6Dr399>>  >		 >$  { B@ :s   D!?D&