mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 13:12:42 +00:00
Merge pull request #97337 from Ivorforce/patch-1
In make_rst.py, include the parent class in 'Inherits:' even if it is not known.
This commit is contained in:
commit
d5aadc38b4
@ -949,13 +949,17 @@ def make_rst_class(class_def: ClassDef, state: State, dry_run: bool, output_dir:
|
|||||||
inherits = class_def.inherits.strip()
|
inherits = class_def.inherits.strip()
|
||||||
f.write(f'**{translate("Inherits:")}** ')
|
f.write(f'**{translate("Inherits:")}** ')
|
||||||
first = True
|
first = True
|
||||||
while inherits in state.classes:
|
while inherits is not None:
|
||||||
if not first:
|
if not first:
|
||||||
f.write(" **<** ")
|
f.write(" **<** ")
|
||||||
else:
|
else:
|
||||||
first = False
|
first = False
|
||||||
|
|
||||||
f.write(make_type(inherits, state))
|
f.write(make_type(inherits, state))
|
||||||
|
|
||||||
|
if inherits not in state.classes:
|
||||||
|
break # Parent unknown.
|
||||||
|
|
||||||
inode = state.classes[inherits].inherits
|
inode = state.classes[inherits].inherits
|
||||||
if inode:
|
if inode:
|
||||||
inherits = inode.strip()
|
inherits = inode.strip()
|
||||||
|
Loading…
Reference in New Issue
Block a user