We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb9c5ee commit 0d63f06Copy full SHA for 0d63f06
properties/light.py
@@ -70,13 +70,13 @@ def init():
70
71
class LuxCoreLightProps(bpy.types.PropertyGroup):
72
def update_image(self, context):
73
- if context.lamp:
+ if getattr(context, "lamp", None):
74
# For spot lamp (toggle projection mode)
75
- if context.lamp.type == "AREA":
+ if context.lamp.type == "SPOT":
76
context.lamp.use_square = self.image is not None
77
78
def update_is_laser(self, context):
79
80
# For area lamp (laser can't be rectangular)
81
if self.is_laser:
82
context.lamp.shape = "SQUARE"
0 commit comments