ohzi-core 9.0.0 → 9.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ohzi-core",
3
- "version": "9.0.0",
3
+ "version": "9.0.2",
4
4
  "description": "OHZI Core Library",
5
5
  "source": "src/index.js",
6
6
  "module": "build/index.module.js",
@@ -15,17 +15,15 @@ class TransitionTable
15
15
  if (this.transitions[i].from === from_state_name && this.transitions[i].to === to_state_name)
16
16
  {
17
17
  const action_sequencer = new ActionSequencerBuilder(this.initial_state_data).from_animation_sheet(this.transitions[i].data, current_context);
18
-
19
18
  return action_sequencer;
20
19
  }
21
20
  }
22
21
 
23
22
  for (let i = 0; i < this.transitions.length; i++)
24
23
  {
25
- if (this.transitions[i].to === to_state_name)
24
+ if (this.transitions[i].to === to_state_name && this.transitions[i].from === undefined)
26
25
  {
27
26
  const action_sequencer = new ActionSequencerBuilder(this.initial_state_data).from_animation_sheet(this.transitions[i].data, current_context);
28
-
29
27
  return action_sequencer;
30
28
  }
31
29
  }