Add isRound flag

This commit is contained in:
ABelliqueux 2021-06-24 12:32:08 +02:00
parent 30f6ef9049
commit aa8258576c

View File

@ -929,6 +929,7 @@ class ExportMyFormat(bpy.types.Operator, ExportHelper):
"\tSVECTOR rot;\n" +
"\tshort isRigidBody;\n" +
"\tshort isStaticBody;\n" +
"\tshort isRound;\n" +
"\tshort isPrism;\n" +
"\tshort isAnim;\n" +
"\tshort isActor;\n" +
@ -1495,6 +1496,8 @@ class ExportMyFormat(bpy.types.Operator, ExportHelper):
# Get object's custom properties
# Set defaults values
chkProp = {
'isAnim':0,
@ -1503,6 +1506,8 @@ class ExportMyFormat(bpy.types.Operator, ExportHelper):
'isStaticBody':0,
'isRound':0,
'isPrism':0,
'isActor':0,
@ -1521,6 +1526,8 @@ class ExportMyFormat(bpy.types.Operator, ExportHelper):
}
# Get real values from object
for prop in chkProp:
if m.get(prop) is not None:
@ -1869,21 +1876,23 @@ class ExportMyFormat(bpy.types.Operator, ExportHelper):
+ str(round(degrees(bpy.data.objects[m.name].rotation_euler.y)/360 * 4096)) + "},\n" +
"\t" + str( int( chkProp[ 'isRigidBody' ] ) ) + ",\n" +
"\t" + str( int( chkProp[ 'isRigidBody' ] ) ) + ", // isRigidBody\n" +
"\t" + str(int(chkProp['isStaticBody'])) + ",\n" +
"\t" + str(int(chkProp['isStaticBody'])) + ", // isStaticBody\n" +
"\t" + str(int(chkProp['isPrism'])) + ",\n" +
"\t" + str(int(chkProp['isRound'])) + ", // isRound \n" +
"\t" + str(int(chkProp['isAnim'])) + ",\n" +
"\t" + str(int(chkProp['isPrism'])) + ", // isPrism\n" +
"\t" + str(int(chkProp['isActor'])) + ",\n" +
"\t" + str(int(chkProp['isAnim'])) + ", // isAnim\n" +
"\t" + str(int(chkProp['isLevel'])) + ",\n" +
"\t" + str(int(chkProp['isActor'])) + ", // isActor\n" +
"\t" + str(int(chkProp['isBG'])) + ",\n" +
"\t" + str(int(chkProp['isLevel'])) + ", // isLevel\n" +
"\t" + str(int(chkProp['isSprite'])) + ",\n" +
"\t" + str(int(chkProp['isBG'])) + ", // isBG\n" +
"\t" + str(int(chkProp['isSprite'])) + ",// isSprite\n" +
"\t0,\n" +