You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 19:41:11 +00:00
-Changed most project settings in the engine, so they have major and minor categories.
-Changed SectionedPropertyEditor to support this -Renamed Globals singleton to GlobalConfig, makes more sense. -Changed the logic behind persisten global settings, instead of the persist checkbox, a revert button is now available
This commit is contained in:
@@ -61,7 +61,7 @@ Vector<uint8_t> EditorSceneExportPlugin::custom_export(String& p_path,const Ref<
|
||||
|
||||
uint64_t sd=0;
|
||||
String smd5;
|
||||
String gp = Globals::get_singleton()->globalize_path(p_path);
|
||||
String gp = GlobalConfig::get_singleton()->globalize_path(p_path);
|
||||
String md5=gp.md5_text();
|
||||
String tmp_path = EditorSettings::get_singleton()->get_settings_path().plus_file("tmp/");
|
||||
|
||||
|
||||
@@ -670,9 +670,9 @@ void EditorSceneImportDialog::_choose_save_file(const String& p_path) {
|
||||
|
||||
void EditorSceneImportDialog::_choose_script(const String& p_path) {
|
||||
|
||||
String p = Globals::get_singleton()->localize_path(p_path);
|
||||
String p = GlobalConfig::get_singleton()->localize_path(p_path);
|
||||
if (!p.is_resource_file())
|
||||
p=Globals::get_singleton()->get_resource_path().path_to(p_path.get_base_dir())+p_path.get_file();
|
||||
p=GlobalConfig::get_singleton()->get_resource_path().path_to(p_path.get_base_dir())+p_path.get_file();
|
||||
script_path->set_text(p);
|
||||
|
||||
}
|
||||
@@ -725,7 +725,7 @@ void EditorSceneImportDialog::_import(bool p_and_open) {
|
||||
if (texture_action->get_selected()==0)
|
||||
dst_path=save_path->get_text();//.get_base_dir();
|
||||
else
|
||||
dst_path=Globals::get_singleton()->get("import/shared_textures");
|
||||
dst_path=GlobalConfig::get_singleton()->get("import/shared_textures");
|
||||
|
||||
uint32_t flags=0;
|
||||
|
||||
@@ -1275,7 +1275,7 @@ EditorSceneImportDialog::EditorSceneImportDialog(EditorNode *p_editor, EditorSce
|
||||
set_hide_on_ok(false);
|
||||
|
||||
GLOBAL_DEF("import/shared_textures","res://");
|
||||
Globals::get_singleton()->set_custom_property_info("import/shared_textures",PropertyInfo(Variant::STRING,"import/shared_textures",PROPERTY_HINT_DIR));
|
||||
GlobalConfig::get_singleton()->set_custom_property_info("import/shared_textures",PropertyInfo(Variant::STRING,"import/shared_textures",PROPERTY_HINT_DIR));
|
||||
|
||||
import_hb->add_constant_override("separation",30);
|
||||
|
||||
@@ -2801,7 +2801,7 @@ Error EditorSceneImportPlugin::import2(Node *scene, const String& p_dest_path, c
|
||||
|
||||
String path = texture->get_path();
|
||||
String fname= path.get_file();
|
||||
String target_path = Globals::get_singleton()->localize_path(target_res_path.plus_file(fname));
|
||||
String target_path = GlobalConfig::get_singleton()->localize_path(target_res_path.plus_file(fname));
|
||||
progress.step(TTR("Import Image:")+" "+fname,3+(idx)*100/imagemap.size());
|
||||
|
||||
idx++;
|
||||
|
||||
@@ -1639,7 +1639,7 @@ Vector<uint8_t> EditorTextureImportPlugin::custom_export(const String& p_path, c
|
||||
uint8_t f4[4];
|
||||
encode_uint32(flags,&f4[0]);
|
||||
MD5Init(&ctx);
|
||||
String gp = Globals::get_singleton()->globalize_path(p_path);
|
||||
String gp = GlobalConfig::get_singleton()->globalize_path(p_path);
|
||||
CharString cs = gp.utf8();
|
||||
MD5Update(&ctx,(unsigned char*)cs.get_data(),cs.length());
|
||||
MD5Update(&ctx,f4,4);
|
||||
|
||||
Reference in New Issue
Block a user