Cleanup: format
This commit is contained in:
parent
9f283bee7e
commit
12a26b8fe3
|
@ -2702,10 +2702,9 @@ class VIEW3D_MT_object_context_menu(Menu):
|
|||
if obj.type == 'GPENCIL':
|
||||
layout.operator_menu_enum("gpencil.convert", "type", text="Convert To")
|
||||
|
||||
if (
|
||||
obj.type in {'MESH', 'CURVE', 'CURVES', 'SURFACE', 'GPENCIL', 'LATTICE', 'ARMATURE', 'META', 'FONT', 'POINTCLOUD'} or
|
||||
(obj.type == 'EMPTY' and obj.instance_collection is not None)
|
||||
):
|
||||
if (obj.type in {
|
||||
'MESH', 'CURVE', 'CURVES', 'SURFACE', 'GPENCIL', 'LATTICE', 'ARMATURE', 'META', 'FONT', 'POINTCLOUD',
|
||||
} or (obj.type == 'EMPTY' and obj.instance_collection is not None)):
|
||||
layout.operator_context = 'INVOKE_REGION_WIN'
|
||||
layout.operator_menu_enum("object.origin_set", text="Set Origin", property="type")
|
||||
layout.operator_context = 'INVOKE_DEFAULT'
|
||||
|
|
|
@ -87,7 +87,8 @@ static AssetItemTree build_catalog_tree(const bContext &C, const bNodeTree *node
|
|||
ED_assetlist_storage_fetch(&all_library_ref, &C);
|
||||
ED_assetlist_ensure_previews_job(&all_library_ref, &C);
|
||||
|
||||
asset_system::AssetLibrary *all_library = ED_assetlist_library_get_once_available(all_library_ref);
|
||||
asset_system::AssetLibrary *all_library = ED_assetlist_library_get_once_available(
|
||||
all_library_ref);
|
||||
if (!all_library) {
|
||||
return {};
|
||||
}
|
||||
|
|
|
@ -44,8 +44,8 @@
|
|||
#include "BLI_ghash.h"
|
||||
#include "BLI_listbase.h"
|
||||
#include "BLI_math_color.h"
|
||||
#include "BLI_math_vector_types.hh"
|
||||
#include "BLI_math_vector.h"
|
||||
#include "BLI_math_vector_types.hh"
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "DEG_depsgraph.h"
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
#include <pxr/usd/usdShade/materialBindingAPI.h>
|
||||
|
||||
#include "BLI_assert.h"
|
||||
#include "BLI_math_vector_types.hh"
|
||||
#include "BLI_math_vector.h"
|
||||
#include "BLI_math_vector_types.hh"
|
||||
|
||||
#include "BKE_attribute.h"
|
||||
#include "BKE_attribute.hh"
|
||||
|
|
Loading…
Reference in New Issue