Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.1.1 #2

Merged
merged 2 commits into from
Nov 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ Material Quick Override
This add-on adds "Quick Override" buttons that localizes the material added by Library Override.


Requirements
----

* Blender >= 3.0


Installation
----

Expand Down
12 changes: 6 additions & 6 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@

bl_info = {
"name": "Material Quick Override",
"author": "Kei MURATAGAWA",
"author": "MURATAGAWA Kei",
"description": "Converts a material added by library override to a local material.",
"blender": (2, 93, 0),
"version": (0, 1, 0),
"blender": (3, 0, 0),
"version": (1, 0, 0),
"location": "Material Properties",
"warning": "",
"category": "Material",
"wiki_url": "https://github.com/muratagawa/material_quick_override/",
"doc_url": "https://github.com/muratagawa/material_quick_override/",
"tracker_url": "https://github.com/muratagawa/material_quick_override/issues",
}

Expand Down Expand Up @@ -49,14 +49,14 @@ def execute(self, context):

# Skip if not library linked material
if slot.material.library is None:
self.report({'INFO'}, "'%s' is not linked with library override. Skipped." %(name))
self.report({'INFO'}, "'%s' is not linked with library override. Skipped." % name)
continue

new_mat = slot.material.copy()
slot.link = 'OBJECT'
slot.material = new_mat

self.report({'INFO'}, "Material '%s' overwritten." %(name))
self.report({'INFO'}, "Material '%s' overwritten." % name)

return {'FINISHED'}

Expand Down