Commit 78e9390
Fixe base class identification
For previous classes with custom blocks, like SimpleCharacter, you had
to define a method that specified the base class so the picker would
know which blocks to populate itself with.
However, there is a function script.get_instance_base_type() that gets
this automatically from whichever class the script extends. Much nicer
than having to define a function for this every time.
This change also fixes an error when opening the pong game.1 parent 5747614 commit 78e9390
File tree
2 files changed
+1
-5
lines changed- addons/block_code
- simple_nodes/simple_character
- ui/picker
2 files changed
+1
-5
lines changedLines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | 16 | | |
21 | 17 | | |
22 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
0 commit comments