@@ -1173,7 +1173,7 @@ namespace LevelEditor
1173
1173
obj->pos .x = (srcData[v].x - s_center.x ) * mtx[0 ].x + (srcData[v].y - s_center.z ) * mtx[0 ].y + mtx[0 ].z ;
1174
1174
obj->pos .z = (srcData[v].x - s_center.x ) * mtx[1 ].x + (srcData[v].y - s_center.z ) * mtx[1 ].y + mtx[1 ].z ;
1175
1175
obj->angle = srcData[v].z + angle;
1176
-
1176
+
1177
1177
if (s_level.entities [obj->entityId ].type == ETYPE_3D)
1178
1178
{
1179
1179
compute3x3Rotation (&obj->transform , obj->angle , obj->pitch , obj->roll );
@@ -1221,6 +1221,12 @@ namespace LevelEditor
1221
1221
obj->pos .x = srcObjData[o].x ;
1222
1222
obj->pos .z = srcObjData[o].y ;
1223
1223
obj->angle = srcObjData[o].z ;
1224
+
1225
+ if (s_level.entities [obj->entityId ].type == ETYPE_3D)
1226
+ {
1227
+ compute3x3Rotation (&obj->transform , obj->angle , obj->pitch , obj->roll );
1228
+ }
1229
+
1224
1230
if (sector->searchKey != s_searchKey)
1225
1231
{
1226
1232
s_sectorChangeList.push_back (sector);
@@ -1237,6 +1243,12 @@ namespace LevelEditor
1237
1243
obj->pos .x = (srcObjData[o].x - s_center.x ) * mtx[0 ].x + (srcObjData[o].y - s_center.z ) * mtx[0 ].y + mtx[0 ].z ;
1238
1244
obj->pos .z = (srcObjData[o].x - s_center.x ) * mtx[1 ].x + (srcObjData[o].y - s_center.z ) * mtx[1 ].y + mtx[1 ].z ;
1239
1245
obj->angle = srcObjData[o].z + angle;
1246
+
1247
+ if (s_level.entities [obj->entityId ].type == ETYPE_3D)
1248
+ {
1249
+ compute3x3Rotation (&obj->transform , obj->angle , obj->pitch , obj->roll );
1250
+ }
1251
+
1240
1252
if (sector->searchKey != s_searchKey)
1241
1253
{
1242
1254
s_sectorChangeList.push_back (sector);
0 commit comments