Skip to content

Commit

Permalink
fix FS#1984 - Block > Create Block from Selection: Slow for large number
Browse files Browse the repository at this point in the history
of entities
  • Loading branch information
qcad committed Oct 28, 2019
1 parent 4e23f4e commit 378a935
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/Block/CreateBlock/CreateBlock.js
Expand Up @@ -131,13 +131,13 @@ CreateBlock.createBlock = function(di, block, referencePoint, entityIds, title,
// list of attribute entities:
var attributeEntities = [];

// deselect original entities:
di.deselectEntities(entityIds);

// add selection to new block:
for (i=0; i<entityIds.length; i++) {
var id = entityIds[i];

// deselect original entity:
di.deselectEntity(id);

entity = doc.queryEntity(id);
if (isNull(entity)) {
continue;
Expand Down

0 comments on commit 378a935

Please sign in to comment.