Skip to content

Commit c0fa119

Browse files
committed
fix: light attribute versioning
1 parent 21caf5a commit c0fa119

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

NodeToPython/export/shader/exporter.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,16 +173,19 @@ def _create_light(self):
173173
regular_attrs = [
174174
"cutoff_distance",
175175
"diffuse_factor",
176-
"exposure",
177-
"normalize",
178176
"specular_factor",
179-
"temperature",
180177
"transmission_factor",
181178
"use_custom_distance",
182179
"use_shadow",
183-
"use_temperature",
184180
"volume_factor"
185181
]
182+
if bpy.app.version >= (4, 5, 0):
183+
regular_attrs += [
184+
"exposure",
185+
"normalize",
186+
"temperature",
187+
"use_temperature"
188+
]
186189

187190
enum_attrs = [
188191
]

0 commit comments

Comments
 (0)