mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 13:44:56 +00:00
Add DCLN blend type
This commit is contained in:
@@ -20,6 +20,7 @@ from mathutils import Vector
|
||||
hecl_typeS = [
|
||||
('NONE', "None", "Active scene not using HECL", None),
|
||||
('MESH', "Mesh", "Active scene represents an HMDL Mesh", hmdl.draw),
|
||||
('CMESH', "Collision Mesh", "Active scene represents a Collision Mesh", None),
|
||||
('ACTOR', "Actor", "Active scene represents a HECL Actor", sact.draw),
|
||||
('AREA', "Area", "Active scene represents a HECL Area", srea.draw),
|
||||
('WORLD', "World", "Active scene represents a HECL World", swld.draw),
|
||||
|
||||
@@ -235,6 +235,19 @@ def dataout_loop():
|
||||
writepipestr(b'OK')
|
||||
hecl.hmdl.cookcol(writepipebuf, bpy.data.objects[meshName])
|
||||
|
||||
elif cmdargs[0] == 'MESHCOMPILECOLLISIONALL':
|
||||
writepipestr(b'OK')
|
||||
colCount = 0
|
||||
for obj in bpy.context.scene.objects:
|
||||
if obj.type == 'MESH' and not obj.library:
|
||||
colCount += 1
|
||||
|
||||
writepipebuf(struct.pack('I', colCount))
|
||||
|
||||
for obj in bpy.context.scene.objects:
|
||||
if obj.type == 'MESH' and not obj.library:
|
||||
hecl.hmdl.cookcol(writepipebuf, obj)
|
||||
|
||||
elif cmdargs[0] == 'MESHCOMPILEALL':
|
||||
maxSkinBanks = int(cmdargs[2])
|
||||
maxOctantLength = float(cmdargs[3])
|
||||
|
||||
Reference in New Issue
Block a user