Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIyad Ahmed <iyadahmed2001>2021-08-31 11:12:52 +0300
committerBastien Montagne <bastien@blender.org>2021-08-31 11:14:57 +0300
commit36671a4e21b2e2ad7fd381a0529cde2a63505097 (patch)
tree05058a62299e542801db698ca5556da57d82721f
parent36edc11a436d73e3e503396ffe1c14136e37db8d (diff)
Fix: Material Library VX add-on cannot apply library materials to selected object
Fix https://developer.blender.org/T90483, https://developer.blender.org/T89680 Reviewed By: mont29, dfelinto, campbellbarton Maniphest Tasks: T89740, T90483, T89680 Differential Revision: https://developer.blender.org/D12214
-rw-r--r--materials_library_vx/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/materials_library_vx/__init__.py b/materials_library_vx/__init__.py
index 8df8e2b9..cc469d84 100644
--- a/materials_library_vx/__init__.py
+++ b/materials_library_vx/__init__.py
@@ -489,7 +489,7 @@ if mat:
return "WARNING", "Select a material"
def get_material(self, name, link=False):
- with bpy.data.libraries.load(self.current_library.path, link, False) as (data_from, data_to):
+ with bpy.data.libraries.load(self.current_library.path, link=link, relative=False) as (data_from, data_to):
data_to.materials = [name]
if link:
print(name + " linked.")
@@ -523,7 +523,7 @@ if mat:
return "INFO", "Please select an object"
if dummy == context.object and not preview:
- if (len(objects)==1 and dummy.select):
+ if (len(objects)==1 and dummy.select_get()):
return "ERROR", "Apply is disabled for the Material Preview Object"
try:
last = context.scene.objects[self.last_selected]