Merge branch 'blender-v4.0-release'
This commit is contained in:
@@ -1074,6 +1074,8 @@ def km_node_generic(_params):
|
||||
|
||||
items.extend([
|
||||
op_panel("TOPBAR_PT_name", {"type": 'RET', "value": 'PRESS'}, [("keep_open", False)]),
|
||||
("wm.search_single_menu", {"type": 'TAB', "value": 'PRESS'},
|
||||
{"properties": [("menu_idname", 'NODE_MT_add')]}),
|
||||
("wm.context_toggle", {"type": 'LEFT_BRACKET', "value": 'PRESS', "ctrl": True},
|
||||
{"properties": [("data_path", 'space_data.show_region_toolbar')]}),
|
||||
("wm.context_toggle", {"type": 'RIGHT_BRACKET', "value": 'PRESS', "ctrl": True},
|
||||
|
||||
@@ -194,10 +194,10 @@ static StripDrawContext strip_draw_context_get(TimelineDrawContext *ctx, Sequenc
|
||||
strip_ctx.content_start = SEQ_time_left_handle_frame_get(scene, seq);
|
||||
strip_ctx.content_end = SEQ_time_right_handle_frame_get(scene, seq);
|
||||
if (SEQ_time_has_left_still_frames(scene, seq)) {
|
||||
SEQ_time_start_frame_get(seq);
|
||||
strip_ctx.content_start = SEQ_time_start_frame_get(seq);
|
||||
}
|
||||
if (SEQ_time_has_right_still_frames(scene, seq)) {
|
||||
SEQ_time_content_end_frame_get(scene, seq);
|
||||
strip_ctx.content_end = SEQ_time_content_end_frame_get(scene, seq);
|
||||
}
|
||||
/* Limit body to strip bounds. Meta strip can end up with content outside of strip range. */
|
||||
strip_ctx.content_start = min_ff(strip_ctx.content_start,
|
||||
|
||||
@@ -2320,21 +2320,20 @@ static void rna_EditMesh_update(bContext *C, PointerRNA * /*ptr*/)
|
||||
{
|
||||
const Scene *scene = CTX_data_scene(C);
|
||||
ViewLayer *view_layer = CTX_data_view_layer(C);
|
||||
Mesh *me = nullptr;
|
||||
|
||||
BKE_view_layer_synced_ensure(scene, view_layer);
|
||||
Object *object = BKE_view_layer_active_object_get(view_layer);
|
||||
if (object) {
|
||||
me = BKE_mesh_from_object(object);
|
||||
if (me && me->edit_mesh == nullptr) {
|
||||
me = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
if (me) {
|
||||
uint objects_len = 0;
|
||||
Object **objects = BKE_view_layer_array_from_objects_in_edit_mode_unique_data(
|
||||
scene, view_layer, CTX_wm_view3d(C), &objects_len);
|
||||
for (uint ob_index = 0; ob_index < objects_len; ob_index++) {
|
||||
Object *obedit = objects[ob_index];
|
||||
Mesh *me = BKE_mesh_from_object(obedit);
|
||||
|
||||
DEG_id_tag_update(&me->id, ID_RECALC_GEOMETRY);
|
||||
WM_main_add_notifier(NC_GEOM | ND_DATA, me);
|
||||
}
|
||||
|
||||
MEM_freeN(objects);
|
||||
}
|
||||
|
||||
static char *rna_MeshStatVis_path(const PointerRNA * /*ptr*/)
|
||||
|
||||
Reference in New Issue
Block a user