Fix material duplication clean comparing with non-GP mats
1.8.11 - fixed: cleaning materials duplication checked against name without checking material GP typemain
parent
772af8cb3f
commit
19c43e6268
|
@ -14,6 +14,10 @@ Activate / deactivate layer opacity according to prefix
|
||||||
Activate / deactivate all masks using MA layers
|
Activate / deactivate all masks using MA layers
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
1.8.11
|
||||||
|
|
||||||
|
- fixed: cleaning materials duplication checked against name without checking material GP type
|
||||||
|
|
||||||
1.8.10
|
1.8.10
|
||||||
|
|
||||||
- fixed: node not deleted after a merge using (compo scene not referenced correctly to point node_trees)
|
- fixed: node not deleted after a merge using (compo scene not referenced correctly to point node_trees)
|
||||||
|
|
|
@ -2,7 +2,7 @@ bl_info = {
|
||||||
"name": "GP Render",
|
"name": "GP Render",
|
||||||
"description": "Organise export of gp layers through compositor output",
|
"description": "Organise export of gp layers through compositor output",
|
||||||
"author": "Samuel Bernou",
|
"author": "Samuel Bernou",
|
||||||
"version": (1, 8, 10),
|
"version": (1, 8, 11),
|
||||||
"blender": (3, 0, 0),
|
"blender": (3, 0, 0),
|
||||||
"location": "View3D",
|
"location": "View3D",
|
||||||
"warning": "",
|
"warning": "",
|
||||||
|
|
3
fn.py
3
fn.py
|
@ -1855,6 +1855,9 @@ def clean_mats_duplication(ob, skip_different_materials=True):
|
||||||
basemat = bpy.data.materials.get(match.group(1))
|
basemat = bpy.data.materials.get(match.group(1))
|
||||||
if not basemat:
|
if not basemat:
|
||||||
continue
|
continue
|
||||||
|
if not basemat.is_grease_pencil:
|
||||||
|
## Skip material with matching "stem" but not being GP material
|
||||||
|
continue
|
||||||
diff = different_gp_mat(mat, basemat)
|
diff = different_gp_mat(mat, basemat)
|
||||||
if diff:
|
if diff:
|
||||||
print(f'! {ob.name} : {diff}')
|
print(f'! {ob.name} : {diff}')
|
||||||
|
|
Loading…
Reference in New Issue