Skip to content

Commit

Permalink
make tree available
Browse files Browse the repository at this point in the history
  • Loading branch information
zeffii committed Jun 1, 2021
1 parent 707a03b commit 13fa96d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nodes/logic/evolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,12 +539,13 @@ def sv_execute(self, context, node):
node.info_label = "Stopped - Fitness not linked"
return

tree = node.id_data

genotype_frame = node.genotype
evolver_mem[node.node_id] = {}

seed_set(node.r_seed)
np.random.seed(node.r_seed)

population = Population(genotype_frame, node, tree)
population.evolve()
update_list = make_tree_from_nodes([node.name], tree)
Expand All @@ -569,6 +570,8 @@ class SvEvolverSetFittest(bpy.types.Operator, SvGenericNodeLocator):
bl_label = "Evolver Run"

def sv_execute(self, context, node):
tree = node.id_data

data = evolver_mem[node.node_id]
genes = data["genes"]
population = data["population"]
Expand Down

0 comments on commit 13fa96d

Please sign in to comment.