[Bf-extensions-cvs] [64537a0d] blender-v3.0-release: Fix Amaranth and FBX cycles visibility settings.
Thomas Dinges
noreply at git.blender.org
Mon Nov 29 14:08:49 CET 2021
Commit: 64537a0df535cdceeea003deadcd5bb1a5242573
Author: Thomas Dinges
Date: Mon Nov 29 14:06:54 2021 +0100
Branches: blender-v3.0-release
https://developer.blender.org/rBA64537a0df535cdceeea003deadcd5bb1a5242573
Fix Amaranth and FBX cycles visibility settings.
These were moved to the object level in rBca64bd0aacda.
===================================================================
M amaranth/render/meshlight_add.py
M io_scene_fbx/import_fbx.py
===================================================================
diff --git a/amaranth/render/meshlight_add.py b/amaranth/render/meshlight_add.py
index c1ca94a0..0b78b52b 100644
--- a/amaranth/render/meshlight_add.py
+++ b/amaranth/render/meshlight_add.py
@@ -168,8 +168,8 @@ class AMTH_OBJECT_OT_meshlight_add(bpy.types.Operator):
sockets.show_expanded = True
material.cycles.sample_as_light = True
- meshlight.cycles_visibility.shadow = False
- meshlight.cycles_visibility.camera = self.visible
+ meshlight.visible_shadow = False
+ meshlight.visible_camera = self.visible
return {'FINISHED'}
diff --git a/io_scene_fbx/import_fbx.py b/io_scene_fbx/import_fbx.py
index ee5de9c3..7a118730 100644
--- a/io_scene_fbx/import_fbx.py
+++ b/io_scene_fbx/import_fbx.py
@@ -3219,7 +3219,7 @@ def load(operator, context, filepath="",
break
for obj in (obj for obj in bpy.data.objects if obj.data == mesh):
- obj.cycles_visibility.shadow = False
+ obj.visible_shadow = False
_(); del _
perfmon.level_down()
More information about the Bf-extensions-cvs
mailing list