mistake in last commit
authorCampbell Barton <ideasman42@gmail.com>
Tue, 6 Oct 2009 20:00:23 +0000 (20:00 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 6 Oct 2009 20:00:23 +0000 (20:00 +0000)
release/scripts/ui/buttons_material.py

index dee927415e6b8d5a18d4744e85f3aa36b083b958..e91e324f49deb0c080a4cfb2ff60ff686ff73f92 100644 (file)
@@ -8,6 +8,8 @@ def active_node_mat(mat):
                mat_node = mat.active_node_material
                if mat_node:
                        return mat_node
+               else:
+                       return mat
 
        return None