Revision: 31365
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=31365
Author:   moguri
Date:     2010-08-16 08:06:06 +0200 (Mon, 16 Aug 2010)

Log Message:
-----------
When a CustomUniform is added to a material, it becomes the active uniform.

Modified Paths:
--------------
    branches/soc-2010-moguri-2/source/blender/editors/render/render_shading.c

Modified: 
branches/soc-2010-moguri-2/source/blender/editors/render/render_shading.c
===================================================================
--- branches/soc-2010-moguri-2/source/blender/editors/render/render_shading.c   
2010-08-16 05:46:10 UTC (rev 31364)
+++ branches/soc-2010-moguri-2/source/blender/editors/render/render_shading.c   
2010-08-16 06:06:06 UTC (rev 31365)
@@ -1070,6 +1070,8 @@
        init_custom_uniform(cu);
 
        BLI_addtail(&ma->csi.uniforms, cu);
+
+       ma->csi.actuniform = BLI_countlist(&ma->csi.uniforms);
        
        return OPERATOR_FINISHED;
 }


_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to