Nicolas Cannasse 4 роки тому
батько
коміт
279c98bc4d
2 змінених файлів з 2 додано та 2 видалено
  1. 0 1
      hide/comp/ScriptEditor.hx
  2. 2 1
      hrt/prefab/rfx/Configurator.hx

+ 0 - 1
hide/comp/ScriptEditor.hx

@@ -318,7 +318,6 @@ class ScriptEditor extends CodeEditor {
 				}
 				}
 			});
 			});
 		}
 		}
-		if( root == null ) root = parent;
 		super(script, lang, parent,root);
 		super(script, lang, parent,root);
 		if( checker == null ) {
 		if( checker == null ) {
 			checker = new ScriptChecker(new hide.Config(),"");
 			checker = new ScriptChecker(new hide.Config(),"");

+ 2 - 1
hrt/prefab/rfx/Configurator.hx

@@ -228,7 +228,8 @@ class Configurator extends RendererFX {
 			});
 			});
 		}
 		}
 
 
-		var editor = new hide.comp.ScriptEditor(this.script, props.find("#script"));
+		var selt = props.find("#script");
+		var editor = new hide.comp.ScriptEditor(this.script, selt, selt);
 		editor.onSave = function() {
 		editor.onSave = function() {
 			script = editor.code;
 			script = editor.code;
 			parsedExpr = null;
 			parsedExpr = null;