diff options
author | Thomas Dinges <blender@dingto.org> | 2021-11-29 16:06:54 +0300 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2021-11-29 16:06:54 +0300 |
commit | 64537a0df535cdceeea003deadcd5bb1a5242573 (patch) | |
tree | 4367fb279e6f0645a852af06fbdd8c692573dcc9 | |
parent | 41844e5cfb9a4e695c7992a4c3ab95d9cc62da50 (diff) |
Fix Amaranth and FBX cycles visibility settings.
These were moved to the object level in rBca64bd0aacda.
-rw-r--r-- | amaranth/render/meshlight_add.py | 4 | ||||
-rw-r--r-- | io_scene_fbx/import_fbx.py | 2 |
2 files changed, 3 insertions, 3 deletions
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() |