Browse Source

comment and change default renderProps

ncannasse 6 years ago
parent
commit
2e108b7fbe
2 changed files with 7 additions and 4 deletions
  1. 5 2
      bin/defaultProps.json
  2. 2 2
      hide/view/Model.hx

+ 5 - 2
bin/defaultProps.json

@@ -8,6 +8,9 @@
 	// custom renderers in the form of { "Name" : "MaterialSetupClassName" }
 	"renderers" : {},
 
+	// set default renderer setup
+	"scene.renderProps" : null,
+
 	// model names that are hidden when open in viewer
 	"scene.autoHide" : [],
 	// background color for 2D/3D viewer
@@ -96,8 +99,8 @@
 	"fx.shaders": [
 		"h3d.shader.AnimatedTexture",
 		"h3d.shader.ColorAdd"],
-		
-	// DomKit css files list	
+
+	// DomKit css files list
 	"domkit.css" : [],
 
 	// reserved for internal ide usage

+ 2 - 2
hide/view/Model.hx

@@ -97,7 +97,7 @@ class Model extends FileView {
 		eventList = element.find(".event-editor");
 
 		if( rootPath == null )
-			rootPath = config.get("model.renderProps");
+			rootPath = config.get("scene.renderProps");
 
 		if( rootPath != null )
 			root = ide.loadPrefab(rootPath, hxd.prefab.Library);
@@ -309,7 +309,7 @@ class Model extends FileView {
 		new h3d.scene.Object(scene.s3d).addChild(obj);
 
 		var autoHide : Array<String> = config.get("scene.autoHide");
-		
+
 		function hidePropsRec( obj : h3d.scene.Object ) {
 			for(n in autoHide)
 				if(obj.name != null && obj.name.indexOf(n) == 0)