Skip to content

Commit ad46a52

Browse files
committed
removed unnecessary feature.
1 parent 9fd598b commit ad46a52

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

src/main/java/com/ss/editor/ui/component/editor/impl/scene/AbstractSceneFileEditor.java

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,31 +1324,6 @@ private void addNewModel(@NotNull final DragEvent dragEvent, @NotNull final Path
13241324
final Vector3f result = local.nextVector(scenePoint)
13251325
.subtractLocal(parent.getWorldTranslation());
13261326

1327-
final boolean isPhysics = NodeUtils.children(loadedModel)
1328-
.flatMap(ControlUtils::controls)
1329-
.anyMatch(control -> control instanceof PhysicsControl);
1330-
1331-
if (isPhysics) {
1332-
1333-
loadedModel.updateModelBound();
1334-
1335-
final BoundingVolume worldBound = loadedModel.getWorldBound();
1336-
1337-
float height = 0;
1338-
1339-
if (worldBound instanceof BoundingBox) {
1340-
height = ((BoundingBox) worldBound).getYExtent();
1341-
} else if (worldBound instanceof BoundingSphere) {
1342-
height = ((BoundingSphere) worldBound).getRadius();
1343-
}
1344-
1345-
final Quaternion localRotation = parent.getLocalRotation();
1346-
final Vector3f up = GeomUtils.getUp(localRotation, local.nextVector());
1347-
up.multLocal(height);
1348-
1349-
result.addLocal(up);
1350-
}
1351-
13521327
assetLinkNode.setLocalTranslation(result);
13531328

13541329
execute(new AddChildOperation(assetLinkNode, parent, false));

0 commit comments

Comments
 (0)