Skip to content

Commit

Permalink
Removed proto var.
Browse files Browse the repository at this point in the history
  • Loading branch information
create3000 committed Mar 30, 2024
1 parent ef7a10d commit 31cc9fb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Editors/OutlineEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,7 @@ module .exports = class OutlineEditor extends OutlineRouteGraph
const
protoNode = node,
used = Editor .isProtoNodeUsed (executionContext, protoNode),
available = Editor .getNextAvailableProtoNode (executionContext, protoNode),
proto = protoNode .isExternProto && executionContext .protos .get (protoNode .getName ());
available = Editor .getNextAvailableProtoNode (executionContext, protoNode);

var menu = [
{
Expand Down Expand Up @@ -491,7 +490,7 @@ module .exports = class OutlineEditor extends OutlineRouteGraph
{ type: "separator" },
{
label: _("Add Instance"),
enabled: !proto,
enabled: !(protoNode .isExternProto && executionContext .protos .get (protoNode .getName ())),
args: ["addInstance", element .attr ("id"), executionContext .getId (), protoNode .getId ()],
},
]
Expand Down

0 comments on commit 31cc9fb

Please sign in to comment.