Cleanup: format
This commit is contained in:
@@ -604,7 +604,7 @@ class VIEW3D_HT_header(Header):
|
||||
else:
|
||||
if (object_mode not in {
|
||||
'SCULPT', 'SCULPT_CURVES', 'VERTEX_PAINT', 'WEIGHT_PAINT', 'TEXTURE_PAINT',
|
||||
'PAINT_GPENCIL', 'SCULPT_GPENCIL', 'WEIGHT_GPENCIL', 'VERTEX_GPENCIL',
|
||||
'PAINT_GPENCIL', 'SCULPT_GPENCIL', 'WEIGHT_GPENCIL', 'VERTEX_GPENCIL',
|
||||
}) or has_pose_mode:
|
||||
show_snap = True
|
||||
else:
|
||||
|
@@ -212,7 +212,6 @@ int DRW_object_visibility_in_active_context(const Object *ob)
|
||||
return BKE_object_visibility(ob, mode);
|
||||
}
|
||||
|
||||
|
||||
bool DRW_object_use_hide_faces(const struct Object *ob)
|
||||
{
|
||||
if (ob->type == OB_MESH) {
|
||||
|
@@ -168,7 +168,8 @@ void AbstractTreeViewItem::collapse_chevron_click_fn(struct bContext *C,
|
||||
|
||||
const wmWindow *win = CTX_wm_window(C);
|
||||
const ARegion *region = CTX_wm_region(C);
|
||||
uiViewItemHandle *hovered_item_handle = UI_region_views_find_item_at(region, win->eventstate->xy);
|
||||
uiViewItemHandle *hovered_item_handle = UI_region_views_find_item_at(region,
|
||||
win->eventstate->xy);
|
||||
|
||||
AbstractTreeViewItem *hovered_item = from_item_handle<AbstractTreeViewItem>(hovered_item_handle);
|
||||
BLI_assert(hovered_item != nullptr);
|
||||
|
@@ -2079,7 +2079,8 @@ static int object_curves_empty_hair_add_exec(bContext *C, wmOperator *op)
|
||||
Object *surface_ob = CTX_data_active_object(C);
|
||||
BLI_assert(surface_ob != nullptr);
|
||||
|
||||
Object *curves_ob = ED_object_add_type(C, OB_CURVES, nullptr, nullptr, nullptr, false, local_view_bits);
|
||||
Object *curves_ob = ED_object_add_type(
|
||||
C, OB_CURVES, nullptr, nullptr, nullptr, false, local_view_bits);
|
||||
BKE_object_apply_mat4(curves_ob, surface_ob->obmat, false, false);
|
||||
|
||||
/* Set surface object. */
|
||||
|
@@ -10,8 +10,8 @@
|
||||
#include "mtl_backend.hh"
|
||||
#include "mtl_context.hh"
|
||||
#include "mtl_framebuffer.hh"
|
||||
#include "mtl_uniform_buffer.hh"
|
||||
#include "mtl_query.hh"
|
||||
#include "mtl_uniform_buffer.hh"
|
||||
|
||||
#include "gpu_capabilities_private.hh"
|
||||
#include "gpu_platform_private.hh"
|
||||
|
Reference in New Issue
Block a user