Add Lattice Magic
to Addons
#48
@ -189,6 +189,8 @@ class CAMLAT_OT_Generate(bpy.types.Operator):
|
|||||||
camera = active_slot.camera
|
camera = active_slot.camera
|
||||||
resolution = active_slot.resolution
|
resolution = active_slot.resolution
|
||||||
|
|
||||||
|
bpy.ops.object.mode_set(mode='OBJECT')
|
||||||
|
|
||||||
# Create a lattice object.
|
# Create a lattice object.
|
||||||
lattice_name = "Lattice_" + collection.name
|
lattice_name = "Lattice_" + collection.name
|
||||||
lattice = bpy.data.lattices.new(lattice_name)
|
lattice = bpy.data.lattices.new(lattice_name)
|
||||||
|
Loading…
Reference in New Issue
Block a user