[Bprocessor-commit] gui/src/net/sourceforge/bprocessor/gui/attrview MaterialAttribute.java,1.3,1.4
Status: Pre-Alpha
Brought to you by:
henryml
|
From: Nikolaj B. <nbr...@us...> - 2006-05-15 09:20:00
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv22573/src/net/sourceforge/bprocessor/gui/attrview Modified Files: MaterialAttribute.java Log Message: Materials can now be saved and loaded, and there is a "global" monitoring of all materials. Index: MaterialAttribute.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview/MaterialAttribute.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** MaterialAttribute.java 10 Apr 2006 11:54:39 -0000 1.3 --- MaterialAttribute.java 15 May 2006 09:19:53 -0000 1.4 *************** *** 27,30 **** --- 27,31 ---- import net.sourceforge.bprocessor.model.Attribute; import net.sourceforge.bprocessor.model.Material; + import net.sourceforge.bprocessor.model.Project; /** *************** *** 138,142 **** "Surface Color", makeAWTColor(((Material) attribute.getValue()).getColor())); ! attribute.setValue(new Material("temp", frontColor.getRGBColorComponents(null))); valueChanged(); } --- 139,145 ---- "Surface Color", makeAWTColor(((Material) attribute.getValue()).getColor())); ! Material material = new Material("temp", frontColor.getRGBColorComponents(null)); ! Project.getInstance().add(material); ! attribute.setValue(material); valueChanged(); } |