Blender 3.0 compatibility

This commit is contained in:
stephen leger 2021-09-25 12:03:10 +02:00
parent ba969e8b53
commit b1226da66a
4 changed files with 5 additions and 11 deletions

View File

@ -31,8 +31,8 @@ bl_info = {
'author': 's-leger',
'license': 'GPL',
'deps': '',
'version': (1, 2, 84),
'blender': (2, 90, 0),
'version': (1, 2, 85),
'blender': (3, 0, 0),
'location': 'View3D > Sidebar > Create > Archipack',
'warning': '',
'doc_url': 'https://github.com/s-leger/archipack/wiki',

View File

@ -108,12 +108,6 @@ class ArchipackBoolManager(ArchipackCollectionManager):
hole.hide_render = True
hole.hide_select = True
hole.select_set(state=True)
hole.cycles_visibility.camera = False
hole.cycles_visibility.diffuse = False
hole.cycles_visibility.glossy = False
hole.cycles_visibility.shadow = False
hole.cycles_visibility.scatter = False
hole.cycles_visibility.transmission = False
def get_child_hole(self, o):
for hole in o.children:

View File

@ -83,7 +83,7 @@ class MatLib():
"""
try:
# print("MatLib.load_mat(%s) linked:%s" % (name, link))
with bpy.data.libraries.load(self.path, link, False) as (data_from, data_to):
with bpy.data.libraries.load(self.path, link=link, relative=False) as (data_from, data_to):
data_to.materials = [name]
except:
pass

View File

@ -34,8 +34,8 @@ from .archipack_gl import (
ThumbHandle, Screen, GlRect,
GlPolyline, GlPolygon, GlText, GlHandle
)
preset_paths = bpy.utils.script_paths(subdir="presets")
addons_paths = bpy.utils.script_paths(subdir="addons")
preset_paths = [os.path.join(path, "presets") for path in bpy.utils.script_paths()]
addons_paths = [os.path.join(path, "addons") for path in bpy.utils.script_paths()]
class CruxHandle(GlHandle):