Convert demos to Godot 4 using regular expressions in a script

This commit is contained in:
Aaron Franke
2022-03-26 05:00:50 -05:00
parent 410d783126
commit bbe50fc9da
1095 changed files with 13628 additions and 13557 deletions

View File

@@ -1,4 +1,4 @@
tool
@tool
extends EditorImportPlugin
enum Presets { PRESET_DEFAULT }
@@ -62,7 +62,7 @@ func import(source_file, save_path, options, r_platform_variants, r_gen_files):
return ERR_PARSE_ERROR
var color = Color8(int(channels[0]), int(channels[1]), int(channels[2]))
var material = SpatialMaterial.new()
var material = StandardMaterial3D.new()
if options.use_red_anyway:
color = Color8(255, 0, 0)

View File

@@ -1,4 +1,4 @@
tool
@tool
extends EditorPlugin
var import_plugin

View File

@@ -2,12 +2,12 @@
importer="demos.sillymaterial"
type="Material"
path="res://.import/test.mtxt-32ce4469df24b9f725d1e3476ff3b332.res"
path="res://.godot/imported/test.mtxt-32ce4469df24b9f725d1e3476ff3b332.res"
[deps]
source_file="res://addons/material_import_plugin/test.mtxt"
dest_files=[ "res://.import/test.mtxt-32ce4469df24b9f725d1e3476ff3b332.res" ]
dest_files=["res://.godot/imported/test.mtxt-32ce4469df24b9f725d1e3476ff3b332.res"]
[params]