Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-07-06 20:59:17 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-07-06 20:59:17 +0300
commit6aa8e130eff59059886e203ff95221609f63b222 (patch)
treefe478c4920c5b2f602349eb2c216d2b653b5176b /archipack
parent7216192171a35c56523f9abcb279eb8a0a33577b (diff)
Update for renaming lamp to light.
Diffstat (limited to 'archipack')
-rw-r--r--archipack/archipack_floor.py2
-rw-r--r--archipack/archipack_roof.py2
-rw-r--r--archipack/archipack_thumbs.py6
-rw-r--r--archipack/archipack_window.py12
-rw-r--r--archipack/bmesh_utils.py4
5 files changed, 13 insertions, 13 deletions
diff --git a/archipack/archipack_floor.py b/archipack/archipack_floor.py
index 8664b637..a367470e 100644
--- a/archipack/archipack_floor.py
+++ b/archipack/archipack_floor.py
@@ -337,7 +337,7 @@ class FloorGenerator(CutAblePolygon, CutAbleGenerator):
segments=1, # d.bevel_res
profile=0.5,
vertex_only=False,
- clamp_overlap=False,
+ clight_overlap=False,
material=-1)
bm.to_mesh(o.data)
diff --git a/archipack/archipack_roof.py b/archipack/archipack_roof.py
index aba6f12e..d848d170 100644
--- a/archipack/archipack_roof.py
+++ b/archipack/archipack_roof.py
@@ -1868,7 +1868,7 @@ class RoofGenerator(CutAbleGenerator):
segments=d.tile_bevel_segs,
profile=0.5,
vertex_only=False,
- clamp_overlap=True,
+ clight_overlap=True,
material=-1)
if d.tile_solidify:
diff --git a/archipack/archipack_thumbs.py b/archipack/archipack_thumbs.py
index 8f652ab2..bfc9d55e 100644
--- a/archipack/archipack_thumbs.py
+++ b/archipack/archipack_thumbs.py
@@ -111,7 +111,7 @@ def generateThumb(context, cls, preset):
p.data.materials.append(m)
# add 3 lights
- bpy.ops.object.lamp_add(
+ bpy.ops.object.light_add(
type='POINT',
radius=1,
view_align=False,
@@ -123,7 +123,7 @@ def generateThumb(context, cls, preset):
emit = nodes["Emission"]
emit.inputs[1].default_value = 2000.0
- bpy.ops.object.lamp_add(
+ bpy.ops.object.light_add(
type='POINT',
radius=1,
view_align=False,
@@ -137,7 +137,7 @@ def generateThumb(context, cls, preset):
falloff.inputs[0].default_value = 5
tree.links.new(falloff.outputs[2], emit.inputs[1])
- bpy.ops.object.lamp_add(
+ bpy.ops.object.light_add(
type='POINT',
radius=1,
view_align=False,
diff --git a/archipack/archipack_window.py b/archipack/archipack_window.py
index 3524fbbf..167a27fc 100644
--- a/archipack/archipack_window.py
+++ b/archipack/archipack_window.py
@@ -993,7 +993,7 @@ class archipack_window(ArchipackObject, Manipulable, PropertyGroup):
def find_portal(self, o):
for child in o.children:
- if child.type == 'LAMP':
+ if child.type == 'LIGHT':
return child
return None
@@ -1002,7 +1002,7 @@ class archipack_window(ArchipackObject, Manipulable, PropertyGroup):
lamp = self.find_portal(o)
if self.portal:
if lamp is None:
- bpy.ops.object.lamp_add(type='AREA')
+ bpy.ops.object.light_add(type='AREA')
lamp = context.active_object
lamp.name = "Portal"
lamp.parent = o
@@ -1025,7 +1025,7 @@ class archipack_window(ArchipackObject, Manipulable, PropertyGroup):
d = lamp.data
context.scene.objects.unlink(lamp)
bpy.data.objects.remove(lamp)
- bpy.data.lamps.remove(d)
+ bpy.data.lights.remove(d)
context.scene.objects.active = o
@@ -1658,7 +1658,7 @@ class ARCHIPACK_PT_window(Panel):
box.prop(prop, 'hole_inside_mat')
box.prop(prop, 'hole_outside_mat')
- layout.prop(prop, 'portal', icon="LAMP_AREA")
+ layout.prop(prop, 'portal', icon="LIGHT_AREA")
class ARCHIPACK_PT_window_panel(Panel):
@@ -1751,11 +1751,11 @@ class ARCHIPACK_OT_window(ArchipackCreateTool, Operator):
if archipack_window.filter(o):
bpy.ops.archipack.disable_manipulate()
for child in o.children:
- if child.type == 'LAMP':
+ if child.type == 'LIGHT':
d = child.data
context.scene.objects.unlink(child)
bpy.data.objects.remove(child)
- bpy.data.lamps.remove(d)
+ bpy.data.lights.remove(d)
elif 'archipack_hole' in child:
context.scene.objects.unlink(child)
bpy.data.objects.remove(child, do_unlink=True)
diff --git a/archipack/bmesh_utils.py b/archipack/bmesh_utils.py
index 3f402d1d..1157d9a3 100644
--- a/archipack/bmesh_utils.py
+++ b/archipack/bmesh_utils.py
@@ -216,7 +216,7 @@ class BmeshEdit():
segments=1,
profile=0.5,
vertex_only=False,
- clamp_overlap=True,
+ clight_overlap=True,
material=-1,
use_selection=True):
"""
@@ -245,7 +245,7 @@ class BmeshEdit():
segments=segments,
profile=profile,
vertex_only=vertex_only,
- clamp_overlap=clamp_overlap,
+ clight_overlap=clight_overlap,
material=material)
bm.to_mesh(o.data)