[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12720] trunk/blender/source/blender/src/ buttons_editing.c: Bug in new option to assign materials right away to a face; it

Ton Roosendaal ton at blender.org
Thu Nov 29 14:57:42 CET 2007


Revision: 12720
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12720
Author:   ton
Date:     2007-11-29 14:57:41 +0100 (Thu, 29 Nov 2007)

Log Message:
-----------
Bug in new option to assign materials right away to a face; it
didn't make a correct new slot in a Mesh (ADD NEW did, but not browsing
a material that didn't exisit in one of slots yet)

Modified Paths:
--------------
    trunk/blender/source/blender/src/buttons_editing.c

Modified: trunk/blender/source/blender/src/buttons_editing.c
===================================================================
--- trunk/blender/source/blender/src/buttons_editing.c	2007-11-29 13:34:38 UTC (rev 12719)
+++ trunk/blender/source/blender/src/buttons_editing.c	2007-11-29 13:57:41 UTC (rev 12720)
@@ -483,7 +483,7 @@
 		if(ma) {
 			ob->actcol= find_material_index(ob, ma);
 			if(ob->actcol==0) {
-				assign_material(ob, ma, ob->totcol);
+				assign_material(ob, ma, ob->totcol+1);
 				ob->actcol= ob->totcol;
 			}
 		}





More information about the Bf-blender-cvs mailing list