[Bf-extensions-cvs] [f1d2eca0] master: q

Clemens Barth noreply at git.blender.org
Fri Jan 14 23:08:29 CET 2022


Commit: f1d2eca09bac8c390558c7f658667543056bbae0
Author: Clemens Barth
Date:   Fri Jan 14 23:08:06 2022 +0100
Branches: master
https://developer.blender.org/rBAf1d2eca09bac8c390558c7f658667543056bbae0

q

===================================================================

M	io_mesh_atomic/pdb_import.py

===================================================================

diff --git a/io_mesh_atomic/pdb_import.py b/io_mesh_atomic/pdb_import.py
index 18d9c250..87404a89 100644
--- a/io_mesh_atomic/pdb_import.py
+++ b/io_mesh_atomic/pdb_import.py
@@ -772,7 +772,6 @@ def draw_sticks_dupliverts(all_atoms,
         stick_material.use_nodes = True
         mat_P_BSDF = stick_material.node_tree.nodes['Principled BSDF']
         mat_P_BSDF.inputs['Base Color'].default_value = ELEMENTS[-1].color
-        stick_material.diffuse_color = ELEMENTS[-1].color
 
     # Sort the sticks and put them into a new list such that ...
     sticks_all_lists = []
@@ -1063,7 +1062,6 @@ def draw_sticks_skin(all_atoms,
     stick_material.use_nodes = True
     mat_P_BSDF = stick_material.node_tree.nodes['Principled BSDF']
     mat_P_BSDF.inputs['Base Color'].default_value = ELEMENTS[-1].color
-    stick_material.diffuse_color = ELEMENTS[-1].color
     new_stick_mesh.active_material = stick_material
 
     # This is for putting the radius of the sticks onto
@@ -1121,7 +1119,6 @@ def draw_sticks_normal(all_atoms,
     stick_material.use_nodes = True
     mat_P_BSDF = stick_material.node_tree.nodes['Principled BSDF']
     mat_P_BSDF.inputs['Base Color'].default_value = ELEMENTS[-1].color
-    stick_material.diffuse_color = ELEMENTS[-1].color
 
     up_axis = Vector([0.0, 0.0, 1.0])



More information about the Bf-extensions-cvs mailing list