Merge branch 'blender-v4.3-release'
This commit is contained in:
@@ -76,7 +76,7 @@ class OBJECT_MT_modifier_add(ModifierAddMenu, Menu):
|
||||
if geometry_nodes_supported:
|
||||
self.operator_modifier_add(layout, 'NODES')
|
||||
layout.separator()
|
||||
if ob_type in {'MESH', 'CURVE', 'FONT', 'SURFACE', 'LATTICE', 'GREASEPENCIL'}:
|
||||
if ob_type in {'MESH', 'CURVE', 'CURVES', 'FONT', 'SURFACE', 'LATTICE', 'GREASEPENCIL', 'POINTCLOUD'}:
|
||||
layout.menu("OBJECT_MT_modifier_add_edit")
|
||||
if ob_type in {'MESH', 'CURVE', 'FONT', 'SURFACE', 'VOLUME', 'GREASEPENCIL'}:
|
||||
layout.menu("OBJECT_MT_modifier_add_generate")
|
||||
@@ -104,7 +104,7 @@ class OBJECT_MT_modifier_add_edit(ModifierAddMenu, Menu):
|
||||
self.operator_modifier_add(layout, 'DATA_TRANSFER')
|
||||
if ob_type in {'MESH', 'CURVE', 'FONT', 'SURFACE', 'LATTICE'}:
|
||||
self.operator_modifier_add(layout, 'MESH_CACHE')
|
||||
if ob_type in {'MESH', 'CURVE', 'FONT', 'SURFACE'}:
|
||||
if ob_type in {'MESH', 'CURVE', 'CURVES', 'FONT', 'SURFACE', 'POINTCLOUD'}:
|
||||
self.operator_modifier_add(layout, 'MESH_SEQUENCE_CACHE')
|
||||
if ob_type == 'MESH':
|
||||
self.operator_modifier_add(layout, 'UV_PROJECT')
|
||||
|
||||
@@ -105,7 +105,8 @@ static int cachefile_open_exec(bContext *C, wmOperator *op)
|
||||
RNA_property_update(C, &pprop->ptr, pprop->prop);
|
||||
}
|
||||
|
||||
MEM_freeN(op->customdata);
|
||||
op->customdata = nullptr;
|
||||
MEM_delete(pprop);
|
||||
}
|
||||
|
||||
return OPERATOR_FINISHED;
|
||||
|
||||
Reference in New Issue
Block a user