mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
Don't attempt to convert .flt files without flt2egg
This commit is contained in:
parent
1c28973cb4
commit
ee7dfacecc
@ -4053,15 +4053,19 @@ if (RUNTIME):
|
|||||||
# Generate the models directory and samples directory
|
# Generate the models directory and samples directory
|
||||||
#
|
#
|
||||||
|
|
||||||
for model in GetDirectoryContents("dmodels/src/misc", ["*.egg", "*.flt"]):
|
model_extensions = ["*.egg"]
|
||||||
|
if (PkgSkip("PANDATOOL")==0):
|
||||||
|
model_extensions.append("*.flt")
|
||||||
|
|
||||||
|
for model in GetDirectoryContents("dmodels/src/misc", model_extensions):
|
||||||
eggpz = model[:-4] + ".egg.pz"
|
eggpz = model[:-4] + ".egg.pz"
|
||||||
TargetAdd(GetOutputDir()+"/models/misc/"+eggpz, input="dmodels/src/misc/"+model)
|
TargetAdd(GetOutputDir()+"/models/misc/"+eggpz, input="dmodels/src/misc/"+model)
|
||||||
|
|
||||||
for model in GetDirectoryContents("dmodels/src/gui", ["*.egg", "*.flt"]):
|
for model in GetDirectoryContents("dmodels/src/gui", model_extensions):
|
||||||
eggpz = model[:-4] + ".egg.pz"
|
eggpz = model[:-4] + ".egg.pz"
|
||||||
TargetAdd(GetOutputDir()+"/models/gui/"+eggpz, input="dmodels/src/gui/"+model)
|
TargetAdd(GetOutputDir()+"/models/gui/"+eggpz, input="dmodels/src/gui/"+model)
|
||||||
|
|
||||||
for model in GetDirectoryContents("models", ["*.egg", "*.flt"]):
|
for model in GetDirectoryContents("models", model_extensions):
|
||||||
eggpz = model[:-4] + ".egg.pz"
|
eggpz = model[:-4] + ".egg.pz"
|
||||||
TargetAdd(GetOutputDir()+"/models/"+eggpz, input="models/"+model)
|
TargetAdd(GetOutputDir()+"/models/"+eggpz, input="models/"+model)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user