Commit 13caf74
committed
Don't warn when BlockCode script extends parent script
Commit 87c31b0 ("Warn when Block Code
overrides parent script") introduced a warning when a BlockCode node's
parent has a script attached. But if the parent is (for example) a
Character2D with our SimpleCharacter script attached, this warning is
incorrect: the block code script will correctly extend, not override,
the parent.
Before issuing this warning, check if the parent's script has a
class_name that matches what the generated BlockCode script will extend,
and suppress the warning if so.
Fixes #3561 parent d6ce937 commit 13caf74
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
| |||
0 commit comments