|
@@ -557,7 +557,14 @@ var INSPECTOR;
|
|
/** Returns the list of properties to be displayed for this adapter */
|
|
/** Returns the list of properties to be displayed for this adapter */
|
|
MaterialAdapter.prototype.getProperties = function () {
|
|
MaterialAdapter.prototype.getProperties = function () {
|
|
var propertiesLines = [];
|
|
var propertiesLines = [];
|
|
- var propToDisplay = INSPECTOR.PROPERTIES[this.type()].properties;
|
|
|
|
|
|
+ var propToDisplay = [];
|
|
|
|
+ // The if is there to work with the min version of babylon
|
|
|
|
+ if (this._obj instanceof BABYLON.StandardMaterial) {
|
|
|
|
+ propToDisplay = INSPECTOR.PROPERTIES['StandardMaterial'].properties;
|
|
|
|
+ }
|
|
|
|
+ else if (this._obj instanceof BABYLON.PBRMaterial) {
|
|
|
|
+ propToDisplay = INSPECTOR.PROPERTIES['PBRMaterial'].properties;
|
|
|
|
+ }
|
|
for (var _i = 0, propToDisplay_1 = propToDisplay; _i < propToDisplay_1.length; _i++) {
|
|
for (var _i = 0, propToDisplay_1 = propToDisplay; _i < propToDisplay_1.length; _i++) {
|
|
var dirty = propToDisplay_1[_i];
|
|
var dirty = propToDisplay_1[_i];
|
|
var infos = new INSPECTOR.Property(dirty, this._obj);
|
|
var infos = new INSPECTOR.Property(dirty, this._obj);
|