mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-06 16:00:08 +01:00
Convert demos to Godot 4 using regular expressions in a script
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
tool
|
||||
@tool
|
||||
extends EditorPlugin
|
||||
|
||||
var import_plugin
|
||||
|
||||
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user