From 486842239c71e7964f38a09aacda4970f2a82e1a Mon Sep 17 00:00:00 2001 From: Nivesh Rajbhandari Date: Tue, 7 Feb 2012 10:58:14 -0800 Subject: Updated tools and PI to get/set materials by binding to appModel's materials property. This requires us to add FlatMaterial to the list of materials in the MaterialsLibrary. Signed-off-by: Nivesh Rajbhandari --- js/data/pi/pi-data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/data/pi') diff --git a/js/data/pi/pi-data.js b/js/data/pi/pi-data.js index 901ca37f..de192b57 100644 --- a/js/data/pi/pi-data.js +++ b/js/data/pi/pi-data.js @@ -544,7 +544,7 @@ exports.PiData = Montage.create( Montage, { id: "strokeMaterial", prop: "strokeMaterial", label: "Stroke", - labelFunction: function(item) { return item.getName(); }, + labelField: "_name", items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" }, enabled: { boundObject: "this.controls", boundProperty: "useWebGl" }, divider : true -- cgit v1.2.3