Merge branch 'blender-v4.4-release'
This commit is contained in:
@@ -157,7 +157,7 @@ void USDGenericMeshWriter::write_custom_data(const Object *obj,
|
||||
* Skip edge domain because USD doesn't have a good conversion for them. */
|
||||
if (iter.name[0] == '.' || bke::attribute_name_is_anonymous(iter.name) ||
|
||||
iter.domain == bke::AttrDomain::Edge ||
|
||||
ELEM(iter.name, "position", "material_index", "velocity", "crease_vert"))
|
||||
ELEM(iter.name, "position", "material_index", "velocity", "crease_vert", "custom_normal"))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2920,12 +2920,14 @@ static eHandlerActionFlag wm_handler_fileselect_do(bContext *C,
|
||||
}
|
||||
|
||||
/* XXX check this carefully, `CTX_wm_manager(C) == wm` is a bit hackish. */
|
||||
if (CTX_wm_manager(C) == wm && wm->op_undo_depth == 0) {
|
||||
if (handler->op->type->flag & OPTYPE_UNDO) {
|
||||
ED_undo_push_op(C, handler->op);
|
||||
}
|
||||
else if (handler->op->type->flag & OPTYPE_UNDO_GROUPED) {
|
||||
ED_undo_grouped_push_op(C, handler->op);
|
||||
if (retval & OPERATOR_FINISHED) {
|
||||
if (CTX_wm_manager(C) == wm && wm->op_undo_depth == 0) {
|
||||
if (handler->op->type->flag & OPTYPE_UNDO) {
|
||||
ED_undo_push_op(C, handler->op);
|
||||
}
|
||||
else if (handler->op->type->flag & OPTYPE_UNDO_GROUPED) {
|
||||
ED_undo_grouped_push_op(C, handler->op);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user